View previous topic :: View next topic |
Author |
Message |
Mille Member
Joined: 21 Mar 2005 Posts: 35 Location: Denmark
|
Posted: Mon Mar 21, 2005 1:33 pm Post subject: Polygon data (*.dm files) |
|
|
Hey All
I just came across Delgine a few days ago, and until now it fits all my need for a spare time project!
But, I have a question about the polygon data in the *.dmf export.
If the number of vertices (for one object) is 4, does it mean that the polygon is a quad ?
In can easily thing of a polygon with 4 vertices not being a plane quad, and hence its not possible do calculate one (and only one) normal for that polygon. Of cause if the number of vertices for one object is 3, it’s a triangle and we have one normal for this prime.
Thanks .. |
|
Back to top |
|
|
Jeroen Site Admin
Joined: 07 Aug 2004 Posts: 5332 Location: The Netherlands
|
Posted: Mon Mar 21, 2005 2:15 pm Post subject: |
|
|
Hi there Mille and welcome to these forums!
To answer your question: a polygon that has 4 vertices does _not_ have to be a quad. It is perfectly possible to deform a polygon so that it is not a plane polygon anymore. I would suggest triangulating your scene before performing your own calculations on it. DeleD does not triangulate by default to ease modelling operations by the user. DeleD does provide triangulation routines for convex polygons though, as I'm sure you've already discovered. |
|
Back to top |
|
|
Mille Member
Joined: 21 Mar 2005 Posts: 35 Location: Denmark
|
Posted: Mon Mar 21, 2005 2:37 pm Post subject: |
|
|
OK, thanks for the quick reply!
Sorry for submitting foolish questions, but how do I triangulated a scene ?
I suppose it can be done within the Delgine Tool before doing export to *.dmf ?
(just can’t find where)
Thanks .. |
|
Back to top |
|
|
Jeroen Site Admin
Joined: 07 Aug 2004 Posts: 5332 Location: The Netherlands
|
Posted: Mon Mar 21, 2005 2:53 pm Post subject: |
|
|
Stupid questions don't exist.
You can triangulate a scene by selecting your entire scene (ctrl-A) in Object Mode and then using the Triangulate function. Also, Fan triangulation is probably best in your case. |
|
Back to top |
|
|
Mille Member
Joined: 21 Mar 2005 Posts: 35 Location: Denmark
|
Posted: Mon Mar 21, 2005 5:03 pm Post subject: |
|
|
Ohh yes baby, I'm back on track, THANKS.
I've been working with Quake maps and 3ds of cause, but DeleD is defiantly
more easy to grasp! Just want I need for my spare time first person game. |
|
Back to top |
|
|
Jeroen Site Admin
Joined: 07 Aug 2004 Posts: 5332 Location: The Netherlands
|
Posted: Mon Mar 21, 2005 5:35 pm Post subject: |
|
|
Mille wrote: |
Ohh yes baby, I'm back on track, THANKS.
I've been working with Quake maps and 3ds of cause, but DeleD is defiantly
more easy to grasp! Just want I need for my spare time first person game. |
Sounds cool! How did you find this site btw? I'd very much like to know.
Also, feel free to post screenshots of your work! |
|
Back to top |
|
|
Mille Member
Joined: 21 Mar 2005 Posts: 35 Location: Denmark
|
Posted: Mon Mar 21, 2005 10:44 pm Post subject: |
|
|
I got a link from the gamedev forums, DirectX forum.
I really like Delgine, its easy to learn, and the *.dmf is clean and simple!
my latest shadow-color demo shot
www.soft.dk/_img/shadowcolor.jpg |
|
Back to top |
|
|
Daaark DeleD PRO user
Joined: 01 Sep 2004 Posts: 2696 Location: Ottawa, Canada
|
Posted: Mon Mar 21, 2005 10:49 pm Post subject: |
|
|
Mille wrote: |
I got a link from the gamedev forums, DirectX forum. |
|
|
Back to top |
|
|
|