Hello Guest

Author Topic: Making a voxel game!  (Read 343 times)

0 Members and 1 Guest are viewing this topic.

Offline ChrisCripple

Making a voxel game!
« on: July 05, 2018, 12:52:09 PM HST »
OK, so I decided to make this thread to document me making a voxel game using OpenGL + Rust. The end goal is just to have random terrain generation, for you to be able to fly around the terrain and to break and place blocks. Thats it. And I only plan for a few blocks (Dirt, Grass, Cobble and Water). This will largely be a learning experience for me as I haven't done anything like this :P.

Day 1 (see attached)
Using Glutin and gl-rs, I managed to create a basic version of a voxel world by iterating over an array of integers (where each integer corresponds to a block). Also added a camera and more advanced input system. Right now there is only one block.
Things for next time:
  • Multiple blocks - May be as simple as uploading the right texture to the GPU instead of the cobble one, maybe more i don't know yet.
  • Chunk system - Will probably make them 16x16x256, just like in Minecraft (since that's proven to work)
[li]Basic world generation - Using some form of noise algorithm, I will implement basic terrain with different heights, and with random blocks.
[/li][/list]

Hope to check in again tomorrow!

Offline Zeitgeist

Re: Making a voxel game!
« Reply #1 on: August 08, 2018, 09:03:39 PM HST »
Looks cool! Good luck on your endeavours!
"All men dream, but not equally. Those who dream by night in the dusty recesses of their minds, wake in the day to find that it was vanity: but the dreamers of the day are dangerous men, for they may act on their dreams with open eyes, to make them possible."
 ~T.E. Lawrence

Youtube: https://www.youtube.com/channel/UCBgDaAoMo5Q2orBmV7BABPQ

Offline QuickBrownFox

Re: Making a voxel game!
« Reply #2 on: August 09, 2018, 12:36:25 AM HST »
...And he didn't check in tomorrow. Ouch.
A proud fox fighting on the battlefield (with breaks) since 2013.
-----------------------------------------------------------------------
Soundcloud: https://soundcloud.com/aureus-music/