POV-Ray : Newsgroups : povray.programming : Aspect ratio should be 4/3, not 1.33 : Aspect ratio should be 4/3, not 1.33 Server Time
6 Oct 2024 13:04:23 EDT (-0400)
  Aspect ratio should be 4/3, not 1.33  
From: Anders K 
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

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