Monday, October 12, 2015

libHexPlanet: Sphere 7

I got sphere 6 working using a texture for the vertexes and sending position indices (I didn't get a chance to post the screen shot).

However, both my machines have limits of 256 KB for textures, this works out to 16384 vertexes, which is sphere 6.

I'm going to give up on indirection, and just spam all the vertices.  It took a little doing, but it's working.

Sphere 7:

And I can now do sphere 10, which is so detailed, the individual hexes are turning into pixels:

Thursday, October 01, 2015

libHexPlanet: Shading!

I figured there should be a way to have the shader do the triangle/hex reprojection, and I found it!

The shader calculates the nearest point, and uses the terrain type (one byte) to pick a color.