Random Progress - May 2018

Published May 16, 2018
3D
Advertisement

I've being progressing a few random things.

Generators That Don't Make Models 

First up I added a JSON visualiser so I can browse the output of generators that don't create 3D models. There will be plenty of these kicking about.

682702822_charactergen.PNG.133d8abe1fa0a59fc1a04a4dd0655d09.PNG

I'm using JSONViewer by Roman Makudera to do this for now. In the future I may roll my own version though that can have knowledge about unit types. For example, in the image above "age" is in years, and the height values would be in metres. That kind of information is lost with the current viewer.

Height Map

I've also started playing with generating a height map. I'm not planning on doing any terrain work with height maps but I just wanted to see how easy it was to do in ThreeJS. Below is a totally random terrain with random vertex colouring. It was quite straight forward to setup - nice one ThreeJS :)

39829710_terrainheightmap2.png.853f063a34588620fa047afa07c0f327.png

Voxels

I want to build my actual terrain using voxels so I can get more realistic results. It's a lot more complicated but it'll be worth it.

1267159072_voxelterrain1.PNG.f875879c2feb4b6787f6e473bbf84181.PNG

Above is simply a cube space filled randomly with voxels. I'm not doing anything clever in the rendering yet for generating the mesh. Each voxel is it's own ThreeJS cube. Ultimately the terrain is going to be more like no mans sky than minecraft - that is it's represented with voxel data but the mesh generation won't render it all with just cubes.

Next

I'm going to continue playing with the terrain generation using voxels, so I'll likely implemented some 3D noise generators. I have a bunch of terrain generation articles bookmarked from over the years so it'll be loads of fun to finally play with making some of my own :)

Previous Entry Debug Text
1 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement