|
|
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
|
|