JRM - Re Bouncing Cycloids

Discussion forum for G-Force users

Moderators: BTT, andy55, b.dwall, juxtiphi

Post Reply
User avatar
BTT
Administrator
Posts: 2262
Joined: Sun Jun 20, 2010 9:34 pm
Location: United Kingdom

JRM - Re Bouncing Cycloids

Post by BTT »

I have been meaning to ask this question for weeks, have you noticed the Cycloids have no white outside edge as other WaveShapes have and, do you know how to correct this?


Regards BTT

jerohm
Senior Member
Posts: 421
Joined: Fri Jan 09, 2009 5:19 pm

"correct" ??? ... "Correct" ??! ...

Post by jerohm »

"CORRECT"?!!! ... :wink:

I may 8) have overstepped some creative liberties and decided that

Code: Select all

conB=0		//  (jrm)
was more appealing (to me anyway) than

Code: Select all

conB=1		//  Original Code
(especially when 5 pointed)

for whatever reason, 'conB' must be assigned a constant, rather than the result of a function, i.e.,

Code: Select all

"pos(sign(1-rnd(2)))"		//  random  0 or 1 (discrete)
If I misunderstood your question (which I seem to be prone to lately), please rephrase and I will take another stab at it...
j

User avatar
BTT
Administrator
Posts: 2262
Joined: Sun Jun 20, 2010 9:34 pm
Location: United Kingdom

Post by BTT »

For some reason conB was set to 1, I have now changed it to conB=0. It's better but, not as other WaveShapes (however, it's not the end of the World)

Thanks very much for your help.


Regards BTT

jerohm
Senior Member
Posts: 421
Joined: Fri Jan 09, 2009 5:19 pm

well ...

Post by jerohm »

The only OTHER thing I can think of, is that most waveshapes just leave 'Pen' default to 1. Most (but not ALL) colormap schemes have 1 equate to White. You can change A11 to:

Code: Select all

A11="1"	// ".6 + rnd( .4 )"                    // pen clip() -> clamp() -> "superfluous here" 
and see if THAT is what you want.

The original code had:

Code: Select all

A11="clip( .6 + rnd( .4 ) )",      // pen 
which SHOULD mean the value of Pen would be set between [.6, 1] inclusive ... ( 'clip()' -> 'clamp()', but SHOULD be superfluous here because the result would ALWAYS be between [0,1] inclusive, ANYWAY)

Maybe you would like:

Code: Select all

A11="1 - pos(sign(1-rnd(2))) * rnd(.4)"        // pen clip() -> clamp() -> "superfluous here" 
which would have Pen equal to 1, half(?) of the time, and [.6,1] inclusive otherwise. Of course the value of Pen would remain static for the duration of each given invocation (i.e., NOT continuously changing).
j

User avatar
BTT
Administrator
Posts: 2262
Joined: Sun Jun 20, 2010 9:34 pm
Location: United Kingdom

Post by BTT »

O.K - You may well have thought I was totally mad before, this I think will confirm your suspicions.

I tried all three variations for A11 (one at a time) ran GF and, when the Bouncing Cycloids WaveShape loaded the Cycloids were not visible, just a black screen.

It gets worse, when I changed the Config back to it's original A11 setting the same thing happened. Luckily, I had a backup of the Config and, as soon as I replaced the existing Config with the backup every thing was back to normal ???.


Regards BTT

jerohm
Senior Member
Posts: 421
Joined: Fri Jan 09, 2009 5:19 pm

Post by jerohm »

:shock: maybe it is the water on that side of the pond...

when NOTHING else makes sense, it is time to question the source
:P

Try creating individual test config files, each with a unique name. Lock down the Colormap and Flowfield as not to add to any confusion. Manually step through each config file and observe the differences. I have actually seen the situation when a waveform 'disappears' after a minimize/maximize window event and reappears after some time.

(I even went back to check if I shifted the use of 'A11' as not to be the driver of 'Pen', and THAT doesn't seem to be the case... in any of the versions!!)

User avatar
BTT
Administrator
Posts: 2262
Joined: Sun Jun 20, 2010 9:34 pm
Location: United Kingdom

Post by BTT »

Thanks for getting back to me.

I have followed your suggestions and, created three separate Configs, ran GF and, here are the results.

This code works perfect:-

Code: Select all

A11="1"   // ".6 + rnd( .4 )"                    // pen clip() -> clamp() -> "superfluous here" 
This code shows the Cycloids in the background color, not good:-

Code: Select all

A11="clip( .6 + rnd( .4 ) )",      // pen 
This code works perfect:-
A11="1 - pos(sign(1-rnd(2))) * rnd(.4)" // pen clip() -> clamp() -> "superfluous here"
I ran GF with ColorMap and, FlowField Slideshows both on/off with no problems.

Many thanks.

Regards BTT

jerohm
Senior Member
Posts: 421
Joined: Fri Jan 09, 2009 5:19 pm

Probably the Best Solution...

Post by jerohm »

WaveShape= 1
Particle= [.4,.8] inclusive

Code: Select all

A11=".8-rnd( .4 )"                    // pen clip() -> clamp() -> "superfluous 
   :
   :
Pen="select(dt, A11, 1)"

User avatar
BTT
Administrator
Posts: 2262
Joined: Sun Jun 20, 2010 9:34 pm
Location: United Kingdom

Post by BTT »

Have only just noticed your last post (it's the water again). Your determination for perfection has once again proved worthwhile. This new code makes the WaveShape appear exactly as it should have done in the original.

Well done JRM.

WaveShape= 1
Particle= [.4,.8] inclusive
Code:

A11=".8-rnd( .4 )" // pen clip() -> clamp() -> "superfluous
:
:
Pen="select(dt, A11, 1)"

Regards BTT

Post Reply