POV-Ray : Newsgroups : povray.newusers : Problems declaring objects : Re: Problems declaring objects Server Time
30 Jul 2024 10:16:33 EDT (-0400)
  Re: Problems declaring objects  
From: Oleguer Vilella
Date: 15 Sep 2004 10:26:21
Message: <4148510d$1@news.povray.org>
Hi again Tim,

I think thats right... I have changed some numbers and when I calculated the
picture, appears all on the correct position.
That's the code:
=====================================
//Per fer els punts dels quarts.
#declare Puntos = union {
sphere { <-0.3, -0.7, 0>, 0.1 pigment { color White } finish { ambient 1 }
translate <2.1, 9.7, -4> }
sphere { <-0.35, 0.15, 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> }
no_shadow
}
//Agulles del relotge.
#declare Agulles = union {
box { <-1, 0, -3.5> <-0.8, .2, 3.5> pigment { color Black } finish { ambient
1 } translate <-0.22, 8.2, -4> rotate <9, 0, 0> no_shadow }
box { <-1, 0, -1> <-0.8, .2, 0.5> pigment { color Black } finish { ambient
1 } translate <1.12, -0.5, -10> rotate <60, 30, 0> no_shadow }
translate y*0.5
}
//Cilindre que unix les agulles.
#declare Cilindre =
cylinder { <0, 0.9, -0.5> <0, 1, 1> 0.035 texture { T_Gold_1D } finish {
specular 2 ambient 1 diffuse .07 reflection 0 phong 0.3 phong_size 30 }
rotate y*25 rotate x*-2 translate <-3.18, 8.8, -6>
}
//Declarant les diverses parts.
#declare Todo_Reloj = union {
object { Reloj rotate y*115 translate <0, 0, 0> scale 0.5  }
object { Puntos translate 0.5 scale 0.5 translate 0 }
object { Agulles translate 0.5 scale 0.5 translate 0 }
object { Cilindre translate 0.5 scale 0.5 translate y*0  }
no_shadow
}
//Declarant tot junt.
object { Todo_Reloj no_shadow translate y*0  }
====================================
Now I have to adjust the "Cilindre", but it's easy and quick.
Do you think that's right?

Best regards,
Oleguer


Post a reply to this message

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