POV-Ray : Newsgroups : povray.general : Torus/Camera Angle Bug??? : Torus/Camera Angle Bug??? Server Time
26 Apr 2024 08:59:11 EDT (-0400)
  Torus/Camera Angle Bug???  
From: Eric Freeman
Date: 21 May 2000 11:58:59
Message: <392807c3@news.povray.org>
Hey all,

Here's the code which causes the problem with the torus.  It seems that if
the camera is too far from a torus, the torus falls apart.  This problem
appears in official POV (3.1g.watcom.win32, Pentium 133, Windoz 98).

++++++++++++++++++++++++++++++

//       Version: POV 3.1 official
//   Description: possible bug when viewing a torus from a distance
//        Author: Eric L. Freeman
//        E-Mail: eri### [at] datasynccom
//      HomePage: www.datasync.com/~ericfree

file://#version unofficial MegaPov 0.5;

#declare CamNum = 1;  // 1 = close-up camera, no problem
                      // 2 = distant camera, torus problem

global_settings {max_trace_level 167}
#declare ThingPig = rgb <0,0,1>;
background {rgb <0.556,0.419,0.137>}
light_source {
  <100,200,-300> rgb <1,1,1>
}
camera {
  #switch (CamNum)
  #case (1)
    location <0,0,-100>
    look_at <0,0,0>
    angle 10
  #break
  #case (2)
    location <0,0,-10000>
    look_at <0,0,0>
    angle 0.1
  #break
  #end
}
cylinder {
  <-0.8,0,0>,
  <0.8,0,0>
  2
  pigment {ThingPig}
  rotate y*-45
}
sphere {
  <-5,0,0>, 2
  pigment {ThingPig}
}
torus {
  1.3, 0.7
  sturm
  pigment {ThingPig}
  rotate z*90
  rotate y*-45
  translate <5,0,0>
}

++++++++++++++++++++++++++++++

Eric
--------------------
http://www.datasync.com/~ericfree
--------------------
"I don't like it, and I'm sorry I ever had anything to do with it."
- Erwin Schrodinger talking about Quantum Mechanics.


Post a reply to this message

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