akLattice, a renderer and physics simulator for voxel worlds

Anything else
Post Reply
Feral Youth
Posts: 7
Joined: Sat Oct 28, 2006 3:18 pm

akLattice, a renderer and physics simulator for voxel worlds

Post by Feral Youth » Thu Aug 30, 2012 9:35 pm

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?

Dusty926
Posts: 6
Joined: Wed Aug 29, 2012 8:18 pm

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

Post by Dusty926 » Thu Aug 30, 2012 9:45 pm

*Reads* Life just got better...*clicks download link*

User avatar
Korban3
Posts: 4146
Joined: Tue May 31, 2011 9:14 pm
Location: 42nd St E, Hell

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

Post by Korban3 » Fri Aug 31, 2012 12:38 am

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.

User avatar
Glabbit
Posts: 4917
Joined: Sun Feb 06, 2005 8:38 am
Location: A mile away, with your shoes!

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

Post by Glabbit » Sat Sep 01, 2012 2:04 am

*patiently awaits Mac Os builds*

User avatar
MrOtton
Posts: 207
Joined: Thu Oct 13, 2011 11:51 am
Location: Everywhere.......almost...
Contact:

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

Post by MrOtton » Sat Sep 01, 2012 3:03 am

This looks cool! I will give it a try. :-)

User avatar
TyrOvC
Posts: 12
Joined: Sun Aug 05, 2012 3:04 pm

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

Post by TyrOvC » Sun Sep 02, 2012 6:07 pm

Really cool stuff, especially the fluid simulation.

User avatar
Coincidence
Posts: 228
Joined: Thu Jun 21, 2012 1:54 am
Location: Inner Sanctum, Brennenburg Castle, Prussia

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

Post by Coincidence » Sun Sep 02, 2012 8:04 pm

I would love to but I must wait for Mac version.

User avatar
Retarded Username
Posts: 491
Joined: Tue May 08, 2012 6:00 am
Location: Going over the Trump wall

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

Post by Retarded Username » Mon Oct 08, 2012 7:07 pm

Interesting engine... All by yourself, right?

Post Reply