Lava Planet in Blender


Having recently purchased the SpaceVFX tutorial series for Blender, I’ve been having a lot of fun working on content for this game project. I may render out maps for real-time display or just use static images for level / world selection.

Changing the color of SpeedTree materials at runtime in Unity3D.


Need to instantiate and then tint some trees for your scene. Try something like this;



Surface nets – getting closer


I played around with the size of the various loops to get it to this point. I’m not sure how it works but there are no out of index errors. With marching cubes the chunk iterations were from 0 to chunkSize -1. There are some verts which cross over outside of their chunk’s zone, circled in red int he image below. I should be able to force them back onto the chunk edge but it’s not ideal.

Code changes;

Surface nets – some progress


A few minutes after the last post i realized my mistake. I’d mixed up the temporary Vector3 array with the production array.

The only things i changed from the previous code to get it to this point was swapping chunk.newVertices with chunk.vertices. Edit: I actually ended removing the swapped array altogether as i could find no area where it was referenced, result was the same.

Its still a way off, but hey.. its better!



Surface net code adaption failed attempt


As a reference this is how it looks in marching cubes mode;

How it appears in my first attempt with the surface nets.

More experimentation to come. I’m guessing i’ve made a few mistakes here.

The modified code (original code here )

Game Engine Status Update 2


Fixed some things, broke some other things. Added a mob with a very simple chase function. More to come.

Some more digging in this video, you can see the marching cubes shapes are a bit jagged and lighting is bare bones / rough. Work in progress. I have some old light spreading / radiosity type code for 3D voxel arrays in minecraft type worlds but its pretty tricky stuff and may take a while to adapt and implement. That along with water.