Java-Gaming.org Hi !
 Featured games (88) games approved by the League of Dukes Games in Showcase (681) Games in Android Showcase (196) games submitted by our members Games in WIP (746) games currently in development
 News: Read the Java Gaming Resources, or peek at the official Java tutorials
Pages: [1]
 ignore  |  Print
 geometry / geominfo / XithGeometryInfo / geometrycreator  (Read 1148 times) 0 Members and 1 Guest are viewing this topic.
hawkwind

Junior Devvie

Java games rock!

 « Posted 2006-09-11 20:01:00 »

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???
Marvin Fröhlich

Senior Devvie

May the 4th, be with you...

 « Reply #1 - Posted 2006-09-12 07:38:58 »

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:

 1  2  3  4  5  6  7  8  9  10  11  12  13  14 `TiangleArray:          TiangleStripArray:3        4             4        3+--------+             +--------+|\       |             |\       || \      |             | \      ||  \     |             |  \     ||   \    |             |   \    ||    \   |             |    \   ||     \  |             |     \  ||      \ |             |      \ ||       \|             |       \|+--------+             +--------+1        2             1        2`

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

Senior Devvie

Everything's possible, but not everything's fun...

 « Reply #2 - Posted 2006-09-12 16:45:27 »

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 ! ^^

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Marvin Fröhlich

Senior Devvie

May the 4th, be with you...

 « Reply #3 - Posted 2006-09-12 19:04:43 »

Hmm Qudus you suggest a way to convert TriangleArrayStrip to TriangleArray, but hawkwind wants to do the other way round.

This can certainly be . I didn't really remember how these ones were built. But the priciple should be just the same.
Pages: [1]
 ignore  |  Print

You cannot reply to this message, because it is very, very old.

 GrandCastle (24 views) 2016-07-01 09:13:47 GrandCastle (26 views) 2016-07-01 09:09:45 CopyableCougar4 (80 views) 2016-06-25 16:56:52 Hydroque (111 views) 2016-06-22 02:17:53 SwampChicken (115 views) 2016-06-20 13:22:57 SwampChicken (116 views) 2016-06-20 13:22:49 SwampChicken (108 views) 2016-06-20 13:22:26 Hydroque (153 views) 2016-06-15 08:22:50 Hydroque (148 views) 2016-06-13 06:40:55 DarkCart (254 views) 2016-05-29 02:30:33
 Spasi 49x theagentd 40x NegativeZero 38x KaiHH 34x LiquidNitrogen 23x princec 22x DavidBVal 19x Opiop 19x ra4king 13x TritonDreyja 11x Archive 10x ags1 10x CoDi^R 10x purenickery 9x Roquen 8x czak 7x
 Making a Dynamic Plugin Systemby Hydroque2016-06-25 00:13:25Java Data structures2016-06-13 21:22:09Java Data structures2016-06-13 21:20:42FPS Camera Tutorialby Hydroque2016-05-22 05:40:58Website offering 3D Models specifically for games for freeby vusman2016-05-18 17:23:09Website offering 3D Models specifically for games for freeby vusman2016-05-09 08:50:56Website offering 3D Models specifically for games for freeby vusman2016-05-06 11:10:21Website offering 3D Models specifically for games for freeby vusman2016-04-29 12:56:17
 java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org