My first flowfields

Discussion forum for G-Force users

Moderators: BTT, andy55, b.dwall, juxtiphi

Post Reply
pooky
Posts: 60
Joined: Wed Nov 22, 2006 2:44 pm

My first flowfields

Post by pooky »

I'm learning how to create my own original flowfields for G-Force. Here are my first attempts, let me know what you think, and any advice on how to improve.

Thanks

// FlowField Name: DD-Fracture

Aspc=1

A0="sqr(rnd(6))"
A1="sqr(rnd(6))"
A2="rnd(1)"
A3="rnd(1)"

D0="D1*A0"
D1="D0*A1"

srcX="(x+(sin(y+D0*A0)*.005/y))"
srcY="(y+(cos(x+D1*A1)*.005/x))"

Vers=100
--------

// FlowField Name: DD-Squeeze

Aspc=1

A0="sqr(rnd(PI))"
A1="sqr(rnd(PI))"
A3="sin(A0)"
A4="cos(A1)"

D0="pos(A0*x*A1*y)"
D1="D0*(x-A0*y)"
D2="D0*(x-A1*y)"
D3="D0*(x+D1-D2*y)"

srcX="x/cos(D2)-(D1*D0)"
srcY="y-D1*sqrt(D0)"

Vers=100
--------

// FlowField Name: DD-Nightmare

Aspc=1

A0="rnd(3)"
A1="rnd(3)"

D0="A0*A1*(x*y)"

srcX="x/((cos(D0)))"
srcY="y/(.5*x*sin(D0)-1)"

Vers=100
--------

// FlowField Name: DD-Smedley

Aspc=1

A0="(.006+rnd(.006))*sgn(.5-rnd(1))"
A1="(.006+rnd(.006))*sgn(.5-rnd(1))"

D0="asin(A0)"
D1="asin(A1)"

srcX="(y+(sin(x*18)*.02))+D0"
srcY="(x+(sin(y*14)*.03))+D1"

Vers=100
--------

// FlowField Name: DD-Curlique

Aspc=1

srcX="x + (cos(abs(y-.5) * 8) * .02)"
srcY="y + (sin(abs(x-.5) * 8) * .05)"

Vers=100
--------

Edit: For some reason, a "smiley" is shown in this code in place of "8". Just replace the smiley with 8.

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

Post by JayPro »

I'll be sure to look at them later; but one thing you can do without even having anyone looking at it is ratchet up the A variables to increase random appearance.

I freely admit to taking existing configs and adding that extra shot of flavor.

Anyway, one trick is, tho,to be careful with using too wide a set of numbers, otherwise the effect you seek may well be lost.
"God is syntax."

pooky
Posts: 60
Joined: Wed Nov 22, 2006 2:44 pm

Post by pooky »

JayPro wrote:I'll be sure to look at them later; but one thing you can do without even having anyone looking at it is ratchet up the A variables to increase random appearance.

I freely admit to taking existing configs and adding that extra shot of flavor.

Anyway, one trick is, tho,to be careful with using too wide a set of numbers, otherwise the effect you seek may well be lost.
Thanks for your excellent tips. I do have a lot to learn, but learning can be lots of fun. Here is a new one i just finished. I really like this one. :-)

// FlowField Name: DD-Patterns

Aspc=1

A0="flor(A1+rnd(PI))"
A1="flor(A0+rnd(PI))"

D0="sqr(A0)"
D1="sqr(A1)"

srcX="abs(x)-(abs(sin(D0)))+.01"
srcY="abs(y)-(abs(cos(D1)))+.01"

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 »

BTW- You can also us r/theta (polar) coordinates for your flows, too.
Nice work for starters.
"God is syntax."

pooky
Posts: 60
Joined: Wed Nov 22, 2006 2:44 pm

Post by pooky »

JayPro wrote:BTW- You can also us r/theta (polar) coordinates for your flows, too.
Nice work for starters.
Thanks. Can you, or anyone else, recommend a good beginner book for learning the math required for creating configs in G-Force? I've searched with Google, but haven't found anything helpful.

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

Post by JayPro »

Unfortunately, there isn't a book per se you can learn this code from. I say that because even tho the code is based somewhat (especially the current rescension [updating] of it) on C++, I've found out for myself that boning up on C++doesn't necessarily assure one mastery of the GF code. There've been two attempts I know of to encapsulate the basics, but they haven't seen much light of day.

I fear that the current syntax, which came out with the PR of GF 3.1 (IIRC) is designed for more computer-literate, math-oriented folks.

And I can only explain the code in terms of what do the functions and the coördinates make the final picture you see *actually look like*, so you may hafta powwow with the math-nerds around here. ;) ;) ;)


Edit: *However*....

if you take a look at many of the config text files, they'll contain some slashed out, edited comments that go a long way in interpreting the code language into plain-English descriptions of what you'll se in the congig.
"God is syntax."

pooky
Posts: 60
Joined: Wed Nov 22, 2006 2:44 pm

Post by pooky »

Thanks JayPro

I was afraid you'd say something like this. Looks like i'll have to learn by trial and error, and by studying the current configs. I'm not really a math whiz, so it's not easy. :-)

Post Reply