View previous topic :: View next topic |
Author |
Message |
banshee777 Member
Joined: 10 Feb 2005 Posts: 37
|
Posted: Sat May 31, 2008 8:36 am Post subject: dmf + normals? Plugin? |
|
|
Anyone know if there is an exporter that can do the standard dmf + normals?
I'm finding the other plugin's way too complex.
or is there a really simply exporter?
that has texture name
vertex coords
text coords
normal coords |
|
Back to top |
|
|
jwatte DeleD PRO user
Joined: 26 Apr 2006 Posts: 513
|
Posted: Sun Jun 01, 2008 3:10 am Post subject: |
|
|
The simplest text file formats I know of are .OBJ and .X.
If you want to use DeleD, you can easily calculate the normals yourself. If you have three vertices A, B and C for a triangle, then the triangle normal is simply:
N = normalize(cross((B - A), (C - A))); |
|
Back to top |
|
|
Jeroen Site Admin
Joined: 07 Aug 2004 Posts: 5332 Location: The Netherlands
|
Posted: Sun Jun 01, 2008 10:45 am Post subject: |
|
|
Make sure that the three vertices do not line up (as in, form a straight line). In that case, the triangle is degenerate and the normal calculation will not give proper results. |
|
Back to top |
|
|
jwatte DeleD PRO user
Joined: 26 Apr 2006 Posts: 513
|
Posted: Mon Jun 02, 2008 6:16 pm Post subject: |
|
|
Quote: |
In that case, the triangle is degenerate and the normal calculation will not give proper results. |
Mainly because there IS no proper normal in that case... Which doesn't matter, because that triangle will contribute no pixels, and will not contribute to an area-weighted vertex normal calculation :-) |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Mon Jun 02, 2008 6:29 pm Post subject: |
|
|
An import detail here is that DeleD itself does not actually manage normals (yet), so there is no use trying to write a specific exporter for them (as there is no data to export). |
|
Back to top |
|
|
AWM Mars Member
Joined: 06 Jan 2010 Posts: 1195 Location: Wilts England
|
Posted: Fri Jun 18, 2010 4:10 pm Post subject: |
|
|
Paul-Jan wrote: |
An import detail here is that DeleD itself does not actually manage normals (yet), so there is no use trying to write a specific exporter for them (as there is no data to export). |
Has this now been included?
I'm assuming it has as when I export to Ogre, there is an option to export smoothed normals. _________________ Politeness is priceless when received, cost nothing to own or give, yet some cannot afford.
Checkout:
http://www.awm.mars.yourinside.com/
http://www.bccservices.co.uk
http://www.localtradecheck.co.uk |
|
Back to top |
|
|
|