-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Rune wrote:
> Thomas de Groot wrote:
>> There is a nice little thing you can use easily:
>>
>> //before the camera definition:
>> #local H=image_width/sqrt(image_height*image_width);
>> #local V=image_height/sqrt(image_height*image_width);
>> #local Iwidth = 500;
>> #local Iheight = 600;
>>
>> //in the camera definition use:
>> right x*(Iwidth*M)/(Iheight*M)
>>
>
>> Ouch!! forgot
>> #local M = 1;
>> in the declaration. Not really essential though, but for completeness
>> sake of this example.
>
> I don't understand this. You declare H and V using a clever method, but then
> don't use those variables at all...
>
> I'd simply say:
>
> #local W = image_width/sqrt(image_height*image_width);
> #local H = image_height/sqrt(image_height*image_width);
>
> // in the camera definition use:
> right x*W
> up y*H // or z*H if Z is up
>
> Rune
Why the square root? Why not simply:
up y // or z
right x * image_width / image_height
Or
up y * image_height
right x * image_width
The actual length of the vectors doesn't matter since he used angle
afterwards.
Jerome
- --
+------------------------- Jerome M. BERGER ---------------------+
| mailto:jeb### [at] freefr | ICQ: 238062172 |
| http://jeberger.free.fr/ | Jabber: jeb### [at] jabberfr |
+---------------------------------+------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQFGeDMgd0kWM4JG3k8RAjDhAJ9PksYQGfFUh+tC5CixcH2bq7jJ5wCgnrW9
5VBHNX5QrRgPQBn3ICS0EUQ=
=zKgU
-----END PGP SIGNATURE-----
Post a reply to this message
|