POV-Ray : Newsgroups : povray.animations : My Rolling Egg problem solution Server Time
28 Jul 2024 16:18:25 EDT (-0400)
  My Rolling Egg problem solution (Message 1 to 5 of 5)  
From: Josh English
Subject: My Rolling Egg problem solution
Date: 23 Apr 1999 11:29:35
Message: <37208384.9BE05E97@spiritone.com>
Attached is a QT Movie that should work now. (I had to save them
flattened instead of normal, which I didn't have to do before.)

Once again here is the code:
// clock goes from 0 to 1
#declare anim_clock = clock;

#declare x_scale = 0.5;
#declare y_scale = 1;

#declare rotation = anim_clock * 180;
#declare roff = 90;

#declare centerX = cos(radians(rotation-roff))*x_scale;
#declare centerY = sin(radians(rotation-roff))*y_scale;
#declare p = <centerX,centerY,0>;

#declare circumference = 2*pi*sqrt(( pow(x_scale,2) + pow(y_scale,2) ) /
2 );
#declare half = circumference / 2;
#declare quarter = circumference / 4;


#declare f1 = sqrt( abs ( pow(x_scale,2) - pow(y_scale,2) ) );
#declare f2 = -f1;


#declare foci1 = <0,f1,0>-p;
#declare foci2 = <0,f2,0>-p;

#declare a1 = degrees ( atan2 ( foci1.x,foci1.y));
#declare a2 = degrees ( atan2 ( foci2.x,foci2.y));
#declare a3 = ( a1 + a2 )/2;

// translate across x axis
#declare translation = circumference *rotation/360;


plane { y, 0 pigment { checker scale quarter } }

sphere { <0,0,0> 1
         pigment { radial frequency 8 rotate 90*x}
         scale <x_scale,y_scale,0.125>
         translate -p
         rotate a3*z
         translate translation*x
         }

camera { location  <translation + 2, y_scale, -3.5>
         angle 65
         right     4/3*x
         look_at   <translation, y_scale,  0.0>
         //orthographic
        }


Josh


Post a reply to this message


Attachments:
Download 'sidecircle2.mov' (414 KB)

From: Bob Hughes
Subject: Re: My Rolling Egg problem solution
Date: 23 Apr 1999 17:17:33
Message: <3720D527.4B84EF2B@aol.com>
Hmmm, looks now like it could use fast/slow changes over the duration of
the roll.
Possibly replace 'clock' with mclock of the Clockmod.inc using a
clock_type="W" or maybe "R" and repeat_clock=2. Not sure what would go
best. R, J, W, or B types would seem the obvious choices anyhow.


Josh English wrote:
> 
> Attached is a QT Movie that should work now. (I had to save them
> flattened instead of normal, which I didn't have to do before.)
> 
> Once again here is the code:
> // clock goes from 0 to 1
> #declare anim_clock = clock;
> 
> #declare x_scale = 0.5;
> #declare y_scale = 1;
> 
> #declare rotation = anim_clock * 180;
> #declare roff = 90;
> 
> #declare centerX = cos(radians(rotation-roff))*x_scale;
> #declare centerY = sin(radians(rotation-roff))*y_scale;
> #declare p = <centerX,centerY,0>;
> 
> #declare circumference = 2*pi*sqrt(( pow(x_scale,2) + pow(y_scale,2) ) /
> 2 );
> #declare half = circumference / 2;
> #declare quarter = circumference / 4;
> 
> #declare f1 = sqrt( abs ( pow(x_scale,2) - pow(y_scale,2) ) );
> #declare f2 = -f1;
> 
> #declare foci1 = <0,f1,0>-p;
> #declare foci2 = <0,f2,0>-p;
> 
> #declare a1 = degrees ( atan2 ( foci1.x,foci1.y));
> #declare a2 = degrees ( atan2 ( foci2.x,foci2.y));
> #declare a3 = ( a1 + a2 )/2;
> 
> // translate across x axis
> #declare translation = circumference *rotation/360;
> 
> plane { y, 0 pigment { checker scale quarter } }
> 
> sphere { <0,0,0> 1
>          pigment { radial frequency 8 rotate 90*x}
>          scale <x_scale,y_scale,0.125>
>          translate -p
>          rotate a3*z
>          translate translation*x
>          }
> 
> camera { location  <translation + 2, y_scale, -3.5>
>          angle 65
>          right     4/3*x
>          look_at   <translation, y_scale,  0.0>
>          //orthographic
>         }
> 
> Josh
> 
>   ------------------------------------------------------------------------
>                       Name: sidecircle2.mov
>    sidecircle2.mov    Type: QuickTime for Windows (video/quicktime)
>                   Encoding: base64

-- 
 omniVERSE: beyond the universe
  http://members.aol.com/inversez/homepage.htm
 mailto:inv### [at] aolcom?Subject=PoV-News


Post a reply to this message

From: Luke Church
Subject: Re: My Rolling Egg problem solution
Date: 12 Jun 1999 16:44:22
Message: <3762c6a6@news.povray.org>
What type of QT are you using because my unencoder can't handle it. It
complains about not being able to find a stream unencoder. I am using Active
Move - is there a driver for the stream I can get anywhere?

Regards,
Luke Church


>>   -----------------------------------------------------------------------
-
>>                       Name: sidecircle2.mov
>>    sidecircle2.mov    Type: QuickTime for Windows (video/quicktime)
>>                   Encoding: base64
>
>--
> omniVERSE: beyond the universe
>  http://members.aol.com/inversez/homepage.htm
> mailto:inv### [at] aolcom?Subject=PoV-News


Post a reply to this message

From: Bob
Subject: Re: My Rolling Egg problem solution
Date: 12 Jun 1999 21:28:05
Message: <3763090D.1F5F41A0@aol.com>
Hi Luke C.
Not sure who this question was directed to, a quote of mine is here so I'll tell you
what I have here anyway. QuickTime 3.0 and I also have Active Movie and notices it
doesn't open all the *.mov files it comes across. Believe I must have seen this
particular mov file with QT 3.0 and saw it okay, since I remember seeing it.


Luke Church wrote:
> 
> What type of QT are you using because my unencoder can't handle it. It
> complains about not being able to find a stream unencoder. I am using Active
> Move - is there a driver for the stream I can get anywhere?
> 
> Regards,
> Luke Church
> 
> >>   -----------------------------------------------------------------------
> -
> >>                       Name: sidecircle2.mov
> >>    sidecircle2.mov    Type: QuickTime for Windows (video/quicktime)
> >>                   Encoding: base64
> >
> >--
> > omniVERSE: beyond the universe
> >  http://members.aol.com/inversez/homepage.htm
> > mailto:inv### [at] aolcom?Subject=PoV-News

-- 
 omniVERSE: beyond the universe
  http://members.aol.com/inversez/homepage.htm
 mailto://inversez@aol.com?Subject=PoV-News


Post a reply to this message

From: Josh English
Subject: Re: My Rolling Egg problem solution
Date: 14 Jun 1999 15:46:18
Message: <37655BD4.313E3695@spiritone.com>
The problem was with my original post. I didn't flatten the movie first. I
uplaoded the flattened version either here or on p.b.a. I'm not sure which
because I've slept since then

Joshua
eng### [at] spiritonecom


Luke Church wrote:

> What type of QT are you using because my unencoder can't handle it. It
> complains about not being able to find a stream unencoder. I am using Active
> Move - is there a driver for the stream I can get anywhere?
>
> Regards,
> Luke Church
>
> >>   -----------------------------------------------------------------------
> -
> >>                       Name: sidecircle2.mov
> >>    sidecircle2.mov    Type: QuickTime for Windows (video/quicktime)
> >>                   Encoding: base64
> >
> >--
> > omniVERSE: beyond the universe
> >  http://members.aol.com/inversez/homepage.htm
> > mailto:inv### [at] aolcom?Subject=PoV-News


Post a reply to this message

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