POV-Ray : Newsgroups : povray.newusers : how to move an object to position <0,0,0> : Re: how to move an object to position <0,0,0> Server Time
29 Jul 2024 04:20:11 EDT (-0400)
  Re: how to move an object to position <0,0,0>  
From: Stephen
Date: 8 Sep 2006 08:45:00
Message: <web.4501659b1e67056df1cb1e660@news.povray.org>
"Nostromo" <nomail@nomail> wrote:
> Thanks for your help, but it still won't rotate around the middle of thebig
> cube. Maybe someone can have a look at my code and tell me what's wrong?
>
> Here's the POV file
>
[snip]



> object { Rubics
>          pigment { color Green }   //Col_Glass_Vicksbottle }
>   finish {
>                         phong 1
>                         reflection 0.15
>                         ambient 0.2
>                         diffuse 0.9
>                 }
>   interior { I_Glass }
>   scale <3,3,3>
>   rotate <clock, clock*2, clock*4>
>   translate +0.50*(min_extent(Rubics)+max_extent(Rubics))
> }
>
> -----------------------------------------------
>
> When I animate this I want the cube to rotate around it's center, but it's
> rotating around some point near one of the corners.
>
> Thanks a lot in advance.

Nostromo
You should translate to the origin before rotating

Stephen


Post a reply to this message

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