BabarJulien Posted September 5, 2018 Share Posted September 5, 2018 HI, I'm using babylonJs in order to develop a kind-of 2D editor, and I'm mostly using LinesMesh for drawing stuff with MeshBuilder.CreateLines. I'm trying to highlight the picked mesh but had no success with the HighlightLayer or with the GlowLayer. Is there a way to highlight LinesMesh ? Thanks Quote Link to comment Share on other sites More sharing options...
Guest Posted September 5, 2018 Share Posted September 5, 2018 Unfortunately LinesMesh are not supported by the highligh or glowlayer. Let me ping @Sebavan to see how hard it is to add support for them Quote Link to comment Share on other sites More sharing options...
Sebavan Posted September 5, 2018 Share Posted September 5, 2018 It is already supported but the lines need to not be drawn in blend mode: https://www.babylonjs-playground.com/#165IV6#461 I guess it is the default for back compat reason but by using the option useVertexAlpha: false it all works like a charm. babbleon and BabarJulien 1 1 Quote Link to comment Share on other sites More sharing options...
BabarJulien Posted September 7, 2018 Author Share Posted September 7, 2018 Thanks @Sebavan ! Quote Link to comment Share on other sites More sharing options...
BabarJulien Posted September 7, 2018 Author Share Posted September 7, 2018 Hmmm @Sebavan It seems that something goes wrong wiht the highlighting when a line is axis aligned : https://www.babylonjs-playground.com/#165IV6#462 Quote Link to comment Share on other sites More sharing options...
Sebavan Posted September 7, 2018 Share Posted September 7, 2018 It is unfortunately linked to the line thinckness and the way the blur is generated. There is not that many workaround we could use on this one. 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.