Spherical projection on a cube

September 10, 2011

I decided to apply an earth texture to my sphere/cube. Standard technique is to use TEXCOORD, but things get a bit messy when you are working with a cube as your base. Particularly at the top and bottom faces. Traditionally you must have a vertex at the north and south pole to make the spherical […]


DepthStencilView & Transparency Woes

August 27, 2011

The SlimDX examples have no reference to the depth buffer. XNA creates one by default with SlimDX you have to create one yourself. And for some reason the DepthStencilState is disabled by default, so you have to create a new DepthStencilState and apply it in your draw code. This works almost as expected. That nasty […]


Cube to Sphere

August 27, 2011

I know my progress is slow, job, education, family, other hobbies, etc. I did manage to create a 3D cube and convert it into a sphere this week. The tried and true technique is to start with the 6 faces of a cube. In XNA you create each face with 2 triangles. Converting that to […]


Basic Triangle Tessellation

August 20, 2011

The next obious step after creating a simple traingle with some text is to figure out how DirectX 11 tessellation works.  Tessellation will likely be handy when I need level of detail with terrain patches.  In this case I’ve started with a simple triangle and 3 control points.  Each control point is a one-to-one match with […]


Drawing DirectX11 text using SlimDX

August 18, 2011

I am teaching myself how to program the GPU.  My end goal is to make a planet renderer and possibly a game based on the planet, however I’m having fun just learning graphics programming. I have become dissatisfied with XNA and it’s lack of directX 11 support, so I started using SlimDX. Oddly Microsoft doesn’t […]


Planetary Horizon Culling

August 17, 2011

I overwrote my old blog site. The only article worth saving was this one: I have started a planet renderer based on a quadtree structure.I needed to find a good horizon culling technique and the best one I found was at CrappyCoding, although it lacks a robust method to handle mountains over the horizon that […]