New Effects Spoilers: If Rovastar can do it...

Discussion forum for G-Force users

Moderators: BTT, andy55, b.dwall, juxtiphi

Post Reply
User avatar
JayPro
Posts: 738
Joined: Sat May 01, 2004 10:51 pm
Location: Huntington Station, Long Island, New York

New Effects Spoilers: If Rovastar can do it...

Post by JayPro »

...I can do it.

1. Fortune Cookie (props to Erlend Robaye)
(PS The A variable code is directly from him, as after some experimentation here, I chose not to toy around with what looks to me to be just the right series of rnd parameters)

Aspc=1,
A0="rnd(.4) + .35",
A1="A0 + .1 + rnd(.2)",
A2="(rnd(.03)+.03)*sgn(rnd(.5)-.5)",
A3=(1-rnd(.03))",
A4="flor(2+rnd(20))",
A5="1/(A1-A0)",
A6="flor(58+rnd(40))",
A7="A0+1",
A8="A1-1",
A9="A5*2",

srcR="clip(r)+log(1+flip(sin(theta*a6))*a2)",
scrT="theta-trwv(a7-flip(r))*trwv(r-a[eight])*cos(a2)*sin(a9*sgn(r-a0)-log(1))",

Vers=100

PS: for some odd reason this emoticon stuff insists on seeing the number eight as a sunglassed-smiley; hence the strange bracketing in the code.


2. Jacuzzi (props to Erlend Robaye again)

PS: THis time I tweaked the numerology in the A params)

Aspc=0,

A0="rnd(.314)+.471",
A1="A0 + .1256 + rnd(.2512)",
A2="(rnd(.0314)+.0314*sgn(rnd(.628)-.628)",
A3="(1.256-sgn(rnd(.0314)))',
A4="sgn(2.512+rnd(25.12))",
A5="1.256/(A1-A0)",
A6="flor(50.24+rnd(50.24))",
A7="A0+1.256",
A8="A1-1.256",
A9="flor(a5)*pi",

srcR="-r*(1+flip(cos(theta*a6))*.01)",
srcT="flip(theta)+flip(a7-r)*rnd(r-a[eight])*a2*cos(a9*trwv(r-a0)-1)",

Vers=100

More to come.

EDIT: Oh, lookie lookie...

3. Exodus (Ths one's for you John)

A0=".00004*(250+(rnd(500)))",
A1="A0", //I'm almost 100% sure this is feasible, so as to avoid redundancy.
A2="2+flor(rnd(4))",
A3="A2", //see comment for a1.

srcX="x-a0*cos(1/sin(y^(a2)))",
srcY="y-a1*sqr(1/sin(x^(a3)))",

vers=100

4. (ColorMap) The Ladder of Divine Ascent.
Props to Erich Kodotai (spontaneously self-edited by me just now to make the numbers in 3 statements match at the RHS. I doubt it'll make much visual difference, though)

B="flip(i*1+.2)*sin(-i*3+t*.004)+.5*sin(t*.06789)",
G="cos(.7-.8*sin(-i*9*cos(.012*t)+t*.034)+.56*cos(t*.0789))",
R="sin(.6+.7*cos(-i*8.9+t*.0123456789))",

vers=100


'Mkay, *That's* all...for now. Mwaahahahahahaaaaah....



:twisted:
Last edited by JayPro on Fri Jul 02, 2004 8:03 pm, edited 3 times in total.
"God is syntax."

Rovastar
Posts: 295
Joined: Wed May 05, 2004 9:25 am
Location: Derby/London, England

Post by Rovastar »

These don't work mate. Brakets are all wrong on some of them.

e.g.

A2="(rnd(.0314)+.0314*sgn(rnd(.628)-.628",

Should have close brakets but I don't know exactly where.

Click disable 'smiles in this post' when posting them again.

8) is the cool smilie

I don't want to guess where the syntax of them as I could wrong.

ANd help me in my other post I want to make theta with code. :(

User avatar
JayPro
Posts: 738
Joined: Sat May 01, 2004 10:51 pm
Location: Huntington Station, Long Island, New York

Thanks or the pick-up...

Post by JayPro »

I love how much you're on top of this ;)

I'm gonna edit my original post for mistakes to save typing.

I'll indicate at the bottom when it's safe to come back.

Thanks again.

BTW: As per your previous distress call, I *do* wish I could be of more help; but math/trig/the like is a decided weak point for me. I might sound stupid for asking this; but could you perhaps rephrase your question/dilemma in an "Advanced Mathematical Functions for Dummies" sort of way?

Meanwhile, I'm hoping Andy will get to it before me. ;)

Anyway...back to editing.

JwP
Last edited by JayPro on Fri Jul 02, 2004 6:00 pm, edited 1 time in total.
"God is syntax."

Rovastar
Posts: 295
Joined: Wed May 05, 2004 9:25 am
Location: Derby/London, England

Post by Rovastar »

I'll check in the morning.

Later

User avatar
JayPro
Posts: 738
Joined: Sat May 01, 2004 10:51 pm
Location: Huntington Station, Long Island, New York

Okay...

Post by JayPro »

try these now at your leisure and see if they work this time.

JwP

EDIT: Please refer to the first post for the edited effects. Again, they shoould work now.
"God is syntax."

User avatar
JayPro
Posts: 738
Joined: Sat May 01, 2004 10:51 pm
Location: Huntington Station, Long Island, New York

More Spoilers: How's about...

Post by JayPro »

Blotto

A0="7+rnd(17)",
Aspc=1,
srcX=r+sqr(.17)*sqr(flip(sin(y*a0)))*a0",
srcY="y*.017*flip(sqr(sin(cos(x*a0))))*a0",
Vers=100



Cerebrus

A0="5+flor(rnd(10))",
Aspc=.5,
srcR="r+.01*flip(sin(cos(theta*a0)*a0))",
srcT="theta+.01*sgn(cos(tan(sqrt(r*a0)))*a0)",
Vers=100


Let The Chips Fall

A0="8+rnd(16)",
A1="rnd(.01)",
Aspc=1,
srcX="trwv(x+a1*flip(sin(x*a0)+flip(sin(y*a0))))",
srcY="trwv(y+a1*flip(sin(y*a0)-flip(sin(x*a0))))",
Vers=100

Makin' Flippi-Floppi (Here I'm gonna use the polar iteration. The Cartesian (XY) version is not necessary to show here, as it merely repeats the code. IOW, all you have to do is replace r with x and theta with y.

A0="16+flor(rnd(16))",
A1="1/(4+sqr(rnd(4)))",
Aspc=1,
srcR="r-.0125*flip(theta*a0)+.025*flip(theta*a0*a1)",
srcT="theta+.0125*flip(r*a0)-.025*flip(r*a0*a1)",
Vers=100

Have fun.

BTW: A zillion gajillion bucks to the one who discovers a common theme with all of these. ;)
"God is syntax."

Toby
Posts: 101
Joined: Fri May 14, 2004 3:43 pm
Location: Houston TX

Post by Toby »

Yo JayPro!

Since you and Rovastar have been discussing FlowFields so much lately, can we of the unwashed masses assume that these, too, are FlowFields? Except for the specified ColorMap, of course.

User avatar
JayPro
Posts: 738
Joined: Sat May 01, 2004 10:51 pm
Location: Huntington Station, Long Island, New York

Yes you may.

Post by JayPro »

I seriously do apologize for not ID'ing them as flowfields.

My oversight here comes from the fact that I've become so used to writing up FlowFields and ColorMaps, and I haven't done any new waveforms in ages.

Thanks for the question/followthru.

JwP
"God is syntax."

Rovastar
Posts: 295
Joined: Wed May 05, 2004 9:25 am
Location: Derby/London, England

Re: New Effects Spoilers: If Rovastar can do it...

Post by Rovastar »

JayPro wrote:...I can do it.
JayPRo they still don't work :)

In FOrtune cookie you have
a)

.................*trwv(r-a[eight])*

Should be .................*trwv(r-a8)*

and

b)

A3=(1-rnd(.03))",

should be

A3="(1-rnd(.03))",

Problems with the others in the first lot too.

I'll see if I can fix them.


ANd re:
A0=".00004*(250+(rnd(500)))",
A1="A0", //I'm almost 100% sure this is feasible, so as to avoid redundancy.
A2="2+flor(rnd(4))",
A3="A2", //see comment for a1.

srcX="x-a0*cos(1/sin(y^(a2)))",
srcY="y-a1*sqr(1/sin(x^(a3)))",

(cannot get this one to work BTW - I would have thought that any 1/sin(x) etc would result ina divide by zero error for some instants of x)

Maybe I don't understand this but I would have thought it works like this *shrug*

take a more simple example

A0 = rnd(3)
A1 = rnd(3)
A2 = rnd(3)

Src x = x + 0.1*((A0-A1)*A2);

Now if when collecting

A0 = 2.5
A1 = 1.5
A2 = 0.5

SRcX = x + 0.1*((2.5-1.5)*0.5);
SrcX = x + 0.1*((1)*0.5);
SrcX = x + 0.1*(0.5);
SrcX = X + 0.5;

Now if

A0 = rnd(3);
A1 = A0;
A2 = A0;

Src x = x + 0.1*((A0-A1)*A2);

then doesn't this happen *shrug*

A0 = 2.5
A1 = 2.5 (which is what A0 equated to on initalization)
A2 = 2.5 (again equals A0)

So

Srcx = x - 0.1*((2.5-2.5)*2.5)
Srcx = x -0.1*((0)*2.5)
Srcx = x -0.1*(0)
SrcX = x - 0
Src = x;
which is a different outcome to the other example of

SrcX = x + 0.1*(0.5);

With in your example seemingly the same equation as it is not working out each example. But it could well be I don't understand how GF equates all these but that is the way I thought it would work *shrug*

-------------

I'll have a look at all the rest of these later on today. :)

Rovastar
Posts: 295
Joined: Wed May 05, 2004 9:25 am
Location: Derby/London, England

Post by Rovastar »

"BTW: As per your previous distress call, I *do* wish I could be of more help; but math/trig/the like is a decided weak point for me. I might sound stupid for asking this; but could you perhaps rephrase your question/dilemma in an "Advanced Mathematical Functions for Dummies" sort of way? "

:(

Oh well it is simple really the mathametical equation for working out theta
theta = atan(y/x) are not producing Andy's theta value. There are a few things wrong placement and stuff but mainly when the change from x being postive to negative (Around 0) it jumps but this is what theta should do I think. Andy's theta seems to be wrong. I don't really know all I want to do is reproduce ANdy's value of theta in code. The general mathematics are not working as I would have expected. Looks like it is one for ANdy then.

Post Reply