POV-Ray : Newsgroups : povray.general : Help with Colefax's AutoClck.mcr Server Time
12 Aug 2024 17:16:03 EDT (-0400)
  Help with Colefax's AutoClck.mcr (Message 1 to 3 of 3)  
From: Andrew Cocker
Subject: Help with Colefax's AutoClck.mcr
Date: 11 Feb 1999 12:42:48
Message: <36c31698.0@news.povray.org>
Hi,

Using the following code, I'm able to join the bouncing sphere to the origin with a
cylinder.

plane { y, -1 hollow pigment {rgb 1}}

#include "AutoClck.mcr"

sphere {<0,0,0>,.25 texture {Reddy}
translate From (0,<-1,0,0>) To_Using (1,<-1,-0.75,0>, "Bounce")
#declare NewClock1=mclock}

cylinder {NewClock1, <0,0,0>,0.05 texture {Reddy}}

However, when I introduce a second bouncing sphere, and try to join them both with the
cylinder, I run into problems.

#include "AutoClck.mcr"

sphere {<0,0,0>,.25 texture {Reddy}
translate From (0,<-1,0,0>) To_Using (1,<-1,-0.75,0>, "Bounce")
#declare NewClock1=mclock}

sphere {<0,0,0>,.25 texture {Reddy}
translate From (0,<1,0,0>) To_Using (.5,<1,-0.75,0>, "Bounce")
#declare NewClock2=mclock}

cylinder {NewClock1, NewClock2, .025 texture {Reddy}}

Obviously, NewClock1 and NewClock2 are ending up the same. How do I get the position
of
the second ( or third / fourth etc ) sphere into NewClock2 ?

Many thanks,

Andy


Post a reply to this message

From: Ron Parker
Subject: Re: Help with Colefax's AutoClck.mcr
Date: 11 Feb 1999 14:46:56
Message: <36c333b0.0@news.povray.org>
On Thu, 11 Feb 1999 17:41:41 -0000, Andrew Cocker wrote:
>#include "AutoClck.mcr"
>
>sphere {<0,0,0>,.25 texture {Reddy}
>translate From (0,<-1,0,0>) To_Using (1,<-1,-0.75,0>, "Bounce")
>#declare NewClock1=mclock}
>
>sphere {<0,0,0>,.25 texture {Reddy}
>translate From (0,<1,0,0>) To_Using (.5,<1,-0.75,0>, "Bounce")
>#declare NewClock2=mclock}
>
>cylinder {NewClock1, NewClock2, .025 texture {Reddy}}

I'm not real clear on what mclock does or in general how the 
clock mod stuff all works, but can't you just do this:

#include "AutoClck.mcr"

#declare Start=From (0,<-1,0,0>) To_Using (1,<-1,-0.75,0>, "Bounce");
sphere {Start,.25 texture {Reddy}}

#declare End=From (0,<1,0,0>) To_Using (.5,<1,-0.75,0>, "Bounce");
sphere {End,.25 texture {Reddy}}

cylinder {Start, End, .025 texture {Reddy}}


Post a reply to this message

From: Andrew Cocker
Subject: Re: Help with Colefax's AutoClck.mcr
Date: 11 Feb 1999 15:52:33
Message: <36c34311.0@news.povray.org>
Ron Parker wrote in message <36c333b0.0@news.povray.org>...
>I'm not real clear on what mclock does or in general how the
>clock mod stuff all works, but can't you just do this:
>
>#include "AutoClck.mcr"
>
>#declare Start=From (0,<-1,0,0>) To_Using (1,<-1,-0.75,0>, "Bounce");
>sphere {Start,.25 texture {Reddy}}
>
>#declare End=From (0,<1,0,0>) To_Using (.5,<1,-0.75,0>, "Bounce");
>sphere {End,.25 texture {Reddy}}
>
>cylinder {Start, End, .025 texture {Reddy}}

No, but you set me on the right lines.
Actually, you need to do this

#declare NewClock1=<-1,0,0>;
Declare_From (NewClock1,0) Declare_To_Using (NewClock1,1,<-1,-0.9,0>, "Bounce")

Regards,

Andy


Post a reply to this message

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