POV-Ray : Newsgroups : povray.advanced-users : Fitting image to view frustum : Re: Fitting image to view frustum Server Time
24 Apr 2024 06:30:19 EDT (-0400)
  Re: Fitting image to view frustum  
From: Bald Eagle
Date: 6 Dec 2016 09:10:01
Message: <web.5846c5b1c8622f6cc437ac910@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:

> If you want the output image format to also adapt, then you're out of luck.

I can specify that in SDL

> > I have something reasonably workable - but I was wondering if there was a
> > standard coding for this, given that so many software applications have some
> > sort of fit page / fit width option.
>
> Nope, nothing inbuilt at present.

I just need a calculation to plug into the beginning of the scene or use as a
macro.

I'm currently using:

#declare Picture = pigment {image_map {png "Image.png"}}
#declare Resolution = max_extent (Picture);
#declare PictureScale = (Resolution + <0, 0, 1>);
camera {location <Resolution.x/2, Resolution.y/2, -max(Resolution.x,
Resolution.y)*1.5>}


Post a reply to this message

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