|
![](/i/fill.gif) |
Thanks for the clarification...
I have some more doubts. I created a checker board with stick and a lens. I need
to view the stick through the lens. But the lens which i created is in
horizontal position. I need to rotate it vertically so that the stick can be
viewed through the lens. I tried changing the attributes of ROTATE and TRANSLATE
but i couldn't get the exact image which am looking for. Please help me with
this issue.
Here is my code..
#include "colors.inc"
#include "glass.inc"
#declare Photons=on;
global_settings {
assumed_gamma 1.0
max_trace_level 5
#if (Photons)
photons {
spacing 0.02
}
#end
}
camera {
//perspective
location <1, 2, -10>
look_at <0, 2, 0>
right x*1.33
}
light_source
{ <0,15,0>
color rgb <1,1,1>
}
#declare Glass_material = // Glass material
material {
texture {
pigment {rgbt 1}
finish {
ambient 0.0
diffuse 0.05
specular 0.6
roughness 0.005
}
}
interior {
ior 1.5
fade_power 1001
fade_distance 0.9
fade_color <0.5,0.8,0.6>
}
}
// CSG union, add all of shapes 1...N
union
{
box { <-4,0,-4>,<4,0,4> pigment { checker color Black, color White}
rotate -y*35}
cylinder { <0,0,0>,<0,3.5,0>, 0.1 pigment { color MediumSpringGreen } }
intersection
{
sphere {
<0, 5.5, 0>, 6
scale 1
rotate <0, 0, 0>
translate <0, 0, 0>
}
sphere {
<0, -5.5, 0>, 6
scale 1
rotate <0, 0, 0>
translate <0, 0, 0>
}
translate y*3
pigment {
color rgbt <0.2, 0.41176, 0.43922, 0.8>
}
interior {
ior 1.5
}
material { Glass_material }
photons {
target
collect off
}
}
}
Thanks,
Arun
Post a reply to this message
|
![](/i/fill.gif) |