Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédente | Prochaine révisionLes deux révisions suivantes | ||
back2root:archives:denthor:part-08 [2021/09/02 11:27] – [Rotating a point with matrixes] frater | back2root:archives:denthor:part-08 [2021/09/02 11:28] – [Drawing a 3D point to screen] frater | ||
---|---|---|---|
Ligne 215: | Ligne 215: | ||
Think about it. The larger the number you divide by, the closer to zero, or the horizon, is the result! This means, the bigger the Z, the further away is the object! Here it is in equation form : | Think about it. The larger the number you divide by, the closer to zero, or the horizon, is the result! This means, the bigger the Z, the further away is the object! Here it is in equation form : | ||
- | code pascal> | + | <code pascal> |
nx := 256*x div (z-Zoff)+Xoff | nx := 256*x div (z-Zoff)+Xoff | ||
ny := 256*y div (z-Zoff)+Yoff | ny := 256*y div (z-Zoff)+Yoff |