How to make foam in T3D1.1 Beta2 - LOGGED
by Heron Huang · in Torque 3D Professional · 08/06/2010 (2:37 pm) · 7 replies
I have been noticed some changes in T3D's water object, which make the waterplane and waterblock's foam setting more complicated, I tried it a long time, no foams rendering properly near the sea shore. Does anybody here found the right way to let foam appeared just as 1.1 Beta1?
#2
I did some hot(ugly) fix to that.
Note:after the modification,only the alpha channel of foam.png will be used in the shader.
from
form
08/08/2010 (4:49 am)
I do some more experiments and found it's more like some shader compile problem,although still have foam rendering problem(The foam will appeare with some "colour lines" at short range.). I did some hot(ugly) fix to that.
Note:after the modification,only the alpha channel of foam.png will be used in the shader.
from
float4 foamColor = tex2D( foamMap, IN.foamTexCoords.xy ); foamColor*=tex2D( foamMap, IN.foamTexCoords.zw );to
float4 foamColor = tex2D( foamMap, IN.foamTexCoords.xy ).aaaa; foamColor = foamColor * tex2D( foamMap, IN.foamTexCoords.zw ).aaaa ;
form
foamColor.rgb *= FOAM_OPACITY * foamAmt*foamColor.a ;to
foamColor.rgb *= FOAM_OPACITY * foamAmt;
#3
08/08/2010 (6:57 am)
Probably not worth marking this post as resolved if it's not doing what it should 100%, afterall the fix is only partial?
#4
For clarification, this is not on River water objects, right? But on waterblocks.
08/11/2010 (4:18 pm)
Logged as TQA-782 for the QA team to verify.For clarification, this is not on River water objects, right? But on waterblocks.
#5
08/13/2010 (5:30 am)
No,it's on waterblocks, both waterblock and waterplane are affected by this issue.
#6
08/13/2010 (1:22 pm)
Cool! Thanks for the clarification!
#7
The problem also exists on River objects.
Edit:
Forget this. Problem does NOT exist on river objects!!
Edit 2:
If you set the values for foam according to this, you can see that it will be rendered over the waterblock or river object.
The problem is imo after observing and playing with the different values that there is no collision detection with the surrounding terrain or objects which are partly in the water and therefore not generating any foam as you would expect at such parts.
08/18/2010 (6:52 pm)
BumpThe problem also exists on River objects.
Edit:
Forget this. Problem does NOT exist on river objects!!
Edit 2:
If you set the values for foam according to this, you can see that it will be rendered over the waterblock or river object.
foamSpeed[0] = "0";
foamSpeed[1] = "0";
foamTexScale[0] = "1 1";
foamTexScale[1] = "3 3";
foamOpacity[0] = "1";
foamOpacity[1] = "1";
overallFoamOpacity = "1";
foamMaxDepth = "0";
foamAmbientLerp = "0";
foamRippleInfluence = "0";
whiteCapAmount = "50"; //Absurd highThe problem is imo after observing and playing with the different values that there is no collision detection with the surrounding terrain or objects which are partly in the water and therefore not generating any foam as you would expect at such parts.
Torque Owner Jules
Something2Play