Page 1 of 1

voxatron-like engine

Posted: Sat Oct 29, 2011 6:57 am
by m4rvin
Hi,

irrlicht can do voxatron-like game :)
view area is 128x128x64 voxels
fps is around ~60 with around ~30K tris on OpenGL driver. faster with D3D9.

still needs better lighting - shadows
maybe occlusion culling too

choppy video @ http://www.munchyapps.com/uncategorized/voxels-128
download demo @ http://munchyapps.com/downloads/vox.zip
> arrows to move
> '1' to change map


Image

Re: voxatron-like engine

Posted: Sun Oct 30, 2011 3:08 pm
by Virion
Cool!! :shock: The choppiness is due to screen recording or the game itself?
Very cool. :D

Re: voxatron-like engine

Posted: Sun Oct 30, 2011 5:30 pm
by ACE247
Wooo :) Neat work!

Re: voxatron-like engine

Posted: Mon Oct 31, 2011 4:43 pm
by m4rvin
the choppy video was just from the recording.

i did a round of optimization and got the polygon count down and framerate further up.
this runs on Android by the way. but still at just around 15 fps.

Image

techniques
> rendering & caching chunks (CVertexBuffers)
> combining voxels faces whenever possible
> LOD for particles

some more to ideas that could lower the polygon count further:
> LOD for map
> sprites for particles instead of cubes
> keep map simple, flat or blocky
> render static text to texture

got any ideas?

Re: voxatron-like engine

Posted: Mon Oct 31, 2011 4:51 pm
by ACE247
That running at 15FPS on Android is pretty decent! :)

Re: voxatron-like engine

Posted: Tue Nov 01, 2011 12:34 am
by m4rvin
15FPS on Android
there is a hiccup though when i scroll through the map - that is when many chunks of voxels are processed.
i could cache the entire map for speed but that i'd have to make it very efficient on memory

Re: voxatron-like engine

Posted: Wed Nov 02, 2011 4:49 pm
by m4rvin
i made a raycast version. polygon cubes for voxel feels like cheating.
this is probably how voxatron does it anyway. but with better quality :)

runs on android at just 5fps. but at least the frame rate is constant - no hiccups

one problem with raycast is no easy way to handle floating objects as wave surfing skips them

Demo http://www.munchyapps.com/downloads/vox.zip

Image

Re: voxatron-like engine

Posted: Sun Nov 06, 2011 1:56 pm
by christianclavet
Hi, Nice work, but switching to raycast doesnt work here. Got a black screen and nothing happen. Got around 236 FPS in Polygon mode.