POV-Ray : Newsgroups : povray.general : Mathematical BoneHead Server Time
18 Nov 2024 05:13:11 EST (-0500)
  Mathematical BoneHead (Message 1 to 2 of 2)  
From: Blane Bizzaro
Subject: Mathematical BoneHead
Date: 11 Oct 2002 12:09:57
Message: <3da6f5ec.186263866@news.povray.org>
Hello All,
Creating an animation of a sphere rolling along the xz plane is easy
if you do this...

object {sphere {<0,0,0>1
      
                 rotate <0, 0, -clock*360>
      translate <-pi, 1, 0>
      translate <2*pi*clock, 0, 0>}
        }

But how do you do it if the radius of the sphere is < or >1 ?
Any radius values less than 1 cause the sphere to look like it is
sliding and rolling, not truely rolling.

I'm sure this is an easy math problem, I just can't see it. Any ideas?

Thanks,
--Blane


Post a reply to this message

From: Mike Williams
Subject: Re: Mathematical BoneHead
Date: 11 Oct 2002 13:43:00
Message: <iyejRGAZvwp9Ewjk@econym.demon.co.uk>
Wasn't it Blane Bizzaro who wrote:
>Hello All,
>Creating an animation of a sphere rolling along the xz plane is easy
>if you do this...
>
>object {sphere {<0,0,0>1
>      
>                 rotate <0, 0, -clock*360>
>      translate <-pi, 1, 0>
>      translate <2*pi*clock, 0, 0>}
>        }
>
>But how do you do it if the radius of the sphere is < or >1 ?
>Any radius values less than 1 cause the sphere to look like it is
>sliding and rolling, not truely rolling.

#declare R = 0.35; // radius of sphere

 object {sphere {<0,0,0> R
      rotate <0, 0, -clock*360>
      translate <-pi, R, 0>
      translate <2*pi*clock*R, 0, 0>}
 }



-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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