Page 1 of 1

akLattice, a renderer and physics simulator for voxel worlds

Posted: Thu Aug 30, 2012 9:35 pm
by Feral Youth
I hope you guys don't mind me posting this here; it isn't related to Wolfire except that I like Lugaru and you all seem to like experimental software.

I'm a big Dwarf Fortress fan, so I decided to try my hand at a renderer and physics simulator for voxel worlds (worlds made of cubes, like Dwarf Fortress, Minecraft, etc.). I've programmed up a renderer for such worlds using Ogre, including optimizations for high framerates. I've also implemented a water simulator (including the effects of pressure) and a structural stability simulator that causes unstable constructions to collapse into rubble. Maybe some of you would like to play around with it?

Image

Image

Features:
-Efficient 3D rendering of the simulated world. (Albeit with primitive graphics.)
-Efficient water simulation, including the effects of pressure. (Water will flow straight up when appropriate, like in Dwarf Fortress.)
-Structural integrity simulation, with different materials having different properties and unstable structures collapsing into rubble.
-Mouse and keyboard interface.
-Uses popular, free, open-source Ogre 3D engine.
-Code will be released as open source.

Controls:
-'Esc' to exit.
-'F1' for perspective mode, 'F2' for a horizontal cross-section, and 'F3' and 'F4' for perpendicular vertical cross-sections.

In perspective mode:
-mouse and WASD to fly around

In horizontal cross-section view mode:
-WASD to scroll around
-Q and E to move up and down a level, respectively.
-left-click to place blocks
-right-click to destroy blocks
-middle-click to create water
-block placement supports drag-selecting, even across levels (press Q or E while holding down the mouse button)

A word of warning: don't try to carve out large horizontal areas deep underground all at once. The program has to figure out where the weight of all the rocks above goes and this can take a *long* time. I'm still working on that.

To download, go to https://dl.dropbox.com/u/46417406/akLattice.zip. Right now, only a Windows build is available, but that is only because I have not had time to compile for other OS.

I'm a little unsure where to go with this next. I think it is pretty cool, but it isn't a game, just a sandbox. Maybe a game could be made with it?

Re: akLattice, a renderer and physics simulator for voxel wo

Posted: Thu Aug 30, 2012 9:45 pm
by Dusty926
*Reads* Life just got better...*clicks download link*

Re: akLattice, a renderer and physics simulator for voxel wo

Posted: Fri Aug 31, 2012 12:38 am
by Korban3
Looks cool! I'll play with it for a bit, see what comes out of it.
Surely could be a game made out of it.

Re: akLattice, a renderer and physics simulator for voxel wo

Posted: Sat Sep 01, 2012 2:04 am
by Glabbit
*patiently awaits Mac Os builds*

Re: akLattice, a renderer and physics simulator for voxel wo

Posted: Sat Sep 01, 2012 3:03 am
by MrOtton
This looks cool! I will give it a try. :-)

Re: akLattice, a renderer and physics simulator for voxel wo

Posted: Sun Sep 02, 2012 6:07 pm
by TyrOvC
Really cool stuff, especially the fluid simulation.

Re: akLattice, a renderer and physics simulator for voxel wo

Posted: Sun Sep 02, 2012 8:04 pm
by Coincidence
I would love to but I must wait for Mac version.

Re: akLattice, a renderer and physics simulator for voxel wo

Posted: Mon Oct 08, 2012 7:07 pm
by Retarded Username
Interesting engine... All by yourself, right?