|
![](/i/fill.gif) |
Hi all,
First of all my code:
======================================
//---------------------------Camera--------------------
camera {
location <7, 25, -10>
look_at <5, 3.0, 0.0> }
light_source { <-100, 200, -100> colour rgb 1 }
background { White }
//-------------------------------------------------------
//---------------------Object---------------------------
#declare Wsc4 = function { f_rounded_box(x, y, z, .1, 10, .2, .3) }
isosurface {
function { Wsc4(x, y, z) }
max_gradient 2
contained_by { sphere { 0, 4 } }
pigment { gradient x
pigment_map { [.15 rgb <0, 1, 0>]
[.15 rgb <1, 0, 0>]
[.85 rgb <1, 0, 0>]
[.85 rgb <0, 0, 1>]
}
translate <-0.5, 0, 0>
scale 3*3
//translate <2, 0, 0>
}
scale 2
rotate z*(-40)
rotate y*80
translate <5, 0, 0>
}
//--------------------------------------------------------
I'm trying to move this object along the z axis, but when I write "translate
<5, 0, 9>", it also moves along the y axis.
I've rotated on the z and y axis. Could be there the problem?
One thing I could do is if I translate it along the z axis 9 units, move it
in the same time -9 units along the y axis.
Thanks in advance,
Oleguer
Post a reply to this message
|
![](/i/fill.gif) |