A mod on wormhole flowfield

Discussion forum for G-Force users

Moderators: BTT, andy55, b.dwall, juxtiphi

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

Post by JayPro »

Waitaminute......

I gotta do one more tweak coz I called up a D3 when there's no D3 in the code to begin with.

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

Edit: With a couple more tweaks...

Heh.......Heh......Heh....... :twisted:



// 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="A0 * (.1 + rnd(.5))" // Last tweak I swear.

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

// Take an image of the current situation, inside this radius
srcR="clip(r+flor(trwv(x + y - x ) + r )) * 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 »

Now it turns clockwise. 8)

And is more round.

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

Post by JayPro »

Yeah but look at it more closely. Mater of fact, stare at it for 30 seconds without blinking and you'll notice an hypnotic eye in the center whose rays will (usually) turn in the opposite direction from the ring rays around it. Sometimes it's difficult to tell; and that's an added dimension to the flowfield.

I didn't like the last tweak anyway coz even though I kinda appreciated the vertical summit mid-screen (see your screencap), it just didn't look as if it fitted in with the rest of the design.

The cartesian (x,y) spice-ups in srcR made the eye BTW.
Last edited by JayPro on Tue Jan 23, 2007 3:05 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 »

Yes, I noticed.I wasn't sure if that was the flowfield only, or a sprite and waveshape adding to the effect, even after changing them.

Too bad there was a program with a GUI to create flowfields and waveshapes.

They have script creators for webpages, I believe.

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:Yes, I noticed.I wasn't sure if that was the flowfield only, or a sprite and waveshape adding to the effect, even after changing them.

Too bad there was a program with a GUI to create flowfields and waveshapes.

They have script creators for webpages, I believe.
1. Flowfields can indeed have radically different impacts on the same waveshape image. It just depends on the flowfield, i.e. it's reflective properties or its ability to produce mathematically progressed reflections of waves (e.g. certain fractal-based fields).

2. Maybe at some point Andy could program up a "G-Force Code Generator" of sorts. It would be interesting to see what a randomly produced config would look like. The trick, I would think, is to ensure that the syntax make sense with each random instance. Also it would be useful to develop a GUI with options such as what kind of config to draw up (Field or Wave), complexity level, variable controls, polar/cartesian selector for Fields etc...
"God is syntax."

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

Post by Rovastar »

Not even looked at these in GF yet but
JayPro wrote: srcR="clip(r+flor(trwv(x + y - x ) + r )) * abs( sqr(1 - sin(abs(sqrt(r ))) * A2) * D1 + A2 * D1 )"
trwv(x + y -x)
would surely be the same as just
trwv(y)

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

Post by JayPro »

Rovastar wrote:Not even looked at these in GF yet but
JayPro wrote: srcR="clip(r+flor(trwv(x + y - x ) + r )) * abs( sqr(1 - sin(abs(sqrt(r ))) * A2) * D1 + A2 * D1 )"
trwv(x + y -x)
would surely be the same as just
trwv(y)
I'm afraid not. I tried a simple trwv(y) and wound up with IIRC a somewhat irregularly-shaped portal. Somehow, this ended up looking like an eye in the middle. It's outline is not altogether distinguishable, tho.
"God is syntax."

Post Reply