Blitz Polygon Limits?

Blitz3D Forums/Blitz3D Beginners Area/Blitz Polygon Limits?

Gauge(Posted 2006) [#1]
What is the max blitz polygon limits for blitz? And what is the maximum suggested to run a fps shooter.


Dreamora(Posted 2006) [#2]
There are no polygon limits, they are restricted by the graphics hardware. (beside the 64k maximum vertices per surface, which is a DirectX7 restriction)

The maximum suggested amount depends on how your game is built. With a clever occlusion strategy, you can get really many vertices in a level without serious consequences.


Buggy(Posted 2006) [#3]
What would a good occlusion code look like? It would not draw things that are blocked by others? How would this work?


Dreamora(Posted 2006) [#4]
Thats hard to do and can't be done in Blitz3D as you would need to exchange the scenegraph.

But one way to speed it really up is creating boxes around zones you count as one unit (like rooms in a 3D shooter) and make the cube alpha 0 so it is not drawn but still used for occlusion. (don't use hide, this would disable it)

Then you parent all objects within the cube to this cube. This way, the whole content of the cube can be ignored on "rendering tests" if the cube does not need to be drawn.

*if you fill up the whole 3d room with cubes, then this would be like a static octtree system*


Ross C(Posted 2006) [#5]
Or, you could use portals. Similar to Dreamora's suggestion, except you have points you pass through, which hides/shows parts of the level. Downside is, you need to really set up these zones beforehand, in an editor or modeller.


jfk EO-11110(Posted 2006) [#6]
I am currently working on a new VIS occlusion system for my engine. The map is clustered automticly. This already allows to skip rendering all parts that are not within the camera view range or behind its back. A similar example is in the code archives (ClusterizeMesh). Adding VIS occlusion is a lot more complicated.

Gauge. the max number of Polies is at least 32000 Triangles and about 64000 Vertices on every surface of a mesh. The max. number of Tris in a scene is not defined AFAIK, but when your machine is freezing then it may be too much.


Sir Gak(Posted 2006) [#7]
but when your machine is freezing then it may be too much.

Machine freezing is definitely not good.