View previous topic :: View next topic |
Author |
Message |
Sweenie DeleD PRO user
Joined: 05 May 2006 Posts: 14
|
Posted: Fri Nov 03, 2006 9:56 am Post subject: DeleD Mesh importer for Game Studio Express (Beta 2) |
|
|
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 |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Sat Nov 04, 2006 8:01 am Post subject: |
|
|
Heeeeey, good job!
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 |
|
|
Jeroen Site Admin
Joined: 07 Aug 2004 Posts: 5332 Location: The Netherlands
|
Posted: Sat Nov 04, 2006 8:23 am Post subject: |
|
|
Good job indeed!
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!
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! Anyway, here you are writing a triangulation routine and here I am trying to merge them polygons again... |
|
Back to top |
|
|
|