POV-Ray : Newsgroups : povray.general : Re: possible parse error : Re: possible parse error Server Time
2 Aug 2024 12:21:31 EDT (-0400)
  Re: possible parse error  
From: Tom Melly
Date: 14 Oct 2004 17:22:29
Message: <416eee15@news.povray.org>
"Thorsten Froehlich" <tho### [at] trfde> 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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.