Chimera 2: Begin!


Today I bite the bullet and learn 3D.

Voxels? Ray tracing? What?

It doesn’t matter.

What matters is a look so amazing that at first you simple can’t take it in and your brain almost finds it difficult to accept. A bit like Little Big Planet. You went “so?” and then you really started to see what was happening before the OMG factor started to sink in.

But first, grasshopper, you must being with the ABC.

Unity? No, not for me. I’m a coder. I cut my teeth on assembler. I will learn OpenGL and I will know what I’m talking about.

It’s frustum, not frustrum.

My current understanding

A representation of a world is created in the computer using geometry, texture and lighting. You then view a portion of this world from what we call the camera position. This view is projected onto a notional 2D plane, which happens to be your screen or a window on it. The depth information that is lost is hinted at because of the perspective transformations applied to all of the geometry used to model the world. In isometric 3D, this perspective is not used. This can give us efficiencies.

The world that is projected onto our 2D view occupies a space called a view frustum. Note, there is no second ‘r’ in frustum. In isometric 3D, the frustum is a rectangular volume. This can offer us efficiencies too. In 3D graphics that preserve perspective, it looks like this

If you’re a bit of a conspiracy fan, you might be reminded of something else

The main thing to note is that the farthest world plane and the camera plane (apologies if this terminology is wrong, remember, I know nothing) are the same size in an isometric 3D view.

Another efficiency I’m going to get is that the draw distance is going to be necessarily small, no matter how much of the screen is covered. This again gives us a lot of efficiency. It also means that the amount of overdraw is going to be tiny, and back-face removal probably unnecessary unless I end up going for lots of layers without alpha.


New Dawn

When I started writing Chimera, I was inspired by the most magical technique of the day, the Filmation Isometric 3D engine created by my hero Chris Stamper. 

You had to have been there. The technique was so far ahead of anything anyone had seen on the ZX Spectrum, that like other staggering advances, it was pretty hard at first glance to take in what was going on. After a while, as the shock was replaced by awe, I set out to recreate the effect. 

I’m not one for saying “no” to challenges. I remember when I was 19, a friend of mine told me to get the Joe Hubbard album and to listen to a particular track. He assured me that once I’d heard it, I’d give up the bass, an instrument I had only just started to play and was picking up some initial proficiency in. He came to visit me a week later. I will never forget the dumbfounded expression on his face as I played the solo back to him. Like Chimera, my rendition was not perfect, or close, but I had proven a point.

I believe we should set high goals. The goals that inspire me are what appear on face value to be absurdly high. The type of boundless goals a child might set.

My first plan with Chimera was to keep the pixel graphics and maybe add a few more skins. I’ve changed my mind. I’m going to go after the most advanced lighting and shading done in an isometric game to date, and I’m not going to be precious about how that’s achieved. If that means voxels, I’ll learn voxels. If that means real-time ray-tracing, I’ll find a way of doing it, but more likely, it will be some cack-handed technique that achieves the results I want.

This weekend, I was planning on learning the basics of modern 3D graphics. I have yet to transform a single matrix in my life, not consciously anyway. I think before I try and break the rules, I should learn some. After all, I was already a somewhat competent assembler programmer when I wrote Chimera, so it would probably be useful if I were to learn the basics of 3D, shading with shaders and whatever the latest global illumination trickery is before I try to change the world.

Don’t tell me it can’t be done, unless you want me to do it.

Chimera 2

A journey of a thousand miles begins with a single step.

Screen Shot 2013 05 20 at 21 56 26

This is of course the Chimera (remastered) code base, but set up with the latest version of Cinder, so getting it recompiled took a couple of hours of fiddling. All good, everything seems OK.

Chimera 2 will be the game I should have made in 1986. Pandora was too soon, I over-reached. I’m going back to my roots and this time, I’m going to get it right.

بسم الله الرحمن الرحيم