A mod on wormhole flowfield

Discussion forum for G-Force users

Moderators: BTT, andy55, b.dwall, juxtiphi

User avatar
markofkane
Posts: 346
Joined: Thu Feb 03, 2005 3:08 pm

Post by markofkane »

I don't get it.

Round?? I try replacing rnd with round, same result.

Version?? 100 seems to work on other flowfields. I have the latest beta.

Error while compliling srcR

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

Post by JayPro »

No. The new syntax allows for the full word round to precede the simple (rnd). My guess is that (rnd) is no longer allowed/applicable *within* parentheses? And Maybe (round) is used as a randomization booster? I'm not familiar with the new code at all; so my help here may be in vain.

A2 example:

A2= "A1 - (-2) * round(rnd(.03) + .01)"

Edit: srcR issue? Try junking (abs).
Last edited by JayPro on Mon Jan 22, 2007 12:32 pm, edited 1 time in total.
"God is syntax."

User avatar
markofkane
Posts: 346
Joined: Thu Feb 03, 2005 3:08 pm

Post by markofkane »

I think that worked. Geez, I wish I knew what it all meant. :shock:

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

Post by JayPro »

So do I.....................................

You now say it worked...

Can you post a screencap and I'll tell ya if it worked?
Last edited by JayPro on Mon Jan 22, 2007 12:34 pm, edited 1 time in total.
"God is syntax."

User avatar
markofkane
Posts: 346
Joined: Thu Feb 03, 2005 3:08 pm

Post by markofkane »

whoops. spoke too soon, testoftests worked, but not the modified version:

Aspc=1

A0="D1/.29" // Max r, the greater the denom, the more of the first effect is visible

// First effect params
A1="rnd(20) + 20"
A2="a1 - (-2) * (round(.03) + .01) " // Flow Speed
A5=" rnd(.1)"
// Second effect params
A3="1.985" // Flow speed
A4="2.22" // Rotation speed

// Interpolation of first effect to second according to r
D0="exp(-r*A2)" // 0..1 Interpolation factor
D1="wrap(1-a4) " // 1..0

// Take an image of the current situation, inside this radius
srcR=" r * trwv(abs(1 - clip(r) * A2) + sin(theta(D1 + A2 * r) * D1) )"



// Rotate the image a bit
srcT=" theta + abs( sin(y * A2) * A5 * D1 ) + sgn( cos(r * A4 ) * D0 ) "

Vers=100

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

Post by JayPro »

::argh::

See my above suggestion with junking abs in the R code line.
"God is syntax."

User avatar
markofkane
Posts: 346
Joined: Thu Feb 03, 2005 3:08 pm

Post by markofkane »

Still problems.

How bad did I muck it up?


Aspc=1

A0="D1/.29" // Max r, the greater the denom, the more of the first effect is visible

// First effect params
A1="rnd(20) + 20"
A2= "A1 - (-2) * round(rnd(.03) + .01)" // Flow Speed
A5=" rnd(.1)"
// Second effect params
A3="1.985" // Flow speed
A4="2.22" // Rotation speed

// Interpolation of first effect to second according to r
D0="exp(-r*A2)" // 0..1 Interpolation factor
D1="wrap(1-a4) " // 1..0

// Take an image of the current situation, inside this radius
srcR=" r * trwv(1 - clip(r) * A2) + sin(theta(D1 + A2 * r) * D1) )"

// Rotate the image a bit
srcT=" theta + abs ( sin(y * A2) * A5 * D1 ) + sgn( cos(r * A4 ) * D0 ) "

Vers=100


I tried removing the second abs, then I get 2 errors. So I put one back.

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

Post by Rovastar »

JayPro wrote:OTOH, I do believe that the MilkDrop site as a separate forum for users to swap and share preset ideas, amy of which make it into release versions of the app. To me this seems like a good idea as well.

My kingdom for a happy medium.... ;)
I would check with Andy. I am sure a couple of years ago (when I first did GF configs) I mentioned this and I thought that he didn't want, in general, too many postings of configs on the boards as people coming to the forums would get confused. I suggest another forum then I'm sure.

Maybe I misunderstood what he meant (I ignored him anyway ;) )

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

Post by JayPro »

markofkane wrote:Still problems.

How bad did I muck it up?


Aspc=1

A0="D1/.29" // Max r, the greater the denom, the more of the first effect is visible

// First effect params
A1="rnd(20) + 20"
A2= "A1 - (-2) * round(rnd(.03) + .01)" // Flow Speed
A5=" rnd(.1)"
// Second effect params
A3="1.985" // Flow speed
A4="2.22" // Rotation speed

// Interpolation of first effect to second according to r
D0="exp(-r*A2)" // 0..1 Interpolation factor
D1="wrap(1-a4) " // 1..0

// Take an image of the current situation, inside this radius
srcR=" r * trwv(1 - clip(r) * A2) + sin(theta(D1 + A2 * r) * D1) )"

// Rotate the image a bit
srcT=" theta + abs ( sin(y * A2) * A5 * D1 ) + sgn( cos(r * A4 ) * D0 ) "

Vers=100


I tried removing the second abs, then I get 2 errors. So I put one back.
Ah....I notice now that we have five closing parenths in your R statement as opposed to four opening ones. Chuck the one at the very end and see what gives.

Then go back *four* posts and re-write your entire srcR as shown there. We'll get to the bottom of this yet.
"God is syntax."

User avatar
markofkane
Posts: 346
Joined: Thu Feb 03, 2005 3:08 pm

Post by markofkane »

Unexpected token is the error after removing the extra )

Aspc=1

A0="D1/.29" // Max r, the greater the denom, the more of the first effect is visible

// First effect params
A1="rnd(20) + 20"
A2="a1 - (-2) * (round(.03) + .01) " // Flow Speed
A5=" rnd(.1)"
// Second effect params
A3="1.985" // Flow speed
A4="2.22" // Rotation speed

// Interpolation of first effect to second according to r
D0="exp(-r*A2)" // 0..1 Interpolation factor
D1="wrap(1-a4) " // 1..0

// Take an image of the current situation, inside this radius
srcR=" r * trwv(abs(1 - clip(r) * A2) + sin(theta(D1 + A2 * r) * D1) "



// Rotate the image a bit
srcT=" theta + abs( sin(y * A2) * A5 * D1 ) + sgn( cos(r * A4 ) * D0 ) "

Vers=100

I tried removing abs, and got same error as in the beginning.

User avatar
markofkane
Posts: 346
Joined: Thu Feb 03, 2005 3:08 pm

Post by markofkane »

It works (maybe not as intended) this way:

Aspc=1

A0="D1/.29" // Max r, the greater the denom, the more of the first effect is visible

// First effect params
A1="rnd(20) + 20"
A2="a1 - (-2) * (rnd(.03) + .01) " // Flow Speed
A5=" rnd(.1)"
// Second effect params
A3="1.985" // Flow speed
A4="2.22" // Rotation speed

// Interpolation of first effect to second according to r
D0="exp(-r*A2)" // 0..1 Interpolation factor
D1="wrap(1-a4) " // 1..0

// Take an image of the current situation, inside this radius
srcR=" r * trwv(1 - clip(r) * A2 + sin(D1 + A2 * r) * D1) "

// Rotate the image a bit
srcT=" abs( sin(y * A2) * A5 * D1 ) + sgn( cos(r * A4 ) * D0 )"

Vers=100

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

Post by JayPro »

'MKay...big own-up coming...

My original countertweak for Test of Tests had a problem on my part with a misuse of theta. I'm gonna start fresh and work from there.
"God is syntax."

User avatar
markofkane
Posts: 346
Joined: Thu Feb 03, 2005 3:08 pm

Post by markofkane »

cool. 8)

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

Post by JayPro »

Eh?

===========================

// testoftests
Aspc=1

A0="1/.29" // Max r, the greater the denom, the more of the first effect is visible

// First effect params
A1="rnd(20) + 20"
A2="-2 * (rnd(.03) + .01)" // Flow Speed

// Second effect params
A3="1.985" // Flow speed
A4="2.22" // Rotation speed

A5=".1 + rnd(.5)"

// Interpolation of first effect to second according to r
D0="exp(flor(-r)*A2)" // 0..1 Interpolation factor
D1="1-D3" // 1..0

// Take an image of the current situation, inside this radius
srcR="clip(r+y) * abs( sqr(1 - sin(abs(sqrt(r ))) * A2) * D1 + A2 * D1 )"

// Rotate the image a bit
srcT=" wrap( theta + cos( sin(theta * A2)) * a5 * D1 ) + ( ( A4 ) * D0 )"

Vers=100
"God is syntax."

User avatar
markofkane
Posts: 346
Joined: Thu Feb 03, 2005 3:08 pm

Post by markofkane »

Looks good!!! Thanks!

Image

Post Reply