Dad72 Posted June 27, 2014 Share Posted June 27, 2014 Hi, When I use useVarianceShadowMap to false, the shadows totally disappears. setTransparencyShadow does not change anything. the shadows are projected by the plan and not by the textures of foliage with transparency, which gives not pretty results. Result in image: I did an example also with 2 trees scene, one that uses usevarianceShadowMap and one who uses it not but who do project no shadows. I have noted that edge of shadows on any defect and are not smooth. It takes close textures value of 5000 (big texture) to have smoother shadows and less sawtooth.but I noticed that the texture value increase more dark is the textures. a value of 1014 gives a less dark, but with the border very ugly shadows. Example scene Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 27, 2014 Author Share Posted June 27, 2014 The latest version has correct the major problem shadows. but there is a detail that I didn't include. a plan with a texture of foliage with transparency. the shadows are going to display a plan, not the foliage. that gives not pretty shadows. there something to fix this? I thought that setTansparencyShadow was made for this. but I have the impression that this changes nothing. Thank you. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 28, 2014 Author Share Posted June 28, 2014 Please DK. setTansparencyShadow this is the transparent textures like foliage, or I did not understand are use. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 28, 2014 Share Posted June 28, 2014 Shadows only support diffuseTexture OR diffuseTexture with alpha Transparency is not supported Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 28, 2014 Share Posted June 28, 2014 not yet but everything is possible fluffrabbit and Dad72 2 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 28, 2014 Author Share Posted June 28, 2014 It would be great if this could be added in the 1.13. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 28, 2014 Share Posted June 28, 2014 We already support alpha testing shadows like in this demo:http://www.babylonjs.com/?INSTANCES Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 28, 2014 Author Share Posted June 28, 2014 Oh, I'll look. Thanks for the information. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 28, 2014 Author Share Posted June 28, 2014 Used to generate the transparency of my foliage I serves opacity. Therefore it does not work for shadows. This would not be possible to supported this for shadows? If you look at the second image, I have enable opacity that generates the transparency of the foliage. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 28, 2014 Share Posted June 28, 2014 Instead of using an opacity texture you can store the opacity in the diffuse channel (better performance) and in this case babylon.js willa ctivate alpha testing for you (and shadows support alpha testing) Quote Link to comment Share on other sites More sharing options...
Dad72 Posted June 28, 2014 Author Share Posted June 28, 2014 OK, I'll try to do like this. Thanks for the advice 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.