no fog remove

Software: Away3D 4.x

Avatar
loth, Sr. Member
Posted: 30 July 2012 04:57 AM   Total Posts: 236

i have probleme for changing fog in away3d gold

obj.removeMethod(_fog);
_fog.dispose();
_fog = new FogMethod(30008000color);
obj.addMethod(_fog); 

seem not working

   

Richard Olsson, Administrator
Posted: 30 July 2012 07:17 AM   Total Posts: 1192   [ # 1 ]

In what way is it not working? Are you getting errors? Is the visible output not what you expected, and if so, in what way?

   

Avatar
loth, Sr. Member
Posted: 30 July 2012 07:34 AM   Total Posts: 236   [ # 2 ]

sorry my mistake
i use different mesh with the same fog shader that why


http://perso.numericable.fr/chamaslot/Intermediate_Car.html
press N
smile

   

Richard Olsson, Administrator
Posted: 30 July 2012 07:37 AM   Total Posts: 1192   [ # 3 ]

Demo looks cool. Can’t see any immediate issues with fog though. Are you saying you were able to solve the problem?

   

Avatar
loth, Sr. Member
Posted: 30 July 2012 07:41 AM   Total Posts: 236   [ # 4 ]

solution for me is using different fog methode for each object
code:https://github.com/lo-th/loth_labs

   

Richard Olsson, Administrator
Posted: 30 July 2012 07:43 AM   Total Posts: 1192   [ # 5 ]

Provided that you are using the Gold release of Away3D 4.0, you should be able to re-use the same fog method for several materials. If for some reason that doesn’t work, please try to reduce to the minimal test case that reproduces the issue and file a bug report explaining it as thoroughly as possible at http://github.com/away3d/away3d-core-fp11/issues

   

Avatar
loth, Sr. Member
Posted: 30 July 2012 07:43 AM   Total Posts: 236   [ # 6 ]

i reach the shader limite
have to search how many pass can be apply to one material

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X