POV-Ray : Newsgroups : povray.newusers : Another newbie question : Re: Another newbie question Server Time
29 Jul 2024 08:19:03 EDT (-0400)
  Re: Another newbie question  
From: A C C
Date: 27 Mar 2006 05:35:01
Message: <web.4427bf60817d84dd1f59794c0@news.povray.org>
> 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

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