… and the easy way would be fiddling with the OpenGL Projection Matrix! (me == lazy)
The projection matrix would be like:
(this one zapped a few of my brainscells while creating)
1.0, 0.0, -1.0, 0.0 // x
0.5, 1.0, 0.5, 0.0 // y
0.0, -0.05, 0.0, 0.0 // depth
0.0, 0.0, 0.0, 1.0 // [nothing]
Scale a bit (in model-space), transpose and upload to gfx-card!
~~
Pros:
- any shape of any object is supported
- hardware accelerated gfx
- depth-buffer to reduce fills
Cons:
- less 1337!
~~
http://home.hccnet.nl/s.balk/static/isometric.png
~~
… ;D
I really like your engine better. Rendering that in software is much harder than my ‘quick’ hack. Well done!