POV-Ray : Newsgroups : povray.general : Negative Camera Direction : Re: Negative Camera Direction Server Time
2 Nov 2024 09:20:50 EDT (-0400)
  Re: Negative Camera Direction  
From: Chambers
Date: 30 Mar 2004 17:34:37
Message: <4069f5fd$1@news.povray.org>
OK, using the following scene:

camera {
   up y
   right x
   location -z*1
   look_at 0
}

box {<.1,.1,0>,<1,1,9> pigment {color red 1}}
box {<-.1,.1,0>,<-1,1,9> pigment {color green 1}}
box {<.1,-.1,0>,<1,-1,9> pigment {color blue 1}}
box {<-.1,-.1,0>,<-1,-1,9> pigment {color rgb 1}}

light_source {<0,0,-5> color rgb 1}

I see four boxes in the following configuration:
G R
W B

Using "up -y" gives
R G
B W

Using "up y" and "right -x"
R G
B W

And "up -y" with "right -x"
G R
W B

So it seems both of them flip the image in the horizontal direction.

Using up y, right x, and introducing "sky -y" gives
B W
R G

Which is what you're looking for.  BTW, there is nothing "odd" about placing
the objects "behind" the camera; everything about the orientation is
arbitrary, anyway :)

Oh, and 6.4.1 in the docs gives some great info on how the camera works.

-- 
...Chambers
http://www.geocities.com/bdchambers79


Post a reply to this message

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