POV-Ray : Newsgroups : povray.advanced-users : Animorphic Camera? Server Time
31 Oct 2024 20:16:49 EDT (-0400)
  Animorphic Camera? (Message 1 to 4 of 4)  
From: dickbalaska
Subject: Animorphic Camera?
Date: 29 Sep 2015 23:00:01
Message: <web.560b4f22633d2ac5d9e404ae0@news.povray.org>
Hi ho,

[ I have an 8 minute POV-Ray video/DVD that I made back in 99-03.
Since my house is now littered with 60" wide screen TVs, I reckon I need to
rebuild it, after a 10 year povray hiatus. ]

I can't figure out the camera. For 720x480 NTSC 4/3, the camera is "right
1.33*x" .
I figured for animorphic, I would say 1.78*x and everything would be squished,
easy peasey. Alas, no. It actually looks the same as the 4/3 version.
The docs perhaps suggest "angle" may be what I want to tweak, but I'm lost on
the math. I need to display 854 pixels worth of data in a 720 (or 704) wide
image.

Help?


Post a reply to this message

From: Le Forgeron
Subject: Re: Animorphic Camera?
Date: 30 Sep 2015 07:42:05
Message: <560bca8d$1@news.povray.org>
Le 30/09/2015 04:58, dickbalaska a écrit :
> Hi ho,
>
> [ I have an 8 minute POV-Ray video/DVD that I made back in 99-03.
> Since my house is now littered with 60" wide screen TVs, I reckon I need to
> rebuild it, after a 10 year povray hiatus. ]
>
> I can't figure out the camera. For 720x480 NTSC 4/3, the camera is "right
> 1.33*x" .
> I figured for animorphic, I would say 1.78*x and everything would be squished,
> easy peasey. Alas, no. It actually looks the same as the 4/3 version.
> The docs perhaps suggest "angle" may be what I want to tweak, but I'm lost on
> the math. I need to display 854 pixels worth of data in a 720 (or 704) wide
> image.
>
> Help?

720x480 NTSC, 4/3 or 16:9, dvd I presume... neither have square pixels.

The output resolution should be 720x480. That's for the movie encoder.
You must have it encode the right bit about the image ratio, and not 
cropping frames to fit, (and maybe also specifiying the non-square pixel 
ratio), and progressive (vs interlaced) is probably simpler with 
computer generated pictures.

Now, the view is what must fit in the picture. and Either you know the 
ratio of the pixel for the format you want and then apply it as a 
correction factor in the up / right value, or you just get away with any 
image_width & image_height  and hard-coded the desired ratio.

up y
right 16/9*x

That was for DVD. (ratio of 720x480 is 1.5, neither 1:33 nor 16:9)

There is also now the HD-format (blu-ray and other).
Full HD is 1920x1080 (as 16:9), square pixel
HD-ready is 1280x720 (as 16:9), square pixel


Post a reply to this message

From: clipka
Subject: Re: Animorphic Camera?
Date: 30 Sep 2015 14:13:36
Message: <560c2650@news.povray.org>
Am 30.09.2015 um 04:58 schrieb dickbalaska:
> Hi ho,
> 
> [ I have an 8 minute POV-Ray video/DVD that I made back in 99-03.
> Since my house is now littered with 60" wide screen TVs, I reckon I need to
> rebuild it, after a 10 year povray hiatus. ]
> 
> I can't figure out the camera. For 720x480 NTSC 4/3, the camera is "right
> 1.33*x" .
> I figured for animorphic, I would say 1.78*x and everything would be squished,
> easy peasey. Alas, no. It actually looks the same as the 4/3 version.
> The docs perhaps suggest "angle" may be what I want to tweak, but I'm lost on
> the math. I need to display 854 pixels worth of data in a 720 (or 704) wide
> image.
> 
> Help?

I presume that you mean "anamorphic", or, more specifically, anamorphic
widescreen DVD format: Video data stored in the same format that would
be used for 4:3 material, but intended to be stretched horizontally to
fit a 16:9 display.

In that case, the /display aspect ratio/ you need is 16:9.


In POV-Ray, the display aspect ratio is specified in the camera block,
via the "right" and "up" vectors. To achieve the required ratio of 16:9,
you need to make sure that the "right" vector is (16/9) times as long as
the "up" vector.

If your camera block uses the "angle" keyword, then this is trivially
achieved by using any of the following settings (presuming the
directions are supposed to be x and y, respectively):

    right 16*x up 9*y
    right (16/9)*x up y
    right x up (9/16)*y

In addition, however, you may have to adjust the "angle" setting,
depending on whether you want to keep the horizontal or vertical viewing
angle unchanged: To keep the /vertical/ viewing angle unchanged, just
leave "angle" as it is; otherwise, to keep the /horizontal/ viewing
angle unchanged, use:

    angle atan(tan(ANGLE)*(16/9)/(4/3))

where ANGLE is the old setting.

If your camera block does /not/ use the "angle" keyword, and you want to
keep the /horizontal/ viewing angle unchanged, then you should use:

    right RLENGTH*x up (9/16)*RLENGTH*y

where RLENGTH is the previous length of the "right" vector; if on the
other hand you want to keep the /vertical/ viewing angle unchanged, then
you should use:

    right (16/9)*ULENGTH*x up ULENGTH*y

where ULENGTH is the previous length of the "up" vector (again presuming
the directions are supposed to be x and y, respectively).


That is all there is to get the right /display/ aspect ratio. The
/storage/ aspect ratio, i.e. the ratio of the image width and height in
pixels, is entirely independent from it, and is not set via the scene
description, but via command-line or ini-file parameters; these are
totally straightforward: To generate images with a storage size of
720x480, simply use:

    +w720 +h480

Alternatively, to generate 704x480 material, use:

    +w704 +h480

(Note how these formats don't match the classic 4:3 NTSC display aspect
ratio either.)


That /should/ be all the magic needed.

As a final note though, don't pay too much attention to the preview
window: No matter what display aspect ratio you are targeting, the
preview will always show the image at the chosen storage aspect ratio
(or, more precisely, the storage aspect ratio multiplied by your
computer's effective pixel aspect ratio, which in the ideal case would
be 1:1).


Post a reply to this message

From: dickbalaska
Subject: Re: Animorphic Camera?
Date: 1 Oct 2015 20:50:01
Message: <web.560dd3bb84473666d9e404ae0@news.povray.org>
Argh.

I never noticed that my 720x480 (1.5) frames were being squished to 1.33.
All these years.  Maybe I noticed it once upon a time and dismissed it, although
that seems odd.
I think my current problem is related to the difference between 1.78 and 1.5 vs.
1.5 and 1.33.

Setting
   right AspectRatio*x
where
   AspectRatio = 1.78*1.33
seems to working for me.  It might be a little "reverse fisheye-y" when encoded.
(There's a scene where the camera pans under a Christmas tree.  The edges of the
tree (screen left and right) seem to warp closer to the camera than the tree
trunk.)

I'll run 1000 frames 704x480 at (1.78*1.33) and the same frames at 1.78 and see
what I see.

Thanks!

dik

Le_Forgeron <lef### [at] freefr> wrote:
> There is also now the HD-format (blu-ray and other).
> Full HD is 1920x1080 (as 16:9), square pixel
> HD-ready is 1280x720 (as 16:9), square pixel

I'm gonna ask over in animations about modern encoders, once I get my renderfarm
program back online. (I would love to do 1080p).


Post a reply to this message

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