|
|
I have a problem of distortion of images (for example making a circle and it
will appear as an ellipse)
.
This is due to 2 facts:
1. using a 320x200 resolution
2. changing the coordinate system with the camera option "up" and "right" as
below.
camera {
location <0,0,0>
look_at <0,25,0>
up <0,0,1>
right <-1,0,0>
}
I can work around in the case 1 (avoiding using this resolution).
A more serious problem is the case 2, as I have to interface with cad files
and systems with z ax pointing up.
Could somebody help me?
Thank you very much.
Post a reply to this message
|
|
|
|
> I have a problem of distortion of images (for example making a circle and
it
> will appear as an ellipse)
Well, you've got to take the size of the output image into account. If your
up-vector is <0,1,0>, and your output images is 320x200, then your right
vector should be <-1,0,0>*(320/200) or, to make it more flexible for
different kinds of images, I just use this:
up y right x*image_width/image_height
Regards,
Tim
--
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>
Email: tim.nikias (@) nolights.de
Post a reply to this message
|
|