Paradine Posted August 18, 2014 Share Posted August 18, 2014 Linesmesh does not seem to have semitransparant option.It is shown or it is invisible. (LinesMesh.visibility = 0.5 has no effect).I have unsucessfully with animated visibility nor with material.alpha.Animation itself works.How do I make it smooth fade from visible to invisible ? Quote Link to comment Share on other sites More sharing options...
Dad72 Posted August 18, 2014 Share Posted August 18, 2014 visibility is made to be visible or not visible (0 or 1) 0.5 has obviously no effect, this isn't like alpha = 0.5 try : http://www.babylonjs.com/playground/#1XBPLZ Quote Link to comment Share on other sites More sharing options...
Paradine Posted August 19, 2014 Author Share Posted August 19, 2014 Good to know about visibility. I have tryed your soultion actually before already and it wont work with this mesh:var line = BABYLON.Mesh.CreateLines("line", [new BABYLON.Vector3(0.75, -0.1, -0.6), new BABYLON.Vector3(1, 0.30, -1.5), new BABYLON.Vector3(0.75, -0.23, -0.6)], scene); Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 19, 2014 Share Posted August 19, 2014 LInesMesh does not support visibility for now. You can change the color but not the visibility. Quote Link to comment Share on other sites More sharing options...
Paradine Posted August 26, 2014 Author Share Posted August 26, 2014 Good to know. Quote Link to comment Share on other sites More sharing options...
Nikos123 Posted December 29, 2015 Share Posted December 29, 2015 How would you fade out a material? I tried:scene.beginAnimation(material.alpha, 0, Common.ANIMATIONS_FPS * 21,true,1, ()=> mesh.dispose()); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.