POV-Ray : Newsgroups : povray.newusers : A perplexity... : Re: A perplexity... Server Time
29 Jul 2024 14:14:05 EDT (-0400)
  Re: A perplexity...  
From: Patrick Hagerty
Date: 30 Oct 2005 13:12:36
Message: <43650E32.4CAFE6DC@daeoria.org>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Oops!  My images didn't see to upload.
<p>Trying again.  Using boxes...
<br><img SRC="cid:par### [at] daeoriaorg" height=141 width=291>
<p>Using planes...
<br><img SRC="cid:par### [at] daeoriaorg" height=141 width=291>
<p>Patrick Hagerty wrote:
<blockquote TYPE=CITE>I'm playing with gems.  (I "wish" they were
the real thing.  Just POV
<br>stuff, though.)
<p>I'm observing some anomolous (to me) behavior.  I'm using a declaration
<br>to define the gem structure.  If I use an "intersection" of box
objects,
<br>I get a dirty or noisy material as a result.  If I use an intersection
<br>of planes, I get a very clean crystaline result.  The code and
resultant
<br>images are below.
<p>Using planes...
<p>// ----------------------------------------
<br>// ----------------------------------------
<br>#declare xAngle = 45.0;
<br>#declare yAngle = 45.0;
<br>#declare zAngle = 45.0;
<br>#declare xPlane = 1.0;
<br>#declare yPlane = 1.0;
<br>#declare zPlane = 1.0;
<br>// ----------------------------------------
<br>#declare CrystalJewel = intersection
<br>{
<br>   plane { x, xPlane }
<br>   plane {-x, xPlane }
<p>   plane { y, yPlane }
<br>   plane {-y, yPlane }
<p>   plane { z, zPlane }
<br>   plane {-z, zPlane }
<p>   plane { x, xPlane rotate  xAngle*y }
<br>   plane {-x, xPlane rotate  xAngle*y }
<p>   plane { x, xPlane rotate -xAngle*y }
<br>   plane {-x, xPlane rotate -xAngle*y }
<p>   plane { y, yPlane rotate  yAngle*z}
<br>   plane {-y, yPlane rotate  yAngle*z}
<p>   plane { y, yPlane rotate -yAngle*z}
<br>   plane {-y, yPlane rotate -yAngle*z}
<p>   plane { z, zPlane rotate  zAngle*x}
<br>   plane {-z, zPlane rotate  zAngle*x}
<p>   plane { z, zPlane rotate -zAngle*x}
<br>   plane {-z, zPlane rotate -zAngle*x}
<p>   bounded_by {sphere {0, 1.7321}}
<br>   no_shadow
<br>}
<br>// ----------------------------------------
<p>Using boxes...
<br>// ----------------------------------------
<br>// ----------------------------------------
<br>#declare BrilliantJewell = intersection
<br>{
<br>   box { <-1.0, -1.0, -1.0>, <1.0, 1.0, 1.0> }
<br>   box { <-1.0, -1.0, -1.0>, <1.0, 1.0, 1.0> rotate
-45*x }
<br>   box { <-1.0, -1.0, -1.0>, <1.0, 1.0, 1.0> rotate 
45*x }
<br>   box { <-1.0, -1.0, -1.0>, <1.0, 1.0, 1.0> rotate
-45*y }
<br>   box { <-1.0, -1.0, -1.0>, <1.0, 1.0, 1.0> rotate 
45*y }
<br>   box { <-1.0, -1.0, -1.0>, <1.0, 1.0, 1.0> rotate
-45*z }
<br>   box { <-1.0, -1.0, -1.0>, <1.0, 1.0, 1.0> rotate 
45*z }
<p>   bounded_by {sphere {0, 1.7321}}
<p>   #if (clock_on)
<br>      rotate frame_number * (360/final_frame)
<br>   #end
<p>   no_shadow
<br>}
<br>// ----------------------------------------
<p>The texture and interior definitions are identical, I just swap out
one
<br>or the other () declarations from above using the below macro...
<p>// ----------------------------------------
<br>// ----------------------------------------
<br>#macro Jewel( t_, i_ )
<br>object
<br>{
<br>   CrystalJewel //Octahedron
<p>   texture { t_ }
<br>   interior { i_ }
<br>}
<br>#end
<br>// ----------------------------------------
<p>The result using boxes...
<br>[Image]
<p>The result using planes...
<br>[Image]
<p>Why cant I get the same result using a box as I can using plane objects?
<p>Thanks for your input.
<p>- Patrick</blockquote>
</html>


Post a reply to this message


Attachments:
Download 'c:\windows\temp\nsmail94.png' (70 KB) Download 'c:\windows\temp\nsmailob.png' (33 KB)

Preview of image 'c:\windows\temp\nsmail94.png'
c:\windows\temp\nsmail94.png

Preview of image 'c:\windows\temp\nsmailob.png'
c:\windows\temp\nsmailob.png


 

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