View previous topic :: View next topic |
Author |
Message |
Daaark DeleD PRO user
Joined: 01 Sep 2004 Posts: 2696 Location: Ottawa, Canada
|
Posted: Tue Jul 05, 2005 8:27 am Post subject: Fan triangulation |
|
|
Does using this mean I can render the object with GL_TRIANGLE_FAN? I could fan my entire map, and all objects would render perfect as fans? |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Tue Jul 05, 2005 8:42 am Post subject: |
|
|
The answer to that would be no, because
1) DeleD (of course) still stores all vertex indices for each triangle, while for GL_TRIANGLE_FAN you only have to provide a subset of those coordinates.
2) Having polygons (which is what DeleD does) as fans does nothing for objects as a whole.
When rendering GL_TRIANGLE_FANS, you don't care about separate objects and "polygons", you just want the largest amounts of geometry joined into a single fan.
'Fan triangulation' and 'create/optimize triangle fans' just aren't the same thing |
|
Back to top |
|
|
Daaark DeleD PRO user
Joined: 01 Sep 2004 Posts: 2696 Location: Ottawa, Canada
|
Posted: Tue Jul 05, 2005 8:44 am Post subject: |
|
|
Just wondering. |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Tue Jul 05, 2005 8:47 am Post subject: |
|
|
I do think it would make a nice feature, but I have no idea how we would go about storing the result, as DeleD simply stores complete polygons into the dmf, not raw data. Same goes for triangle strip creation....
Let me see how Mesh Viewer handles this. |
|
Back to top |
|
|
|