brianzinn Posted November 30, 2017 Share Posted November 30, 2017 I've added a bounding box on a plane (with AdvancedDynamicTexture) to demonstrate a culling issue I am having. This plane, which does not block other meshes or skyboxes is mysteriously blocking the HighlightLayer. Wondering if anybody knows what I am missing:http://www.babylonjs-playground.com/indexstable#E0WY4U#18 Quote Link to comment Share on other sites More sharing options...
Sebavan Posted November 30, 2017 Share Posted November 30, 2017 higlight layer does not support transparency and it has been several time we encountered the issue I guess i ll give it a try in 3.2. brianzinn 1 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted November 30, 2017 Share Posted November 30, 2017 Hi guys. (Sebavan told me this same answer, about a month ago, BZ.) I think he's typed that answer around 30 times, now. (Wingnut offers finger ointment) I think transparency for highlights is going to be harrrrrrd. Depth-calculating, right? ow. Best of luck, if you try it... but wear safety gear, my friend. Brian... um... is there any way you can seriously simplify that playground, and yet show me what/how you are using the highlight layer? That PG failed for me. Perhaps you can just TELL ME what you are using the highLight layer... for. (thx) On another project, we had textured mesh that needed to be "selected"... and we got some nice results by adding some diffuseColor and emissiveColor. Although I don't understand material channels real well, I have found that... even though a diffuseTexture and/or emissiveTexture is in-use, adding some diffuse/emissive color...WORKS, and is a useful way to show when a mesh is selected/highlighted. It is also quite easy to make these colors flash/pulsate. I don't know if your project is using highlightLayer for selecting mesh, but IF it is, consider these other options. Perhaps useful. brianzinn 1 Quote Link to comment Share on other sites More sharing options...
brianzinn Posted November 30, 2017 Author Share Posted November 30, 2017 Oops, I missed that. My search-fu failed me. Thanks @Wingnut for the tip about using material colours, that was actually how I started, but the highlight looked much nicer! I'll switch back... Sometimes it seems like I've tried to use a little bit of everything from BabylonJS for this game Quote Link to comment Share on other sites More sharing options...
Sebavan Posted December 1, 2017 Share Posted December 1, 2017 @brianzinn I have just pushed half a fix here : https://github.com/BabylonJS/Babylon.js/commit/95fa93cccb4eaaff36aa80672df9ab6bc73c7e5b Highlight layer is not blocked anymore by the transparency but appears over transparent element. This will be deployed in a couple of our in the playground brianzinn 1 Quote Link to comment Share on other sites More sharing options...
Sebavan Posted December 1, 2017 Share Posted December 1, 2017 Deployed on latest: https://www.babylonjs-playground.com/#E0WY4U#18 Quote Link to comment Share on other sites More sharing options...
brianzinn Posted December 1, 2017 Author Share Posted December 1, 2017 Thanks @Sebavan that looks really good. Just to confirm that it is always visible (when you said "over transparent" you meant "over non-transparent"), which is OK. This is an improvement as well, because before it showed a black shadow through the plane.https://www.babylonjs-playground.com/#E0WY4U#23 Quote Link to comment Share on other sites More sharing options...
Sebavan Posted December 1, 2017 Share Posted December 1, 2017 It is unfortunately not intented and should have show only the top... I am fixing it now. I meant that even if the alpha is really high like almost opaque, you will still fully see the highlight layer. Quote Link to comment Share on other sites More sharing options...
Sebavan Posted December 1, 2017 Share Posted December 1, 2017 Ok so it works here and it is simply cause the panel is not a mesh but a gui element: https://www.babylonjs-playground.com/debug.html#2FFOYQ#19 So far so good, I can go to bed :-) brianzinn 1 Quote Link to comment Share on other sites More sharing options...
brianzinn Posted December 1, 2017 Author Share Posted December 1, 2017 Thanks @Sebavan - If you switch from stable to latest it is a big improvement! (https://www.babylonjs-playground.com/#E0WY4U#23) 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.