View Full Version : trianglecount

01-07-2001, 01:05 AM
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

01-07-2001, 02: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 ?!?

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

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