POV-Ray : Newsgroups : povray.general : camera/image output question Server Time
4 Aug 2024 14:23:15 EDT (-0400)
  camera/image output question (Message 1 to 5 of 5)  
From: ross litscher
Subject: camera/image output question
Date: 10 May 2003 18:48:53
Message: <3EBD7670.3030508@osu.edu>
Say i have a box

box {
   <.5, .25, .5>,
   <-.5, -.25, -.5>
}

which when i render with a camera

camera {
   perspective
   location <0, 0, -8>
   look_at <0, 0, 0>
   up y
   angle 45
}

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.

Also, is there an IRC server and channel for povray? i looked around a 
few but i didn't see anything.


thanks,
ross


Post a reply to this message

From: Christopher James Huff
Subject: Re: camera/image output question
Date: 10 May 2003 19:56:28
Message: <cjameshuff-45FA8C.19563210052003@netplex.aussie.org>
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.


> Also, is there an IRC server and channel for povray? i looked around a 
> few but i didn't see anything.

There used to be a #povray channel on EFNet, but it was practically 
inactive the last time I visited. There was a thread in the USENET group 
comp.graphics.rendering.raytracing recently about a #raytracing channel 
on irc.astrolink.org, but there is no "official" POV-Ray IRC channel.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Tom Galvin
Subject: Re: camera/image output question
Date: 10 May 2003 20:00:21
Message: <Xns9377CB7C36B2Atomatimporg@204.213.191.226>
> Also, is there an IRC server and channel for povray? i looked around a 
> few but i didn't see anything.
> 
> 

on irc.newnet.net

#povray
#IMP


Post a reply to this message

From: ross litscher
Subject: Re: camera/image output question
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

From: ross litscher
Subject: Re: camera/image output question
Date: 10 May 2003 20:58:37
Message: <3EBD94D9.8030003@osu.edu>
ross litscher wrote:
> 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.
> 
> 

changing camera location to <0, 0, 1.15> (which is the width of the 
object) resulted in what i expected and hoped to do, and looks just fine 
when the output image is some multiple of +W50 +H22.

thanks again.


Post a reply to this message

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