|
|
If I put like this:
===================================
#declare Reloj =
union {
merge {
box {<-5,0,-55>,<0,95,55>}
cylinder{<-5,95,0>,<0,95,0>,55}
texture { T_Wood15 } finish { specular .51 ambient 1 diffuse .96 }
scale 0.1}
difference {
cylinder{<-10,95,0>,<20,95,0>,40}
cylinder{<-11,95,0>,< 6,95,0>,36}
texture { T_Gold_1D } finish { specular 2 ambient 1 diffuse .07
reflection 0.1 phong 0.3 phong_size 30 }
scale 0.1}};
sphere { <0, 0, 0>, 0.1 pigment { color White } finish { ambient 1 }
translate <2.1, 9.7, -4> }
sphere { <0, 0, 0>, .1 pigment { color White } finish { ambient 1 }
translate <-5.4, 9.35, -4> }
sphere { <0, 0, 0>, .1 pigment { color White } finish { ambient 1 }
translate <-2.2, 12.6, -4> }
sphere { <0, 0, 0>, .1 pigment { color White } finish { ambient 1 }
translate <-2.2, 6, -4> }
object { Reloj rotate y*115 translate <0, 0, 0> }
==================================
It works good, but I closed the union after the difference and I need to
have the spheres into de union, to call them with the name "Reloj".
If I put the semi colon after the difference and I don't close the union, it
gives me an error and it doesn't render the image.
Josh, why you put this semi colon? I only use the semi colons with the
macros, for exemple: "#local tt= -1.1;"
or something like this.
Thank you Josh.
Regards,
Oleguer
news:41401656$1@news.povray.org...
> I'm guessing here as I havn't tried rendering you code but there appears
to
> be a missing semi colon after your declare e.g.
> > #declare Reloj =
> > union {
> > merge {
> > box {<-5,0,-55>,<0,95,55>}
> > cylinder{<-5,95,0>,<0,95,0>,55}
> > texture { T_Wood15 } finish { specular .51 ambient 1 diffuse .96 }
> > scale 0.1}
> >
> > difference {
> > cylinder{<-10,95,0>,<20,95,0>,40}
> > cylinder{<-11,95,0>,< 6,95,0>,36}
> > texture { T_Gold_1D } finish { specular 2 ambient 1 diffuse .07
> > reflection 0.1 phong 0.3 phong_size 30 }
> > scale 0.1}} ; <===================================== Here...
> > object { Reloj rotate y*115 translate <0, 0, 0> }
>
>
Post a reply to this message
|
|