IOTD: More (and better) voxels
More (and better) voxels, by Niunio
Here I go with a new voxel demo.
This is the same demo than my latest IOTD but using a different render style. This time I use real voxels rendered using OpenGL instead of ray-trace as my prior demo. This way the demo has 6 degrees of freedom and it looks better.
The first try was too slow (0.2 frames per second) because the renderer draw all voxels of the scene, but after few optimizations (RLE for spans of voxels with same color, avoid the voxels that are inside of solid objects and few more) I have 8 FPS with same number of voxels. I know it is possible to optimize it and draw the scene as fast as Voxlap [advsys.net] does, but I'll do it when I rewrote the actual VoxRend [voxrend.sourceforge.net] code to use OpenGL.
The lighting is static and use it to provide a more 3D aspect to the scene.
This section is only available to registered Allegro.cc members.
The Gallery | Add your own image!