POV-Ray : Newsgroups : povray.general : camera/image output question : Re: camera/image output question Server Time
5 Nov 2024 09:22:04 EST (-0500)
  Re: camera/image output question  
From: ross litscher
Date: 10 May 2003 20:00:48
Message: <3EBD874C.30402@osu.edu>
Christopher James Huff wrote:
> In article <3EB### [at] osuedu>, ross litscher <lit### [at] osuedu> 
> wrote:
> 
> 
>>at image dimensions 320x240, the resulting box is roughly 50x20 pixels 
>>with tons of space around the image. what would I have to do to render 
>>an output image of 50x20 pixels that is filled perfectly with exactly 
>>one instance of the box and no "empty space" around the box. I hope I 
>>made this sort of clear. The purpose of this is so i don't have to crop 
>>the image in some other editing program.
> 
> 
> You do realize that this is going to either leave part of the box out of 
> the field of view or distort it to fit, don't you? Anyway, you want the 
> right and up keywords, as well as an orthographic camera:
> 
> camera {
>     orthographic
>     location <0, 0,-8>
>     look_at <0, 0, 0>
>     right x*0.5 up y*0.25
>     angle 45
> }
> 
> No matter what resolution you render at, the box will be deformed to fit.
> 


no, i didnt realize it would be deformed. i'll see how it works anyway, 
thanks. maybe some script to crop as i need would just be better, i 
guess i'll find out :)

thanks christopher.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.