|
|
<!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'
Preview of image 'c:\windows\temp\nsmailob.png'
|
|