Turn you Excel sheet into a 3d Engine (I kid you not)

thanks ilauzirika, that find was really helpful for me because I've been trying to code a basic 3d engine, I've had some partial success.

I think its always good to take a peak underneath the "hood" :D
 
well, its nowhere near anything to shout about, I basically created 3d co-ordinate array, (one that describes a 3d cube, each point is XYZ) then I used the 3d to 2d "perspective projection" equation to convert the 3d space onto the screen.

Then I defined the camera co-ordinates, it seems most games engines don't actually move the camera, the entire world moves instead! but the end results is the same,

The hard bit was the rotations, becuse of the rotation matrix, the order actually has an effect.

I think Raptor has done alot of game engine coding, so he'd be the man to ask :D
 
Back
Top