|
![](/i/fill.gif) |
> Hi Antonio,
>
> You can specify any rotation angles you like. The easiest is to rotate
> around the origin, so in the example I've defined 4 spheres 1 unit away from
> the origin in the +z direction. Then rotating around the +y axis gives what
> you've asked for.
> You could also do a #while loop and if you want random rotations you can use
> the seed() and rand() functions.
>
> camera {location <0,2,0.1> look_at <0,0,0>}
> sphere {<0,0,1>, 0.01 rotate 267*y pigment{rgb <1,0,0>} finish {ambient 1}}
> sphere {<0,0,1>, 0.01 rotate 270*y pigment{rgb <1,0,1>} finish {ambient 1}}
> sphere {<0,0,1>, 0.01 rotate 271*y pigment{rgb <1,1,0>} finish {ambient 1}}
> sphere {<0,0,1>, 0.01 rotate 320*y pigment{rgb <0,0,1>} finish {ambient 1}}
>
> Regards,
> Chris B.
Thanks, Chris. I am modelling a Trek ship in POV-Ray, and I didn't know how
to do the windows right.
Antonio
Post a reply to this message
|
![](/i/fill.gif) |