Hardware instancing for voxel engine

Posted by Menno Gouw on Game Development See other posts from Game Development or by Menno Gouw
Published on 2013-09-28T07:44:21Z Indexed on 2013/10/29 16:14 UTC
Read the original article Hit count: 287

Filed under:
|
|

i just did the tutorial on Hardware Instancing from this source: http://www.float4x4.net/index.php/2011/07/hardware-instancing-for-pc-in-xna-4-with-textures/. Somewhere between 900.000 and 1.000.000 draw calls for the cube i get this error "XNA Framework HiDef profile supports a maximum VertexBuffer size of 67108863." while still running smoothly on 900k. That is slightly less then 100x100x100 which are a exactly a million.

Now i have seen voxel engines with very "tiny" voxels, you easily get to 1.000.000 cubes in view with rough terrain and a decent far plane. Obviously i can optimize a lot in the geometry buffer method, like rendering only visible faces of a cube or using larger faces covering multiple cubes if the area is flat. But is a vertex buffer of roughly 67mb the max i can work with or can i create multiple?

© Game Development or respective owner

Related posts about XNA

Related posts about voxels