Task: need to store grid of 128x128x128 cubes (36 vertices each) no octree yet.. any ideas?
How to store more than 35 Million floats?
Posted: 15th November 2011 by Luke Iwanski in Honours Project, University, Voxel EngineTags: 3D, C++
Task: need to store grid of 128x128x128 cubes (36 vertices each) no octree yet.. any ideas?
Just store colour (vec3). Render with instancing. Reconstruct position in your vertex shader by instance id. 6 million floats. Math FTW! In this case, store colours in lookup table, get away with 8bit colour index. 2 million bytes. Old skool FTW!