Archive: Rotating Stars problem


1st August 2002 19:50 UTC

Rotating Stars problem
All right, here's my problem:

I create an AVS that uses Blitter Feedback, Roto Blitter, a Simple, and four pairs of rotating stars in four different colors.

THey show up as I create the AVS, but when I save it and reload it, only one set of stars appears!

Does anyone know why this is happening?


1st August 2002 20:36 UTC

Rotating stars start at the same place every time. Since it's set on "replace" and nothing else, Only the last Rotating Stars appear (Try Set Render Blend - Additive, and see if it turns to white).

A good way around this is to make an SSC that mimics rotating stars... Not that it's easy...

Til then, you're stuck with being able to use 1 rotating stars.


1st August 2002 20:48 UTC

Here's a superscope replacement:

Init:

offset=0;direction=-1;starsize=.2;pathsize=.5;©©©©©©©©;n=6;tpi=acos(-1)*2;t=offset*tpi


Beat: (empty)

Frame:
t=t-0.05*direction;af=w/h


Point:
r=i*tpi*2;x=cos(r-t)*starsize+cos(t)*pathsize;y=sin(r-t)*af*starsize+sin(t)*pathsize;


This only does one star, but you can copy the superscope. Offset specifies the initial position, in fractions of 2*pi. Direction specifies the direction of rotating (1 or -1). Starsize specifies the size of the star, pathsize the size of the circle they rotate on.

To have 3 stars in a circle, use offsets 0, 0.33333 and 0.66666. For 5, use offsets 0 0.2 0.4 0.6 0.8. Make sure you save and reload the preset to see their real positions.

1st August 2002 20:58 UTC

Thanks...I appreciate your help!


22nd August 2002 15:35 UTC

...now if I could figure out how to get the stars to react to the music...


22nd August 2002 20:07 UTC

add "starsize=.2+abs(getosc(0,.1,0))*.2;" to the per frame


22nd August 2002 21:48 UTC

:igor:

Of course!

:igor: