PDA

View Full Version : trianglecount



VeRtEX
01-07-2001, 02:05 AM
Hy
In a lot of example codes or tutorial i read i saw that they where drawing their tris with a loop. But first of all u had to calc how many polys u have before u can build this loop. How ??????? And how if u have a file (.3ds or so) No tutarial do this, or i don't saw it http://www.opengl.org/discussion_boards/ubb/wink.gif
i'll be glad for reposts
cya
Benny

T2k
01-07-2001, 03:26 AM
by loading 3ds you get the count of tris, without you cant load this file( Tris-Chunk contains first the triscount and then triscount-Tris ...)!

PS: without this structure you can generate your tris by yourself, but how do you know which of the ??-Tris(dont know how many but more than 12) you can calc are the 12 tris you want ?!?

VeRtEX
01-08-2001, 03:56 AM
thanx for help
but does anybody has example code of how to load 3ds files ?

Quaternion
01-09-2001, 12:58 PM
check www.wotsit.org (http://www.wotsit.org) for the 3ds file format