• Welcome to Dark Bit Factory & Gravity.
 

Simple 3D transform?

Started by spathi, August 26, 2013

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

spathi

I am looking for a very simple method for coding 3D engines similar to those in early demos where things like spinning spheres made of pixels were featured.

Hidden line and surface elimination is not necessary, nor is rotation of the camera.

Something like this would be nice though pixels would satisfy, and shading is not necessary-- I can do that myself with surface normals on a lookup table.  (I do realize what vectorballs are.)

http://www.youtube.com/watch?v=XUGHoqM7myk

As Z moves away from the camera toward the horizon, how are X and Y transformed by Z?

Rbz

Challenge Trophies Won:

spathi

Thank you.  This is for a game similar to Space Harrier-- needs scaling, pseudo-3D terrain and possibly atmospheric perspective (blending toward sky color toward horizon) and that's about it.

Looks like Shockwave's code is exactly what I needed.

lambertodini

#3
Thanks for sharing useful information.



http://www.kickexam.com/odeskexams