Tris [] in TSurface Short to Int?

BlitzMax Forums/MiniB3D Module/Tris [] in TSurface Short to Int?

KronosUK(Posted 2008) [#1]
Is there any reason why the Tris[] field in TSurface can't be changed from a short to an Int in the next release of minib3d. 256 X 256 triangles isn't really very large for a terrain mesh these days.


klepto2(Posted 2008) [#2]
Well, of course it is possible, but on most hardware the short variant is the best optimized one.
I think you misunderstand the term mesh terrain in todays and earlier hardware.
What ever you do, creating levels,terrains, one surface should never contain more than 65535 tris. Thats because the hardware
is optimized for exactly this size. the big terrains in other engines are not just one mesh with 1 surface, they are meshes with multiple surfaces.

I'm currently finifhing a new version of minib3d extended which will support Terrains with up to 33Mio tris.
As you see, it is possible but completely useless.


KronosUK(Posted 2008) [#3]
Thanks for the explanation.