Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteProchaine 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:34] – frater | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ===== PART 8 ===== | + | ===== PART 08 : Optimization |
Hello everybody! Christmas is over, the last of the chocolates have been eaten, so it's time to get on with this, the eighth part of the ASPHYXIA Demo Trainer Series. This particular part is primarily about 3-D, but also includes a bit on optimisation. | Hello everybody! Christmas is over, the last of the chocolates have been eaten, so it's time to get on with this, the eighth part of the ASPHYXIA Demo Trainer Series. This particular part is primarily about 3-D, but also includes a bit on optimisation. | ||
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 |