|
![](/i/fill.gif) |
"Thorsten Froehlich" <tho### [at] trf de> wrote in message
news:416dcd89@news.povray.org...
> Tom, please stop confusing this poor user.
<sotto_voce>sorry thorsten and john</sotto_voce>
As a compensation to john...
John, work out why the green sphere changes size and moves, and the blue
sphere changes size but stays in one place when you change the value of
'myScale' in this scene file... it'll probably save you some frustration
later on...
#version 3.6;
#declare myScale = 2;
camera {
location z*-10
look_at 0
}
light_source {
<0, 0, 0>
color rgb 1
translate z*-30
}
cylinder{
<-2,-10,0>,<-2,10,0>0.05
pigment{rgb<0,0,1>}
}
cylinder{
<2,-10,0>,<2,10,0>0.05
pigment{rgb<0,1,0>}
}
// doesn't move relative to <0,0,0>
sphere{
0, 1
scale myScale
translate x*-2
pigment{rgb <0,0,1>}
}
// moves relative to <0,0,0>
sphere{
0,1
translate x*2
scale myScale
pigment{rgb <0,1,0>}
}
Post a reply to this message
|
![](/i/fill.gif) |