joshcamas Posted February 5, 2017 Share Posted February 5, 2017 Hi guys, I'm building a little isometric demo and I'm in need to hide meshes that the player is behind. I don't really wanna hide the whole mesh like Diablo, but instead want to create a circle mask around the player. Like so: Notice how the wall dissapears when the player gets close? Sorry about the bad quality lmaoo So yeah. Not 100% sure how this would even work... Quote Link to comment Share on other sites More sharing options...
adam Posted February 5, 2017 Share Posted February 5, 2017 You could probably use ShaderBuilder for something like this. Here's an example: http://babylonjs-playground.com/#QO7CR#0 @NasimiAsl might be able to help you. Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted February 5, 2017 Share Posted February 5, 2017 @joshcamas @adam http://babylonjs-playground.com/#QO7CR#15 is this correct answer? jerome 1 Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted February 5, 2017 Share Posted February 5, 2017 http://babylonjs-playground.com/#QO7CR#12 some fun with this sample jerome 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.