Hey @vince I started digging into your 128 LOC above. And i am trying to imagine the setup of this pyramid.
You explained d as distance eye is from monitor = projection screen.
what are z0, oy?
a is some rotation angle but whch way around like clock hands on wall, central axis of merry-go-round? or around x axis BTW where is origin for "real" and projected image?
Best way might to describe setup is a sheet of glass in front of model and we trace lines on the glass of what we see behind glass.
The other way is have model in front of projection screen and from eye point we draw lines from model points onto projection screen behind, ha! like see through shadows
Is the pyramid in front of projection screen, behind it or split somewhere through plane of projection screen i am imaging vertical x, y like movie screen and actual object in from or back or split by screen.
The base would have all positive coordinates y = 0 at top y near height of screen a bottom the base
where are the negative numbers coming from here:
dim x(5), y(5), z(5)
x( 0) = 0: y( 0) = 70: z( 0) = 0
x( 1) = 70: y( 1) =-70: z( 1) = 70
x( 2) =-70: y( 2) =-70: z( 2) = 70
x( 3) =-70: y( 3) =-70: z( 3) =-70
x( 4) = 70: y( 4) =-70: z( 4) =-70
x( 5) = 70: y( 5) =-70: z( 5) = 70
also I put a Sleep command before the loop around command and looking at the very first appearance of our pyramid, something looks wrong! It is impossible to be real pyramid with square base:
You explained d as distance eye is from monitor = projection screen.
what are z0, oy?
a is some rotation angle but whch way around like clock hands on wall, central axis of merry-go-round? or around x axis BTW where is origin for "real" and projected image?
Best way might to describe setup is a sheet of glass in front of model and we trace lines on the glass of what we see behind glass.
The other way is have model in front of projection screen and from eye point we draw lines from model points onto projection screen behind, ha! like see through shadows
Is the pyramid in front of projection screen, behind it or split somewhere through plane of projection screen i am imaging vertical x, y like movie screen and actual object in from or back or split by screen.
The base would have all positive coordinates y = 0 at top y near height of screen a bottom the base
where are the negative numbers coming from here:
dim x(5), y(5), z(5)
x( 0) = 0: y( 0) = 70: z( 0) = 0
x( 1) = 70: y( 1) =-70: z( 1) = 70
x( 2) =-70: y( 2) =-70: z( 2) = 70
x( 3) =-70: y( 3) =-70: z( 3) =-70
x( 4) = 70: y( 4) =-70: z( 4) =-70
x( 5) = 70: y( 5) =-70: z( 5) = 70
also I put a Sleep command before the loop around command and looking at the very first appearance of our pyramid, something looks wrong! It is impossible to be real pyramid with square base:
b = b + ...