JayPro wrote:
Maybe if you isolate the field and then lower the value of 50 in A0 to, say, 10, you'll see it.
To get the 'cross' to apper you need to understand some of what is written in the config.
Discliamer: I do not have G-Force on this machine at the moment and I have not tried this config out but the following should work.
Code: Select all
Aspc=1
// There's a 1 in 50 chance a0 will evaluate to be .01, otherwise, it's 0
A0=".01 * ( 1 - clip( flor( rnd( 50 ) ) ) )"
D0="clip( sqwv(x * 10) * sqwv(y * 1.5) + sqwv(x * 2) * sqwv(( y - .25 ) * 10) ) * a0 + .99"
//I believe this is the cross outline (see below)-- JwPro
srcX="x * d0"
srcY="y * d0"
Vers=100
// There's a 1 in 50 chance a0 will evaluate to be .01, otherwise, it's 0
A0=".01 * ( 1 - clip( flor( rnd( 50 ) ) ) )"
Lets break down AO to work out when the one in 50 chance of getting 0.1 happens.
rnd(50) - selects an real number (numbers with decimals like 3.187, 23.672) between greater than 0 and less than 50.
flor(rnd(50)) - the flor command 'rounds off' to the whole number
3.245 will be 3 and 4.899 will be 4 and 0.1777 will be 0
So flor(rnd(50)) will produce whole numbers or integars from 0 to 49
clip (flor(rnd(50)) ) - the clip function is a little odd. It does this
clip(myx) given a value I'll call it myx
if myx is less than 0 then the result will be 0
if myx is between 0 and 1 return the value x
if myx is greater than 1 return the value 1
So
clip(-32) = 0
clip(-0.1345) =0
clip(-2.334) = 0
clip(0) = 0
clip(0.123) = 0.123
clip(0.778) = 0.778
clip(1) =1
clip(1.0001) = 1
clip(2.1173) =1
clip(23) = 1
so from this we know that the value sent to the clip function is
"flor(rnd(50)) will produce whole numbers or integars from 0 to 49"
so whole numbers from 0 to 49
clip(0) = 0
clip(1) = 1
clip(2) = 1
clip(3) = 1
etc, etc
So only 1 time in 50 will clip( flor( rnd( 50 ) ) ) = 0 when the rnd value land between 0 and 0.99999999
and if you finish the equation for A0=".01 * ( 1 - clip( flor( rnd( 50 ) ) ) )"
when rnd(50) = 0 to 0.999999
For this example I will use the value rnd(50) = 0.1777 (to force numbers between 0 and 1 use rnd(1))
then
A0=".01 * ( 1 - clip( flor( 0.1777) ) ) )"
A0=".01 * ( 1 - clip(0) )"
A0 = "0.1 * (1- 0)"
A0 = "0.1* 1"
A0 = "0.1"
We are interested in only this value we are interest in the 1 in 50 chance so if you replace
A0=".01 * ( 1 - clip( flor( rnd( 50 ) ) ) )"
with simply
A0 = "0.1"
then you will get the cross all the time.
I repeat I have not tried this but from working out the one line I belive this to be correct.
Also if teh scene is not working make sure that everything is on seprate lines. This is all one line beginning D0
D0="clip( sqwv(x * 10) * sqwv(y * 1.5) + sqwv(x * 2) * sqwv(( y - .25 ) * 10) ) * a0 + .99" //I believe this is the cross outline (see below)-- JwPro
Or make it two seperate line like in my code quote above.
so the overall version could be:
Code: Select all
Aspc=1
// Always 0.01
A0=".01"
D0="clip( sqwv(x * 10) * sqwv(y * 1.5) + sqwv(x * 2) * sqwv(( y - .25 ) * 10) ) * a0 + .99"
//I believe this is the cross outline (see below)-- JwPro
srcX="x * d0"
srcY="y * d0"
Vers=100
So there is no C coding skills in what I did there just some maths and applied functions which we have all the explainations for.