POV-Ray : Newsgroups : povray.advanced-users : Orthographic Oddity Server Time
26 Nov 2024 22:39:51 EST (-0500)
  Orthographic Oddity (Message 1 to 8 of 8)  
From: Ken
Subject: Orthographic Oddity
Date: 7 Aug 1999 14:47:04
Message: <37AC7E93.DE5D21F9@pacbell.net>
Yowser !

In the following bit of code the scene renders as expected when the ortographic
camera type is commented out. When it is used however the pattern on the z axis
plane continues uninterrupted on the y axis plane as if the pattern were applied
to both. Why ?


#declare Num=255;   
#declare Twist= 180;

#declare foo =
pigment{ spotted turbulence z*.25 frequency 1
pigment_map {
          [.25 granite   color_map{[0 rgb<  1, 0,0.0>][1 rgb<.35,.2,0>]}]
          [.50 spiral1 2 color_map{[0 rgb<.45,.3,0.0>][1 rgb<.35,.2,0>]}]
          [.75 granite   color_map{[0 rgb<  1, 0,.75>][1 rgb<.35,.2,0>]}]
      }
 }

plane{ -z, 0
  texture {
    finish { ambient 1 }
    pigment { spherical 
       pigment_map {
        #declare i=0;
        #while (i<Num)
            [i/Num foo rotate z*Twist*i/Num ]
          #declare i=i+1;
        #end
       }
     }
   }
 }

camera{ location <0,0,-6.5> look_at 0
//  orthographic
}

plane{y,-1.5 pigment{rgb 1}finish{ambient .35 diffuse .35}}

background{rgb .65}

light_source{<0,100,-1000>,1} 

-- 
Ken Tyler

Older   Links: http://home.pacbell.net/tylereng/links.htm
Updated Links: http://home.pacbell.net/tylereng/bkmrk999.htm


Post a reply to this message

From: Chris Colefax
Subject: Re: Orthographic Oddity
Date: 7 Aug 1999 20:46:51
Message: <37acd37b@news.povray.org>
Ken wrote:
>
> In the following bit of code the scene renders as expected when the
ortographic
> camera type is commented out. When it is used however the pattern on the z
axis
> plane continues uninterrupted on the y axis plane as if the pattern were
applied
> to both. Why ?

The orthographic camera traces rays parallel to the viewing direction, in
this case +z.  Your floor plane also lies in this direction (and its surface
is infinitely thin), so none of the camera rays will actually intersect it.
What you are seeing is the shadow of the floor plane, cast on to your wall -
the high ambient value of your wall pattern makes it look like a reflection
of sorts.


Post a reply to this message

From: Ken
Subject: Re: Orthographic Oddity
Date: 7 Aug 1999 21:00:06
Message: <37ACD5C9.FAD49AE5@pacbell.net>
Chris Colefax wrote:
> 
> Ken wrote:
> >
> > In the following bit of code the scene renders as expected when the
> ortographic
> > camera type is commented out. When it is used however the pattern on the z
> axis
> > plane continues uninterrupted on the y axis plane as if the pattern were
> applied
> > to both. Why ?
> 
> The orthographic camera traces rays parallel to the viewing direction, in
> this case +z.  Your floor plane also lies in this direction (and its surface
> is infinitely thin), so none of the camera rays will actually intersect it.
> What you are seeing is the shadow of the floor plane, cast on to your wall -
> the high ambient value of your wall pattern makes it look like a reflection
> of sorts.

That is what I suspected but there is still something not quite right in the
explanation. If it
were a reflection of sort the pattern where it intersects
the y axis plane should be a mirror of the z axis plane. Instead I am seeing
a contiguous pattern emerging that defies the explanation you are giving.
I am sure it has much to do with the parallel rays of the camera type but
I am expecting different results. The wall as you put it is the plane with
the pattern applied to it and the "floor" has a simple white pigment attached
to it with it's own finish statement. Oh well back to the perspective camera :)

-- 
Ken Tyler

Older   Links Page: http://home.pacbell.net/tylereng/links.htm
Updated Links Page: http://home.pacbell.net/tylereng/bkmrk999.htm


Post a reply to this message

From: PoD
Subject: Re: Orthographic Oddity
Date: 8 Aug 1999 13:18:52
Message: <37ADBC4E.FA36CC24@merlin.net.au>
When you use the orthographic camera, all the camera rays are parallel. 
This means that when the points below the y=-1.5 plane are rendered, the
camera is effectively below this plane as well.
When the pixel representing <0,0,0> is rendered, the effective camera
location is <0,0,-6.5>, when <20,-10,0> is rendered, the camera is at
<20,-10,-6.5> etc.
So you are looking _under_ the horizontal plane.

Cheers, PoD.


Post a reply to this message

From: Ken
Subject: Re: Orthographic Oddity
Date: 8 Aug 1999 14:52:19
Message: <37ADD08A.2CC994CA@pacbell.net>
PoD wrote:
> 
> When you use the orthographic camera, all the camera rays are parallel.
> This means that when the points below the y=-1.5 plane are rendered, the
> camera is effectively below this plane as well.
> When the pixel representing <0,0,0> is rendered, the effective camera
> location is <0,0,-6.5>, when <20,-10,0> is rendered, the camera is at
> <20,-10,-6.5> etc.
> So you are looking _under_ the horizontal plane.
> 
> Cheers, PoD.

 A good explaination and one I will accept. Next question then is should Pov
be able to see through solid object like this regardless of camera type ?
It seems to defy the laws of the physical world as I know them to be.

-- 
Ken Tyler

Older   Links Page: http://home.pacbell.net/tylereng/links.htm
Updated Links Page: http://home.pacbell.net/tylereng/bkmrk999.htm


Post a reply to this message

From: David Wilkinson
Subject: Re: Orthographic Oddity
Date: 8 Aug 1999 16:18:51
Message: <37b0d828.95564748@news.povray.org>
On Sun, 08 Aug 1999 11:46:34 -0700, Ken <tyl### [at] pacbellnet> wrote:
>
>PoD wrote:
>> 
>> When you use the orthographic camera, all the camera rays are parallel.
>> This means that when the points below the y=-1.5 plane are rendered, the
>> camera is effectively below this plane as well.
>> When the pixel representing <0,0,0> is rendered, the effective camera
>> location is <0,0,-6.5>, when <20,-10,0> is rendered, the camera is at
>> <20,-10,-6.5> etc.
>> So you are looking _under_ the horizontal plane.
>> 
>> Cheers, PoD.
>
> A good explaination and one I will accept. Next question then is should Pov
>be able to see through solid object like this regardless of camera type ?
>It seems to defy the laws of the physical world as I know them to be.

If you think of the orthographic camera as an array of cameras, one for each pixel and
all
parallel to each other, the result may be clearer.
David
------------
dav### [at] cwcomnet
http://www.hamiltonite.mcmail.com
------------


Post a reply to this message

From: Chris Colefax
Subject: Re: Orthographic Oddity
Date: 8 Aug 1999 20:22:44
Message: <37ae1f54@news.povray.org>
Ken <tyl### [at] pacbellnet> wrote:
> That is what I suspected but there is still something not quite right in
the explanation. If it
> were a reflection of sort the pattern where it intersects
> the y axis plane should be a mirror of the z axis plane. Instead I am
seeing
> a contiguous pattern emerging that defies the explanation you are giving.
> I am sure it has much to do with the parallel rays of the camera type but
> I am expecting different results. The wall as you put it is the plane with
> the pattern applied to it and the "floor" has a simple white pigment
attached
> to it with it's own finish statement. Oh well back to the perspective
camera :)

You are indeed seeing the continuation of the wall pattern below the floor
plane - I said it *looks* like a reflection, because of the slightly darker
shading.  If you reduce the ambient value of your wall texture you'll see
the lower section is completely in the shadow of the floor plane.  The
difference is that the perspective camera traces rays from a single point,
whereas the orthographic camera traces the rays from a rectangle.  This
means the floor plane actually intersects the camera, allowing you to see
both above and below it at the same time.  You can achieve the same effect
with the perspective camera by intersecting it with the floor plane, eg.
camera {location <0, -1.5, -6.5>}, because once again the rays won't
actually hit the plane, making it invisible.


Post a reply to this message

From: Ken
Subject: Re: Orthographic Oddity
Date: 8 Aug 1999 20:29:25
Message: <37AE1F58.4352A894@pacbell.net>
Ok :)

-- 
Ken Tyler
http://home.pacbell.net/tylereng/index.html
I know you are but what am I ? <Unknown child>


Post a reply to this message

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