Welcome,
Guest
. Please
login
or
register
.
April 19, 2026
Home
Help
Search
Calendar
Login
Register
Dark Bit Factory & Gravity
»
PROGRAMMING
»
General coding questions
»
Simple 3D transform?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Simple 3D transform? (Read 2750 times)
0 Members and 1 Guest are viewing this topic.
spathi
C= 64
Posts: 78
Karma: 5
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
»
Logged
Rbz
Founder Member
DBF Aficionado
Posts: 2757
Karma: 493
Re: Simple 3D transform?
«
Reply #1 on:
August 27, 2013 »
Take a look on this source code:
http://www.dbfinteractive.com/forum/index.php?topic=5220.msg69873#msg69873
and here
http://www.dbfinteractive.com/forum/index.php?topic=4580.msg61911#msg61911
it might help you out.
Logged
Challenge Trophies Won:
spathi
C= 64
Posts: 78
Karma: 5
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.
Logged
lambertodini
ZX 81
Posts: 1
Karma: 0
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
»
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Dark Bit Factory & Gravity
»
PROGRAMMING
»
General coding questions
»
Simple 3D transform?