Ot - 3D voxel engine

I’ll most likely be stopping working on this project as I’ve achieved all the goals I wanted to reach with it in terms of rendering optimizations and algorithms. Thank you to everyone for the feedback! :slight_smile:

Feel free to post further feedback, or ask any questions about the project.

git: https://github.com/mahhov/ot-voxel-engine

5Nw9JopHREc

Vuf5CngovKY

Note about running the code: there are 3 main methods, Engine.main will just run sandbox mode, EditorEngine.main will run just the editor mode, and Client.main will run them both (toggling back and forth via the ‘m’ key).

Sandbox Controls:
w, a, s, d, space, and shift - accelerate ship forward, left, backward, right, up, and down
z, x - zoom camera in and out
move mouse - change camera orientation
p - pause
enter - toggle between free-camera (controlled by mouse movement) and follow-camera (always looks towards your ship)
m - to toggle between sandbox and editor

Editor Controls:
w, a, s, d, space, and shift - to move camera
i, j, k, l, u, o - to change selected direction
1, 2, 3, 4, 0 - to change selected piece (1=hull, 2=rotor/thruster, 3=helium, 4=blade/wing, 0=delete)
mouse move - to change selected location
mouse click - to place selected piece with selected direction at selected location
enter - to reset camera to default location and orientation
\ - to load ship from file
/ - to save ship to file
m - to toggle to sandbox mode and try out your creation! (be sure to save before going to sandbox mode. sandbox mode will load from file, not from whatever is in your editor)


Original Post:

Hello,

Back in 2013, I posted of a 3d engine I had been working on but had to stop due to schoolwork. Well, this Christmas, I began a total fresh remake of the engine; this time focusing on optimizations for extremely vast terrains (rather than dense environments like my previous engine had focused on). My plans are to eventually make it support some kind of pirates battles in the sky game where you create your ships with blocks (kind of like robocraft), though I’m still considering some other ideas as well - if anyone wants to make suggestions, please go ahead :slight_smile:

For drawing, it uses Java.Graphics2D and BufferedImage.

Here’s a quick demo 1 week in.

(if anyone can help if there’s an easy way to shrink the embedded image, thank you)
zip: https://www.dropbox.com/s/k0ju5zp2ijka7wl/ot.jar - outdated
git: https://github.com/mahhov/ot-voxel-engine

SDw4UxfbeQ0

https://s27.postimg.org/xj4gzx9ab/ot_sh.png