Discussion forum for G-Force users
Moderators: BTT , andy55 , b.dwall , juxtiphi
Rovastar
Posts: 295 Joined: Wed May 05, 2004 9:25 am
Location: Derby/London, England
Post
by Rovastar » Thu Aug 26, 2004 8:32 am
Played with the lovely wallpaper scenes from Roger Bigod from created this.
Next stop how to make swirls of the repeated images.....ummh
Enjoy
Code: Select all
// Rovastar & Roger Bigod - Wallpaper Warp
//
// Flowfield for G-Force
// Orginal Flowfield (Wallpaper*442) by Roger Bigod 1-AUG-04
// New version by Rovastar 26-Aug-04
Aspc=1
A0="0.50" // repeat size
A1="rnd(0.05*a0)" // displacements within cell
A2="rnd(0.05*a0)"
//A3="-0.3+rnd(0.6)" // for curvature (old)
A3 = "sgn(rnd(2)-1)*(0.5+rnd(0.8))"
//A3 = "sgn(rnd(2)-1)*(0.1+rnd(0.2))"
// for the curvature power (zoom exp) of but using a range
//-1.3 to -0.5 and 0.5 to 1.3 not the values in between
//as too near zero the effect is lost
A4="rnd(.05)-0.025" // for rotation -- lower is sharper
A5="rnd(.05)-0.025" // horizontal movement
A6="rnd(.05)-0.025" // vertical movement
A7="1+rnd(.07)" // expansion -- pane effect
// Save computation with these scrap vars... (see below comment block for original exprs)
A8=".5" // .5 == 0.707107 * 0.707107
A9= "a0 * a7 * (1-a4)"
A10="a0 * a7 * a4"
A11="a0 * a5"
A12="a0 * a6"
A13="14 + rnd( 40 )" // =complexity of the warp
D0="1/sqrt(pos(1-((a3*r))*sqr((1*(abs(cos((theta)*A13))*abs(sin((theta)*A13*1)))))))"
D1="a8 * ( d0*(trwv(((d0*x-a1)/a0)+0.5)-0.5)+a1 )", // displace, wrap, reflect
D2="a8 * ( d0*(trwv(((d0*y-a2)/a0)+0.5)-0.5)+a2 )",
D3="abs( d2 + d1 )" // rotate 45 degrees
D4="abs( d2 - d1 )"
D5="d3-d4" // reverse rotation
D6="d3+d4"
srcX="a10*d6 + a9*d5 + a11" // rotate, expand, move
srcY=" a9*d6 - a10*d5 + a12"
Vers=270
Rovastar
Posts: 295 Joined: Wed May 05, 2004 9:25 am
Location: Derby/London, England
Post
by Rovastar » Thu Aug 26, 2004 8:59 am
This is more like it no swirls yet but interesting stuff.
Code: Select all
// Rovastar & Roger Bigod - Wallpaper Twist
//
// Flowfield for G-Force
// Orginal Flowfield (Wallpaper*442) by Roger Bigod 1-AUG-04
// New version by Rovastar 26-Aug-04
Aspc=1
A0="0.50" // repeat size
A1="rnd(0.05*a0)" // displacements within cell
A2="rnd(0.05*a0)"
A3="rnd(3) -1.5" // twist
A4="rnd(.05)-0.025" // for rotation -- lower is sharper
A5="rnd(.05)-0.025" // horizontal movement
A6="rnd(.05)-0.025" // vertical movement
A7="1+rnd(.07)" // expansion -- pane effect
// Save computation with these scrap vars... (see below comment block for original exprs)
A8=".5" // .5 == 0.707107 * 0.707107
A9= "a0 * a7 * (1-a4)"
A10="a0 * a7 * a4"
A11="a0 * a5"
A12="a0 * a6"
A13="14 + rnd( 40 )" // =complexity of the warp
D0 = "a3*(abs(sin(x))-abs(sin(y)))" //effect
D1="1/sqrt(pos(1-D0))"
D2="a8 * ( d1*(trwv(((d1*x-a1)/a0)+0.5)-0.5)+a1 )" // displace, wrap, reflect
D3="a8 * ( d1*(trwv(((d1*y-a2)/a0)+0.5)-0.5)+a2 )"
D4="abs( d3 + d2 )" // rotate 45 degrees
D5="abs( d3 - d2 )"
D6="d4-d5" // reverse rotation
D7="d4+d5"
srcX="a10*d6 + a9*d5 + a11" // rotate, expand, move
srcY=" a9*d6 - a10*d5 + a12"
Vers=270
Rovastar
Posts: 295 Joined: Wed May 05, 2004 9:25 am
Location: Derby/London, England
Post
by Rovastar » Thu Aug 26, 2004 9:30 am
And another
Code: Select all
// Rovastar & Roger Bigod - Wallpaper Fractals
//
// Flowfield for G-Force
// Orginal Flowfield (Wallpaper*442) by Roger Bigod 1-AUG-04
// New version by Rovastar 26-Aug-04
Aspc=1
A0="0.50" // repeat size
A1="rnd(0.05*a0)" // displacements within cell
A2="rnd(0.05*a0)"
//A3="rnd(3) -1.5" // twist
A3 = "rnd(1.2) - 0.6"
A4="rnd(.05)-0.025" // for rotation -- lower is sharper
A5="rnd(.05)-0.025" // horizontal movement
A6="rnd(.05)-0.025" // vertical movement
A7="1+rnd(.07)" // expansion -- pane effect
// Save computation with these scrap vars... (see below comment block for original exprs)
A8=".5" // .5 == 0.707107 * 0.707107
A9= "a0 * a7 * (1-a4)"
A10="a0 * a7 * a4"
A11="a0 * a5"
A12="a0 * a6"
A13="14 + rnd( 40 )" // =complexity of the warp
A14 = "sgn(rnd(2)-1)*(0.5+rnd(1.8))"
A15="0.1"
D0 = "((A14*x*y)/(r^(r+A3)))" //effect
D1="1/sqrt(pos(1-D0))"
D2="a8 * ( d1*(trwv(((d1*x-a1)/a0)+0.5)-0.5)+a1 )" // displace, wrap, reflect
D3="a8 * ( d1*(trwv(((d1*y-a2)/a0)+0.5)-0.5)+a2 )"
D4="abs( d3 + d2 )" // rotate 45 degrees
D5="abs( d3 - d2 )"
D6="d4-d5" // reverse rotation
D7="d4+d5"
srcX="a10*d6 + a9*d5 + a11" // rotate, expand, move
srcY=" a9*d6 - a10*d5 + a12"
Vers=270
JayPro
Posts: 738 Joined: Sat May 01, 2004 10:51 pm
Location: Huntington Station, Long Island, New York
Post
by JayPro » Thu Aug 26, 2004 1:25 pm
"God is syntax."
Rovastar
Posts: 295 Joined: Wed May 05, 2004 9:25 am
Location: Derby/London, England
Post
by Rovastar » Thu Aug 26, 2004 2:34 pm
Glad you like them.
Gonna tweak them a little more I think before I'm done.
ANd as you like the fractals so much here is another.
Code: Select all
// Rovastar & Roger Bigod - Wallpaper Fractals 2
//
// Flowfield for G-Force
// Orginal Flowfield (Wallpaper*442) by Roger Bigod 1-AUG-04
// New version by Rovastar 26-Aug-04
Aspc=1
A0="0.50" // repeat size
A1="rnd(0.05*a0)" // displacements within cell
A2="rnd(0.05*a0)"
//A3="rnd(3) -1.5" // twist
A3 = "rnd(1.2) - 0.6"
A4="rnd(.05)-0.025" // for rotation -- lower is sharper
A5="rnd(.05)-0.025" // horizontal movement
A6="rnd(.05)-0.025" // vertical movement
A7="1+rnd(.07)" // expansion -- pane effect
// Save computation with these scrap vars... (see below comment block for original exprs)
A8=".5" // .5 == 0.707107 * 0.707107
A9= "a0 * a7 * (1-a4)"
A10="a0 * a7 * a4"
A11="a0 * a5"
A12="a0 * a6"
//A13="14 + rnd( 40 )" // =complexity of the warp
A14 = "(5+rnd(10))" //x multipler
A15 = "(5+rnd(10))" //y multipler
A16 = "0.78+ rnd(0.38)" //multipler warp
A17 = "rnd(0.3)" //crazy x offset
D0 = "A16*(sin(sqrt((A14*(x-A17)*(x+A17))+(A15*(y)*(y)))))"
//effect (using a polar to cart conversion of radius
//(r) == sqrt((x*x)+(y*y)) and messing with it. :)
D1="(1/sqrt(1-pos(D0)))"
D2="a8 * ( d1*(trwv(((d1*x-a1)/a0)+0.5)-0.5)+a1 )" // displace, wrap, reflect
D3="a8 * ( d1*(trwv(((d1*y-a2)/a0)+0.5)-0.5)+a2 )"
D4="abs( d3 + d2 )" // rotate 45 degrees
D5="abs( d3 - d2 )"
D6="d4-d5" // reverse rotation
D7="d4+d5"
srcX="a10*d6 + a9*d5 + a11" // rotate, expand, move
srcY=" a9*d6 - a10*d5 + a12"
Vers=270
Enjoy.
JayPro
Posts: 738 Joined: Sat May 01, 2004 10:51 pm
Location: Huntington Station, Long Island, New York
Post
by JayPro » Thu Aug 26, 2004 3:06 pm
To save time, I made a clipping of the whole code and pasted it into a blank text file. The kaleidoscope-tiled effect is there; but something (the fractal warping I figure) seems missing.
"God is syntax."
Rovastar
Posts: 295 Joined: Wed May 05, 2004 9:25 am
Location: Derby/London, England
Post
by Rovastar » Thu Aug 26, 2004 3:13 pm
It could be the word wraping or something but I am noticing strange things happening when I use A values > 15 (A16, A17, etc) STill trying to get to the bottom of it.
I'll try and work out what is happening I'll repost this one in a few minutes stay tuned.
Last edited by
Rovastar on Thu Aug 26, 2004 3:40 pm, edited 1 time in total.
Rovastar
Posts: 295 Joined: Wed May 05, 2004 9:25 am
Location: Derby/London, England
Post
by Rovastar » Thu Aug 26, 2004 3:38 pm
Try this one
Yeah you cannnot have A values more than A15 otherwise things go wrong.
Code: Select all
// Rovastar & Roger Bigod - Wallpaper Fractals 2
//
// Flowfield for G-Force
// Orginal Flowfield (Wallpaper*442) by Roger Bigod 1-AUG-04
// New version by Rovastar 26-Aug-04
Aspc=1
A0="0.50" // repeat size
A1="rnd(0.05*a0)" // displacements within cell
A2="rnd(0.05*a0)"
//A3="rnd(3) -1.5" // twist
A3 = "0" //crazy x offset for warp
A4="rnd(.05)-0.025" // for rotation -- lower is sharper
A5="rnd(.05)-0.025" // horizontal movement
A6="rnd(.05)-0.025" // vertical movement
A7="1+rnd(.07)" // expansion -- pane effect
// Save computation with these scrap vars... (see below comment block for original exprs)
//A8=".5" // .5 == 0.707107 * 0.707107
A8 = "0" //crazy y offset for warp
A9= "a0 * a7 * (1-a4)"
A10="a0 * a7 * a4"
A11="a0 * a5"
A12="a0 * a6"
//A13="14 + rnd( 40 )" // =complexity of the warp
A13 = "(5+rnd(10))" //x multipler
A14 = "(5+rnd(10))" //y multipler
A15 = "0.8+ rnd(0.38)" //multipler warp
D0 = "A15*(sin(sqrt((A13*x*x)+(A14*y*y))))"
//effect (using a polar to cart conversion of
//radius (r) == sqrt((x*x)+(y*y)) and messing with it. :)
D1="(1/sqrt(1-pos(D0)))"
D2="0.5 * ( d1*(trwv(((d1*x-a1)/a0)+0.5)-0.5)+a1 )" // displace, wrap, reflect
D3="0.5 * ( d1*(trwv(((d1*y-a2)/a0)+0.5)-0.5)+a2 )"
D4="abs( d3 + d2 )" // rotate 45 degrees
D5="abs( d3 - d2 )"
D6="d4-d5" // reverse rotation
D7="d4+d5"
srcX="a10*d6 + a9*d5 + a11" // rotate, expand, move
srcY=" a9*d6 - a10*d5 + a12"
Vers=270
JayPro
Posts: 738 Joined: Sat May 01, 2004 10:51 pm
Location: Huntington Station, Long Island, New York
Post
by JayPro » Thu Aug 26, 2004 3:56 pm
"God is syntax."
Rovastar
Posts: 295 Joined: Wed May 05, 2004 9:25 am
Location: Derby/London, England
Post
by Rovastar » Thu Aug 26, 2004 4:22 pm
Cool Now I am trying something different. Playing witH TRiFLow FF.
Here is the first mod.
Code: Select all
// Rovastar - Dimensional Rift
//
// With help from "My Lost Marbles" by "Ted" & "TriFlow" by "Roger Bigod"
//
Aspc=1
A0=".05+rnd(.2)" // cell size
//A0 = "0.4"
A1="(0.2+rnd(.15))*a0" // speed of flow
A2="0.5*(1+sgn(rnd(1)-0.5))" // randomly 0 or 1
//A2="0"
A3="1/a0"
// Temp vars
A4=".5 * a0"
A5=".866025*a0"
A6="1-a2"
D0="(1.154702*y)*a3"
D1="(x-.5773503*y)*a3"
D2="(x+.5773503*y)*a3"
D3="sgn(-0.5+wrap((1+d0)/2))*sgn(-0.5+wrap((1+d1)/2))*sgn(-0.5+wrap((1+d2)/2))"
D4="a4*( Flor(d1) + flor(d2) +1 )" // center of triangle
D5="a5*( flor(d0) +0.5 - 0.166*d3 )"
D6="a1*(((d3)^5))"
srcR="r+d6*(d5-theta)"
srcT="theta-d6*(d4-r)"
Vers=270
Rovastar
Posts: 295 Joined: Wed May 05, 2004 9:25 am
Location: Derby/London, England
Post
by Rovastar » Thu Aug 26, 2004 4:36 pm
Now I *know* I can do something really cool with this but not there yet.
Look at the cool fractal effect in the bottom right.
Now to get that on most of the screen.
Not much more time tonight though.
Check it.
Code: Select all
// Rovastar - Fractal Dreaming (test)
//
// With help from "My Lost Marbles" by "Ted" & "TriFlow" by "Roger Bigod"
//
Aspc=1
A0=".3" // cell size
//A0 = "0.25"
A1="(0.2+rnd(.15))*a0" // speed of flow
A2="0.5*(1+sgn(rnd(1)-0.5))" // randomly 0 or 1
//A2="0"
A3="1/a0"
// Temp vars
A4=".5 * a0"
A5=".866025*a0"
A6="1-a2"
A7="-1.6"
D0="(1.154702*y)*a3"
D1="(x-.5773503*y)*a3"
D2="(x+.5773503*y)*a3"
D3="sgn(-0.5+wrap((1+d0)/2))*sgn(-0.5+wrap((1+d1)/2))*sgn(-0.5+wrap((1+d2)/2))"
D4="a4*( Flor(d1) + flor(d2) +1 )" // center of triangle
D5="a5*( flor(d0) +0.5 - 0.166*d3 )"
D6="a1*((d3-a7)*10)"
//srcX="x+d6*(d5-y)"
//srcY="y-d6*(d4-x)"
srcR="r+d6*(d5-theta) "
srcT="theta-d6*(d4-r)"
Vers=270
JayPro
Posts: 738 Joined: Sat May 01, 2004 10:51 pm
Location: Huntington Station, Long Island, New York
Post
by JayPro » Thu Aug 26, 2004 4:46 pm
Try this in your sources for Dimension Rift, as IMO the way you have it now seems a bit assymentrical:
srcR="r+d6*trwv(d5-theta)
srcT="theta-d6*atan2(d4-r)"
Just a thought.
"God is syntax."
Rovastar
Posts: 295 Joined: Wed May 05, 2004 9:25 am
Location: Derby/London, England
Post
by Rovastar » Thu Aug 26, 2004 4:56 pm