Delgine 3D Tools & Content DeleD Community Edition
Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DeleD Mesh importer for Game Studio Express (Beta 2)

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> Other Graphical Tools
View previous topic :: View next topic  
Author Message
Sweenie
DeleD PRO user


Joined: 05 May 2006
Posts: 14

PostPosted: Fri Nov 03, 2006 9:56 am    Post subject: DeleD Mesh importer for Game Studio Express (Beta 2) Reply with quote

Hi.

I was playing around with the content pipeline in GSE and tried implementing an importer for DeleD meshes.
So far it works well.



You can download the sourcecode and compiled assembly here...
http://www.svenberra.net/DMFImporter.zip

It has some restrictions though.
You will need to triangulate the mesh since the importer only deals with triangles.
To get better render performance it's advisable to merge as many objects as possible.
Lightmaps aren't supported yet.

---
Back to top
View user's profile Send private message Visit poster's website
Paul-Jan
Site Admin


Joined: 08 Aug 2004
Posts: 3066
Location: Lage Zwaluwe

PostPosted: Sat Nov 04, 2006 8:01 am    Post subject: Reply with quote

Heeeeey, good job! Very Happy

Could you perhaps be persuaded to build in a simple triangulation routine? It wouldn't be too hard to make, and make the pipeline more convenient! (You can safely assume DeleD polygons to be convex(*), so any quick-and-dirty algorithm should do... )..


(*) Well, there are one or two ways to trick DeleD into creating non-convex polygons, but those are special situation that DeleD needs to solve, not any third party application.
Back to top
View user's profile Send private message Visit poster's website
Jeroen
Site Admin


Joined: 07 Aug 2004
Posts: 5332
Location: The Netherlands

PostPosted: Sat Nov 04, 2006 8:23 am    Post subject: Reply with quote

Good job indeed! Cool

Btw, a simple triangulation routine will probably be enough in most cases, but as PJ already mentioned, DeleD allows you to create concave polygons. Quite easily actually: all you have to do is move one or more vertices of a polygon to certain positions and there you have your concave polygon. I suggest implementing earclipping triangulation (that's what we use), if you have the time to implement it. Anyway, very good job sofar! Smile

P.s funny to read/write about triangulation right now. I'm thinking about a new Merge Polygon routine that should merge coplanar polygons into a set of convex polygons. Not just one big (and possibly concave) polygon. Suggestions or algorithms are most welcome! Very Happy Anyway, here you are writing a triangulation routine and here I am trying to merge them polygons again... Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> Other Graphical Tools All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum