|
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Le 23/11/2015 05:43, Mike Horvath a écrit :
> I have the following camera code. How do change the code to get
> Cavalier projection? Thanks!
>
> https://en.wikipedia.org/wiki/Oblique_projection
>
>
> #local cam_dirc = +z; #local cam_rgvc = +x * cam_area; #local
> cam_upvc = +y * cam_area * sind(045);
change cam_dirc to <-1*sqrt(2)/2,-1*sqrt(2)/2,1>
The usual factor for x/y is not sind(045), but that's another story.
And stay away of look_at.
Due to the change to cam_dirc, the position of the camera might need
some adjustment too.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iJwEAQEIAAYFAlZTZlQACgkQhKAm8mTpkW1htQP/Usj3budsVIX2wD2LCbiGRmX5
K8JVE6BojFVPSXXQUei8FakRlnMkRWJXv2IXp3gT5s/to7W+OLaE26VWSImXKN81
8/UKTGA27oLlbJyevXiJJR3ISzYEpWwXGz0WinS8Gyt8mX5bYxaGRHoSNdDf+3dT
+hSjqVwk0mcJEqSc7dY=
=TkcY
-----END PGP SIGNATURE-----
Post a reply to this message
|
|