POV-Ray : Newsgroups : povray.beta-test : orthographic camera renders object 'black' Server Time
1 Nov 2024 13:21:47 EDT (-0400)
  orthographic camera renders object 'black' (Message 1 to 4 of 4)  
From: Jeff McClintock
Subject: orthographic camera renders object 'black'
Date: 2 May 2002 16:46:19
Message: <3cd1a59b@news.povray.org>
This object renders fine with a regular camera, but when I switched to
orthographic, it has no shading whatsoever, moving the orthographic camera
very slighly off-center fixes the problem.

Jeff M

using version 3.5 beta, VC++ exe

Apologies if this is a known issue
---------------------------------------------------------------------------
// ROTARY SWITCH

#include "colors.inc"


  camera {
   orthographic
//   location <0, 0.0001, -2>  // OK
   location <0, 0.000, -2>  // RENDERS 'BLACK' !!
   look_at <0, 0, 0>
  }

light_source { <-15, 15, -4> color White }


prism {
    conic_sweep
   cubic_spline
    1, // sweep the following shape from here ...
    0.6, // ... up through here
    27, // the number of points making up the shape ...
< 0.965926, 0.258819 >,
< 0.900000, 0.000000 >,
< 0.965926, -0.258819 >,
< 0.866025, -0.500000 >,
< 0.636396, -0.636396 >,
< 0.500000, -0.866025 >,
< 0.258819, -0.965926 >,
< -0.000000, -0.900000 >,
< -0.258819, -0.965926 >,
< -0.500000, -0.866025 >,
< -0.636396, -0.636396 >,
< -0.866025, -0.500000 >,
< -0.965926, -0.258819 >,
< -0.900000, 0.000000 >,
< -0.965926, 0.258819 >,
< -0.866025, 0.500000 >,
< -0.636396, 0.636396 >,
< -0.500000, 0.866025 >,
< -0.258819, 0.965926 >,
< 0.000000, 0.900000 >,
< 0.258819, 0.965926 >,
< 0.500000, 0.866025 >,
< 0.636396, 0.636396 >,
< 0.866025, 0.500000 >,
< 0.965926, 0.258819 >,
< 0.900000, -0.000000 >,
< 0.965926, -0.258819 >
    rotate <90,0,0>
    pigment { Grey }
}


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: orthographic camera renders object 'black'
Date: 2 May 2002 16:52:06
Message: <3cd1a6f6@news.povray.org>
In article <3cd1a59b@news.povray.org> , "Jeff McClintock" 
<jef### [at] telecomconz> wrote:

> This object renders fine with a regular camera, but when I switched to
> orthographic, it has no shading whatsoever, moving the orthographic camera
> very slighly off-center fixes the problem.

In your scene the camera plane will move into the object when using the
othographic camera.  You need to adjust your scene, this is not a bug in
POV-Ray.

    Thorsten

____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg

I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Warp
Subject: Re: orthographic camera renders object 'black'
Date: 2 May 2002 19:03:08
Message: <3cd1c5ac@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:
> In your scene the camera plane will move into the object when using the
> othographic camera.  You need to adjust your scene, this is not a bug in
> POV-Ray.

  It would be nice if camera rays started from the plane which passes
through the camera location point (and is parallel to the viewing plane)
instead of starting from the projection plane.

-- 
#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: Rune
Subject: Re: orthographic camera renders object 'black'
Date: 6 May 2002 04:51:41
Message: <3cd6441d@news.povray.org>
Warp wrote:
>   It would be nice if camera rays started from the
> plane which passes through the camera location point
> (and is parallel to the viewing plane) instead of
> starting from the projection plane.

I agree, I have never understood why it doesn't work that way...

Besides being much more logical and intuitive, it would also prevent
lots of confusion.

Rune


Post a reply to this message

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