POV-Ray : Newsgroups : povray.programming : Aspect ratio should be 4/3, not 1.33 Server Time
8 Jul 2024 18:53:25 EDT (-0400)
  Aspect ratio should be 4/3, not 1.33 (Message 1 to 5 of 5)  
From: Anders K 
Subject: Aspect ratio should be 4/3, not 1.33
Date: 27 Nov 2002 14:34:01
Message: <3de51e29$1@news.povray.org>
Currently the default camera aspect ratio is 1.33 instead of 4/3, even
though the default render size is 320x240 (which is 4/3). This was discussed
briefly in <http://news.povray.org/3bcc5632$1@news.povray.org> but the
discussion died out without a resolution.

This simple patch changes the default value of right to 4/3*x instead of
1.33*x:

--- povwin-3.5-orig/source/camera.cpp Sun Jul 28 00:53:16 2002
+++ povwin-3.5/source/camera.cpp Wed Nov 27 14:16:50 2002
@@ -215,7 +215,7 @@ CAMERA *Create_Camera()
   Make_Vector(New->Location,    0.0,  0.0, 0.0);
   Make_Vector(New->Direction,   0.0,  0.0, 1.0);
   Make_Vector(New->Up,          0.0,  1.0, 0.0);
-  Make_Vector(New->Right,       1.33, 0.0, 0.0);
+  Make_Vector(New->Right,       4.0 / 3.0, 0.0, 0.0);
   Make_Vector(New->Sky,         0.0,  1.0, 0.0);
   Make_Vector(New->Look_At,     0.0,  0.0, 1.0);
   Make_Vector(New->Focal_Point, 0.0,  0.0, 1.0);

Anders

--
light_source{6#local D=#macro B(E)#macro A(D)#declare E=(E-#declare
C=mod(E D);C)/D;C#end#while(E)#if(A(8)=7)#declare D=D+2.8;#else#if(
C>2)}torus{1..2clipped_by{box{-2y}}rotate<1 0C>*90translate<D+1A(2)
*2+1#else}cylinder{0(C-v=1).2translate<D+C*A(2)A(4)#end-2 13>finish
{specular 1}pigment{rgb x}#end#end#end-8;1B(445000298)B(519053970)B
(483402386)B(1445571258)B(77778740)B(541684549)B(42677491)B(70)}


Post a reply to this message

From: Christoph Hormann
Subject: Re: Aspect ratio should be 4/3, not 1.33
Date: 27 Nov 2002 15:49:24
Message: <3DE52FD4.A86E0BB@gmx.de>
"Anders K." wrote:
> 
> Currently the default camera aspect ratio is 1.33 instead of 4/3, even
> though the default render size is 320x240 (which is 4/3). This was discussed
> briefly in <http://news.povray.org/3bcc5632$1@news.povray.org> but the
> discussion died out without a resolution.
> 
> [...]

The discussion died because this is an intended behavior.  Changing this
would break lots of old scenes.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 15 Nov. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Anders K 
Subject: Re: Aspect ratio should be 4/3, not 1.33
Date: 27 Nov 2002 16:12:13
Message: <3de5352d$1@news.povray.org>
Christoph Hormann wrote:
> The discussion died because this is an intended behavior.  Changing this
> would break lots of old scenes.

Break? It would *fix* lots of old scenes that had previously been streched
horizontally by about 0.25%. The question is whether you consider fixing to
be a form of breaking. If you do, then I guess there's nothing I can do to
convince you, unless you only apply the change if version >= 3.5 or
something.

Anders

--
light_source{6#local D=#macro B(E)#macro A(D)#declare E=(E-#declare
C=mod(E D);C)/D;C#end#while(E)#if(A(8)=7)#declare D=D+2.8;#else#if(
C>2)}torus{1..2clipped_by{box{-2y}}rotate<1 0C>*90translate<D+1A(2)
*2+1#else}cylinder{0(C-v=1).2translate<D+C*A(2)A(4)#end-2 13>finish
{specular 1}pigment{rgb x}#end#end#end-8;1B(445000298)B(519053970)B
(483402386)B(1445571258)B(77778740)B(541684549)B(42677491)B(70)}


Post a reply to this message

From: Warp
Subject: Re: Aspect ratio should be 4/3, not 1.33
Date: 27 Nov 2002 16:59:15
Message: <3de54033@news.povray.org>
Anders K. <and### [at] kaseorgcom> wrote:
> Break? It would *fix* lots of old scenes that had previously been streched
> horizontally by about 0.25%.

  I agree.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Micha Riser
Subject: Re: Aspect ratio should be 4/3, not 1.33
Date: 27 Nov 2002 17:02:36
Message: <3de540fb@news.povray.org>
Anders K. wrote:

> Currently the default camera aspect ratio is 1.33 instead of 4/3, even
> though the default render size is 320x240 (which is 4/3). This was

DOH! And I have been wondering for months why my raytracer gave a slightly 
stretched picture compared to POV-Ray... 

-- 
objects.povworld.org - The POV-Ray Objects Collection
book.povworld.org    - The POV-Ray Book Project


Post a reply to this message

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