Author Topic: Simple 3D transform?  (Read 2748 times)

0 Members and 1 Guest are viewing this topic.

Offline spathi

  • C= 64
  • **
  • Posts: 78
  • Karma: 5
    • View Profile
Simple 3D transform?
« on: August 26, 2013 »
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?
« Last Edit: August 26, 2013 by spathi »

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Challenge Trophies Won:

Offline spathi

  • C= 64
  • **
  • Posts: 78
  • Karma: 5
    • View Profile
Re: Simple 3D transform?
« Reply #2 on: August 27, 2013 »
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.

Offline lambertodini

  • ZX 81
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: Simple 3D transform?
« Reply #3 on: November 07, 2013 »
Thanks for sharing useful information.



http://www.kickexam.com/odeskexams
« Last Edit: February 20, 2015 by lambertodini »