max123 Posted July 20, 2017 Share Posted July 20, 2017 Hi, I've got this weird overlap when using the Highlight Layer - the glow on mesh behind (5) creeps over the mesh in front (A). Is there a way to avoid this? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 20, 2017 Share Posted July 20, 2017 Hello, can you provide a PG to repro the issue? Ping @Sebavan Quote Link to comment Share on other sites More sharing options...
max123 Posted July 20, 2017 Author Share Posted July 20, 2017 Sure thing, @Deltakosh: https://www.babylonjs-playground.com/#YYFP8D#1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 20, 2017 Share Posted July 20, 2017 Actually this is the way it is supposed to work Quote Link to comment Share on other sites More sharing options...
max123 Posted July 20, 2017 Author Share Posted July 20, 2017 Hmmm... So there's no way to avoid this? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 20, 2017 Share Posted July 20, 2017 Nope: the highlight layer is a post process. Perhaps you may want to use overlay? https://www.babylonjs-playground.com/#10WJ5S#2 Or outline? https://www.babylonjs-playground.com/#10WJ5S#3 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 20, 2017 Share Posted July 20, 2017 other idea:https://www.babylonjs-playground.com/#YYFP8D#3 Quote Link to comment Share on other sites More sharing options...
max123 Posted July 21, 2017 Author Share Posted July 21, 2017 16 hours ago, Deltakosh said: Nope: the highlight layer is a post process. Perhaps you may want to use overlay? https://www.babylonjs-playground.com/#10WJ5S#2 Or outline? https://www.babylonjs-playground.com/#10WJ5S#3 Overlay is what the doctor has prescribed! I've reversed the approach though: selected mesh stays as it is, everything else gets a grey overlay with .7 overlayAlpha. Cheers @Deltakosh! GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
max123 Posted July 21, 2017 Author Share Posted July 21, 2017 Quote Link to comment Share on other sites More sharing options...
max123 Posted July 21, 2017 Author Share Posted July 21, 2017 Just a thought: this overlay trick can be used to simulate objects receding into distance, when fog is not an option. GameMonetize 1 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.