geometry / geominfo / XithGeometryInfo / geometrycreator

All

Strangely enough I have never done the following. I need to convert a TriangleArray to a TriangleStripArray. How does one do this type of thing???

You need to calculate the new vertices. Check how the real positions are, but let’s assume, it is the following:


TiangleArray:          TiangleStripArray:

3        4             4        3
+--------+             +--------+
|\       |             |\       |
| \      |             | \      |
|  \     |             |  \     |
|   \    |             |   \    |
|    \   |             |    \   |
|     \  |             |     \  |
|      \ |             |      \ |
|       \|             |       \|
+--------+             +--------+
1        2             1        2

Just calculate the right vertices for the other format and it should be done.

Hmm Qudus you suggest a way to convert TriangleArrayStrip to TriangleArray, but hawkwind wants to do the other way round.
Have a look at nvidia stripifier. Don’t know how it really works, but maybe you’re the one which makes it widely used, who know ?

Please keep us informed of magnificent performance boosts ! ^^

[quote="<MagicSpark.org [ BlueSky ]>,post:3,topic:28309"]
Hmm Qudus you suggest a way to convert TriangleArrayStrip to TriangleArray, but hawkwind wants to do the other way round.
[/quote]
This can certainly be ;). I didn’t really remember how these ones were built. But the priciple should be just the same.