• Create Account

### #Actualjellyfishchris

Posted 27 March 2013 - 09:58 PM

I have just started working on a voxel engine for the fun of it. Ive managed to create the voxels and apply those with a texture atlas into a VBO. I have performed a few optimizations such as dont draw blocks you cant see etc etc.

I'm storing the blocks such as

Block m_blocks[16][128][16];


for each chunk.

However the problem arises when I want to have an infinite terrain. I found a few resources online saying I need to use hashmap and or loading/saving to external file for this. I would just like to clarify is this the correct approach additionally any advice/tips on how to go about it would be very appreciated.

Thanks

### #1jellyfishchris

Posted 27 March 2013 - 09:56 PM

I have just started working on a voxel engine for the fun of it. Ive managed to create the voxels and apply those with a texture atlas into a VBO. I have performed a few optimizations such as dont draw blocks you cant see etc etc.

I'm storing the blocks such as

Block m_blocks[16][128][16];


for each chunk.

However the problem arises when I want to have an infinite terrain. I found a few resources online saying I need to use hashmap and or loading/saving to external file for this. I would just like to clarify is this the correct approach additionally any advice/tips on how to go about it would be very appreciated.

Thanks

PARTNERS