Voxel Engine Project

I developed this infinite voxel engine back in April when I was manic. I quit working on it when I got depressed. I’m just starting to get back into it now. This is how far I got. The last image is my attempt at making Mars.




8 Likes

That’s awesome. Are you using a game engine or making this all from scratch?

1 Like

It’s written from scratch in Java and OpenGL.

2 Likes

Impressive… that sounds hard.

1 Like

Yeah it was quite a challenge, but a lot of fun.

1 Like

How do you make the bumps and hills in the terrain? Is it randomly generated noise?

1 Like

It’s Perlin noise.

1 Like

https://www.redblobgames.com/maps/terrain-from-noise/

Here’s a cool article on how you can make different types of terrain from noise functions.

1 Like

That’s awesome!

I recently did a similar thing in Unity following some tutorials. However they have a Perlin noise function you can use so I didn’t have to code that, just implemented the voxels and gave them a height based off the noise. Your’s looks better than mine though!

2 Likes

Yeah sometimes you have to mess with the inputs to the noise function to get good results.

2 Likes

I looked back at the code and it uses 3 octaves of Perlin noise with a power of 5, and scales the X and Z inputs by 1/256.

2 Likes

Next step is to implement marching cubes to make the terrain smooth. I have my work cut out for me. That will be my project for this month.

2 Likes

This topic was automatically closed 95 days after the last reply. New replies are no longer allowed.