POV-Ray : Newsgroups : povray.pov4.discussion.general : New camera, or new camera docs illustrations. Server Time
5 Jul 2024 12:26:07 EDT (-0400)
  New camera, or new camera docs illustrations. (Message 4 to 13 of 73)  
<<< Previous 3 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Warp
Subject: Re: New camera, or new camera docs illustrations.
Date: 27 May 2009 05:05:22
Message: <4a1d0252@news.povray.org>
scott <sco### [at] scottcom> wrote:
> >  What happens when you *want* to render the image for a resolution with
> > non-square pixels?

> You specify in some way that you want this, rather than it being the default 
> behaviour.

  I'd want it the other way: If you want to use a different camera aspect
ratio you have to specify it. By default the camera aspect ratio should be
preserved.

> >  (Yes, there are such situations, and they are pretty common. Search for
> > "anamorphic" if you don't believe me.)

> Whilst they may be pretty common, I can't believe they are as common 
> compared to people who change the aspect ratio for rendering as a desktop 
> wallpaper or printing out on certain sized paper.

  Have you taken into account that someone rendering someone else's scene
using an aspect ratio different than what the original author intended
might end up with an image which either clips out parts of the original
image or, worse, shows undermodeled parts which were not meant to be seen?

  Shouldn't the choice of how changing the aspect ratio of the camera
affects the composition of the image be left to the author of the image
rather than the person who renders the image (given that sometimes these
are two different people)?

-- 
                                                          - Warp


Post a reply to this message

From: scott
Subject: Re: New camera, or new camera docs illustrations.
Date: 27 May 2009 05:23:14
Message: <4a1d0682$1@news.povray.org>
>  Have you taken into account that someone rendering someone else's scene
> using an aspect ratio different than what the original author intended
> might end up with an image which either clips out parts of the original
> image or, worse, shows undermodeled parts which were not meant to be seen?
>
>  Shouldn't the choice of how changing the aspect ratio of the camera
> affects the composition of the image be left to the author of the image
> rather than the person who renders the image (given that sometimes these
> are two different people)?

If you read the rest of my post you'll see that I 100% agree with you, and 
this is what my proposed syntax allows, albeit with more flexibility than 
the existing one.


Post a reply to this message

From: Warp
Subject: Re: New camera, or new camera docs illustrations.
Date: 27 May 2009 06:27:18
Message: <4a1d1585@news.povray.org>
scott <sco### [at] scottcom> wrote:
> If you read the rest of my post you'll see that I 100% agree with you, and 
> this is what my proposed syntax allows, albeit with more flexibility than 
> the existing one.

  It is currently possible to make a camera which always assumes square
pixels. Doing so in a way that changing aspect ratio affects the composition
of the image vertically (ie. the image is clipped or extended on the upper
and lower sides) is easy. The horizontal equivalent requires a bit more
work, but is also perfectly possible.

  (Personally I don't really recommend doing so, for the stated reasons.
I'd say the principal reason is that rendering for an anamorphic resolution
with non-square pixels cannot be done without modifying the scene file.)

-- 
                                                          - Warp


Post a reply to this message

From: Chambers
Subject: Re: New camera, or new camera docs illustrations.
Date: 27 May 2009 09:54:34
Message: <4a1d461a$1@news.povray.org>
scott wrote:
> camera{
> hfov 90
> }

What's wrong with the "angle" keyword?

-- 
Chambers


Post a reply to this message

From: clipka
Subject: Re: New camera, or new camera docs illustrations.
Date: 27 May 2009 13:30:00
Message: <web.4a1d78961369cabff708085d0@news.povray.org>
"scott" <sco### [at] scottcom> wrote:
> Then, of course you could specify both "hfov" *and* "vfov" if you really
> wanted both directions to be fixed, this would allow for non-square pixels.

Not the ideal solution, as getting from the desired image & pixel aspect ratios
(which I expect to be *the* known values in such cases) to the angles requires
some messing around with trigonometrics.


Post a reply to this message

From: Warp
Subject: Re: New camera, or new camera docs illustrations.
Date: 27 May 2009 13:37:08
Message: <4a1d7a44@news.povray.org>
Chambers <Ben### [at] gmailcom_no_underscores> wrote:
> scott wrote:
> > camera{
> > hfov 90
> > }

> What's wrong with the "angle" keyword?

  It sets the horizontal field of view (regardless of what the camera
aspect ratio is). Making it set the vertical field of view instead requires
something more complicated.

-- 
                                                          - Warp


Post a reply to this message

From: clipka
Subject: Re: New camera, or new camera docs illustrations.
Date: 27 May 2009 14:00:01
Message: <web.4a1d7ed11369cabff708085d0@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> > You specify in some way that you want this, rather than it being the default
> > behaviour.
>
>   I'd want it the other way: If you want to use a different camera aspect
> ratio you have to specify it. By default the camera aspect ratio should be
> preserved.

Me, I cast my vote for the default-to-square-pixels approach.

>   Have you taken into account that someone rendering someone else's scene
> using an aspect ratio different than what the original author intended
> might end up with an image which either clips out parts of the original
> image or, worse, shows undermodeled parts which were not meant to be seen?

This argument is a bit short-sighted: The same could be said about rendering an
image at a much higher resolution than originally intended by the author -
which may get you "undermodeled" parts *everywhere*.

Furthermore, an author cannot pass on his scene's source code and at the same
hide those undermodeled parts from curious eyes - just a few changes to the
camera block will reveal them anyway.


Even so, as some previous poster mentioned, a possible solution to this issue
would be to allow the scene author to specify (in the camera settings) how to
deal with non-matching aspect ratios, by choosing between (e.g.)

  a) adjust horizontal field of view to fit
  b) adjust vertical field of view to fit
  c) enlarge field of view to fit
  d) reduce field of view to fit
  e) distort to fit
  f) enforce aspect ratio

(Option f) could pick a resolution with about the same total number of pixels as
specified on the command-line / ini file, but the ratio chosen by the scene
author.)

If complemented with command-line / ini options to explicitly specify a pixel
aspect ratio, I guess we'd have all aspect ratio issues solved.


Post a reply to this message

From: Warp
Subject: Re: New camera, or new camera docs illustrations.
Date: 27 May 2009 14:30:04
Message: <4a1d86ac@news.povray.org>
clipka <nomail@nomail> wrote:
> Me, I cast my vote for the default-to-square-pixels approach.

  Why? You can *already* do that with the current POV-Ray. There's no need
to add anything new to get the behavior.

> >   Have you taken into account that someone rendering someone else's scene
> > using an aspect ratio different than what the original author intended
> > might end up with an image which either clips out parts of the original
> > image or, worse, shows undermodeled parts which were not meant to be seen?

> This argument is a bit short-sighted: The same could be said about rendering an
> image at a much higher resolution than originally intended by the author -
> which may get you "undermodeled" parts *everywhere*.

  There is a big difference between rendering at higher resolution and
outright clipping big parts of the image out, or adding big parts which
weren't intended to be seen.

> Furthermore, an author cannot pass on his scene's source code and at the same
> hide those undermodeled parts from curious eyes - just a few changes to the
> camera block will reveal them anyway.

  You would have to intentionally tamper with the scene file in order to
destroy the image composition. With an automatic square-pixel assumption
the tampering would be inadverted.

> Even so, as some previous poster mentioned, a possible solution to this issue
> would be to allow the scene author to specify (in the camera settings) how to
> deal with non-matching aspect ratios, by choosing between (e.g.)

>   a) adjust horizontal field of view to fit
>   b) adjust vertical field of view to fit
>   c) enlarge field of view to fit
>   d) reduce field of view to fit
>   e) distort to fit
>   f) enforce aspect ratio

  All of those can be already done with the current version of POV-Ray.

> If complemented with command-line / ini options to explicitly specify a pixel
> aspect ratio, I guess we'd have all aspect ratio issues solved.

  In fact, that can also be done currently, albeit indirectly. You can use
the 'Declare' command-line option to pass values to the scene file. You
can create a camera definition which sets its aspect ratio according to
such an identifier.

-- 
                                                          - Warp


Post a reply to this message

From: Chambers
Subject: Re: New camera, or new camera docs illustrations.
Date: 27 May 2009 21:47:05
Message: <4a1ded19@news.povray.org>
Warp wrote:
>   All of those can be already done with the current version of POV-Ray.

In fact, I fail to see a need for changing the camera at all.  Of 
course, I'm one of the people who simply "got it" when reading (gasp!) 
the docs.

-- 
Chambers


Post a reply to this message

From: scott
Subject: Re: New camera, or new camera docs illustrations.
Date: 28 May 2009 05:41:14
Message: <4a1e5c3a$1@news.povray.org>
>>   a) adjust horizontal field of view to fit
>>   b) adjust vertical field of view to fit
>>   c) enlarge field of view to fit
>>   d) reduce field of view to fit
>>   e) distort to fit
>>   f) enforce aspect ratio
>
>  All of those can be already done with the current version of POV-Ray.

I think the point of the request is to make easier to choose from the above 
options without needing to resort to some carefully figured out statements.


Post a reply to this message

<<< Previous 3 Messages Goto Latest 10 Messages Next 10 Messages >>>

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