|
![](/i/fill.gif) |
I created a mirror box using six planes, put a few spheres, a light, and a
camera inside it, and expected to see it going on "for ever", but was
surprised to see it going for only 4 reflections. Is this normal, or is
there a setting I'm missing?
Thanks
Rick Seiden
// Standard pre-defined colors
//
#include "colors.inc"
// macros for generating various shapes
//
#include "shapes.inc"
#include "textures.inc"
// perspective (default) camera
camera {
location <1.0, 2, 4>
look_at <0.0, 0.0, 0>
}
// create a regular point light source
light_source {
<0, 1, 0>
color White // light's color
}
// create a sphere shape
sphere {
<5,0, 0> // center of sphere <X Y Z>
0.5 // radius of sphere
texture {pigment {color Red}}
}
// create a sphere shape
sphere {
<0,5, 0> // center of sphere <X Y Z>
0.5 // radius of sphere
texture {pigment {color White}}
}
// create a sphere shape
sphere {
<0,0, 5> // center of sphere <X Y Z>
0.5 // radius of sphere
texture {pigment {color Blue}}
}
// create a sphere shape
sphere {
<-5,0, 0> // center of sphere <X Y Z>
0.5 // radius of sphere
texture {pigment {color White}}
}
// create a sphere shape
sphere {
<0,-5, 0> // center of sphere <X Y Z>
0.5 // radius of sphere
texture {pigment {color Blue}}
}
// create a sphere shape
sphere {
<0,0, -5> // center of sphere <X Y Z>
0.5 // radius of sphere
texture {pigment {color Red}}
}
// An infinite planar surface
// plane {<A, B, C>, D } where: A*x + B*y + C*z = D
plane {
z, // <X Y Z> unit surface normal, vector points "away from surface"
5.0 // distance from the origin in the direction of the surface normal
hollow on // has an inside pigment?
texture { finish {ambient 0 diffuse 0 reflection 1}}
}
// An infinite planar surface
// plane {<A, B, C>, D } where: A*x + B*y + C*z = D
plane {
z, // <X Y Z> unit surface normal, vector points "away from surface"
-5.0 // distance from the origin in the direction of the surface normal
hollow on // has an inside pigment?
texture {finish {ambient 0 diffuse 0 reflection 1}}
}
plane {
x,-5
hollow on
texture {finish {ambient 0 diffuse 0 reflection 1}}
}
plane {
x,5
hollow on
texture {finish {ambient 0 diffuse 0 reflection 1}}
}
plane {
y,-5
hollow on
texture {finish {ambient 0 diffuse 0 reflection 1}}
}
plane {
y,5
hollow on
texture {finish {ambient 0 diffuse 0 reflection 1}}
}
// create a curved tube object translating a sphere along a certain path
sphere_sweep {
linear_spline // linear curve
//cubic_spline // alternative spline curves
//b_spline
16, // number of specified sphere positions
<-5,5,-5>, 0.25 //a 1
<-5,5,5>, 0.25 //b 2
<5,5,5>, 0.25 //c 3
<5,5,-5>, 0.25 //d 4
<-5,5,-5>, 0.25 //a 5
<-5,-5,-5>, 0.25 //h 6
<5,-5,-5>, 0.25 //e 7
<5,5,-5>, 0.25 //d 8
<5,-5,-5>, 0.25 //e 9
<5,-5,5>, 0.25 //f 0
<5,5,5>, 0.25 //c 1
<5,-5,5>, 0.25 //f 2
<-5,-5,5>, 0.25 //g 3
<-5,5,5>, 0.25 //b 4
<-5,-5,5>, 0.25 //g 5
<-5,-5,-5>, 0.25 //h 6
//tolerance 0.001 // optional
texture {pigment {color White}}
}
--
---------------------------------
Growing OLDER is required
Growing UP is optional
Post a reply to this message
|
![](/i/fill.gif) |