|
![](/i/fill.gif) |
Here the solution with example:
#version 3.1;
camera
{
location <20.0, 20, 20.0>
direction 1.5*z
right 4/3*x
look_at <0.0, 0.0, 0.0>
}
light_source
{
<20.0, 20, -20.0>
color red 1.0 green 1.0 blue 1.0
}
#macro apunta(A,B)
#declare My_V = B - A;
#declare My_a = degrees(asin(My_V.y / vlength(My_V)));
#declare My_M = <My_V.x, 0, My_V.z>;
#declare My_b = degrees(acos(My_M.z / vlength(My_M)));
rotate y * -My_b
rotate x * My_a
#end
cylinder
{
<0, 0, 0>, <6,5,4>, 0.2
texture { pigment { color red 1 } }
}
cylinder
{
<0, 0, 0>, <6,5,4>, 0.15
texture { pigment { color green 1 } }
apunta(<0,0,0>,<6,5,4>)
}
cylinder
{
-3*x, 10*x, 0.1
texture { pigment { color red 0.5 } }
}
cylinder
{
-3*y, 10*y, 0.1
texture { pigment { color green 0.5 } }
}
cylinder
{
-3*z, 10*z, 0.1
texture { pigment { color blue 0.5 } }
}
plane
{
y, 0
texture { pigment { checker color rgbt <0, 0, 0.5, 0.2> color rgbt <0.5,
0, 0, 0.2> } }
}
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
![](/i/fill.gif) |