POV-Ray : Newsgroups : povray.newusers : distorted image : distorted image Server Time
30 Jul 2024 10:15:32 EDT (-0400)
  distorted image  
From: SomeOne
Date: 30 Jun 2004 13:25:34
Message: <40e2f78e$1@news.povray.org>
I have this simple scene (see below). I want to render this scene
at -w640 -h360. As per the manual, I adjusted the camera 'right' and 'up'
vector to allow for the different aspect ratio. However, as you will notice
when you render this scene, the spheres in the corners look distorted. I've
tried different settings for 'right' and 'up' but can't find a proper setting.
IMHO all three spheres should look round. It seems only natural someone has
already found the right camera settings for a 16:9 A/R.  Please share them with
me, because I'm at a loss here.

Thanks for your time,
-- 
Maurice
Scene attached:
-----8<-----
#version 3.6;
global_settings {
 assumed_gamma 1.0
}

// ==== Standard POV-Ray Includes ====
#include "colors.inc"   // Standard Color definitions
#include "textures.inc"   // Standard Texture definitions
#include "functions.inc"  // internal functions usable in user defined
functions
// ============================= GENERAL DECLARES
#declare SkyBlue_05=rgb <91,113,171>/255;
#declare SkyBlue_06=rgb <161,184,213>/255;
#declare clrSun=rgb <1,1,1>; //<237,194,117>/255;

#declare Sky_pigment=pigment{
  gradient z
  pigment_map{
    [0 pigment_pattern{function{max(0,min(1,y))}} color_map{[0
SkyBlue_06*2][0.5 SkyBlue_05*2]}]
    [1 pigment_pattern{function{max(0,min(1,y))}} color_map{[0 SkyBlue_06][0.5
SkyBlue_05]}]
  }
  scale <1,1,2>
  translate -z
}

#declare cam_x =  0;
#declare cam_y =  3;
#declare cam_z =  -15;
#declare cam_v =  10;

camera
{
 location <cam_x,cam_y,cam_z> * cam_v
 right image_width/image_height*x
 up y
 look_at <0,30,200>
}

light_source{ //sun
 <150000,180000,-100000>
 color rgb clrSun*2 //<2,2,2>
}

sky_sphere {
  pigment{
   Sky_pigment
  }
}

sphere{
 0,20
 translate <80,0,-20>
 pigment{ Blue }
}

sphere{
 0,20
 translate <-80,0,-20>
 pigment{ Red }
}

sphere{
 0,20
 translate <0,0,-20>
 pigment{ Green }
}

-- 
-- 
M.E.J.R.Hendrix
a s o e
u t r n
r e i s
i r e
c   n
e


Post a reply to this message

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