A mod on wormhole flowfield
Moderators: BTT, andy55, b.dwall, juxtiphi
- markofkane
- Posts: 346
- Joined: Thu Feb 03, 2005 3:08 pm
- JayPro
- Posts: 738
- Joined: Sat May 01, 2004 10:51 pm
- Location: Huntington Station, Long Island, New York
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).
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."
- markofkane
- Posts: 346
- Joined: Thu Feb 03, 2005 3:08 pm
- JayPro
- Posts: 738
- Joined: Sat May 01, 2004 10:51 pm
- Location: Huntington Station, Long Island, New York
So do I.....................................
You now say it worked...
Can you post a screencap and I'll tell ya if it worked?
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."
- markofkane
- Posts: 346
- Joined: Thu Feb 03, 2005 3:08 pm
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
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
- markofkane
- Posts: 346
- Joined: Thu Feb 03, 2005 3:08 pm
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.
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.
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.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....
Maybe I misunderstood what he meant (I ignored him anyway

- JayPro
- Posts: 738
- Joined: Sat May 01, 2004 10:51 pm
- Location: Huntington Station, Long Island, New York
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.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.
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."
- markofkane
- Posts: 346
- Joined: Thu Feb 03, 2005 3:08 pm
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.
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.
- markofkane
- Posts: 346
- Joined: Thu Feb 03, 2005 3:08 pm
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
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
- JayPro
- Posts: 738
- Joined: Sat May 01, 2004 10:51 pm
- Location: Huntington Station, Long Island, New York
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
===========================
// 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."