Projecting 3d into 2d - useful for simulations



 Science > Physics > Projecting 3d into 2d - useful for simulations

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1
Topic: Science > Physics
User: ""
Date: 10 Mar 2005 04:14:49 AM
Object: Projecting 3d into 2d - useful for simulations
Here is a simple way of projecting 3d coordinates into 2d.
Say (x, y, z) is 3d we want to project into (x', y') which is 2d and F
is the optical focus. Here it is:
if z > F then begin
x' = x * F / (z - F);
y' = y * F / (z - F);
draw(x', y');
end;
It is all based on the equation
1 / Focus = (1 / Original) + (1 / Image)
"Unified Psycho Physics" by DedaNoe
www.geocities.com/DedaNoe
.

 

NEWER

pg.1612     pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER