Skip to main content
GameDev.net gamedev.net
🔒 Locked

TRIANGLE_STRIP ???

Started by The Wizard Of Oz Nov 26, 2001 at 3:12 PM 1 replies 250+ views
Original Post
The Wizard Of Oz
The Wizard Of Oz
hi! here I am again...with another of my problems I''ve succeded in fast loading of .ASE files exported directly from 3d studio max, and it all works well in ''bout 25-30 fps... at that speed I can draw about 15 000 polys, but I''ve been warned that if I''d use GL_TRIANGLE_STRIP instead of GL_TRIANGLES I''d get much better results... now, when I export my scene from 3d max into an .ASE file and load an face array, every face is defined with 3 vertices and it looks like this: 0 2 3 (first triangle/face) 3 1 0 (second triangle/face) 1 3 7 7 5 1 4 5 7 . . . etc. now I can make an triangle strip from the first two faces ''cause they''ve got two vertices in common, but I can''t make an algorythm for making an triangle strip from all of them... I know I should use first face, and then a single vertex for every other, but I can''t put the faces in order... can someone help me, please? have you ever had a similar problem and if you had, how did you solve it? help, I''m desperate!! follow the yellow brick road
follow the yellow brick road
GKW
GKW
NVidia has a triangle stripper program on their website. You will have to figure out how to get your data into and out of the program but it doable.

The fanatic is incorruptible: if he kills for an idea, he can just as well get himself killed for one; in either case, tyrant or martyr, he is a monster.
--EM Cioran

Opere Citato
"... we should have such an empire for liberty as she has never surveyed since the creation ..."Thomas Jefferson
ATronic
ATronic
I''m actually making an optimizer for my model system I created. It will convert the models into tringle strips as well. It will do something like this.

-Load triangles
-Replace duplicate vertex calls with singular vertex calls
-Replace GL_TRIANGLES with GL_TRIANGLE_STRIP

Perhaps you should do that. It''ll make my model init take a little longer, but it''s worth it for draw speed. This allows me to load regular models without worries about converting the format itself.

Alex Broadwin
A-Tronic Software & Design
-----
"if you fail in life, you were destined to fail. If you suceed in life, call me."
"The answer is out there."
"Please help, I''m using Windows!"
Alex BroadwinA-Tronic Software & Design-----"if you fail in life, you were destined to fail. If you suceed in life, call me.""The answer is out there.""Please help, I'm using Windows!"

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.