Not long before I found [COLOR=blue]Andrea “6502” Griffini[/COLOR]'s old demo of his voxel terrain (NEWVOX.C). The original C code is very clear and I decided to write a voxel terrain engine using his code.
This is the first step, I just ‘translate’ his C code into action script 3.0. What I want to do is add textures of terrain, sky and the background, and maybe some lighting effect as well.
But I don’t have much idea how to add textures to the terrain, if you know any good tutorial on voxel rendering or know how to do that please tell me.
Improvement on this part of code would be really appreciated.
[SIZE=4][COLOR=blue]Demo[/COLOR][/SIZE]:[SIZE=4][COLOR=red]HERE[/COLOR][/SIZE][COLOR=red]
[/COLOR][SIZE=3][COLOR=blue]Source Code[/COLOR][/SIZE]:
C(by Andrea “6502” Griffini): [COLOR=#336699]thanks to FengYun[/COLOR]
AS3.0 (use arrow keys to move):[SIZE=4][COLOR=red]HERE[/COLOR][/SIZE]