The best i've managed to do is get the highlighted avatar render above everything but I need just the silhouette not the entire mesh.
WURST CLIENT GITHUB HOW TO
Thus far, based on some googling and forum browsing ( Babylonjs outline through walls & ) I've figured out how to highlight the outline of objects using Babylon.HighlighLayer and I know that i can render objects above others via RenderingGroups but I can't seem to figure out how to use them in conjunction to create the effect I want.
This is very akin to effects used in many other video games (see example below). What I want to do is highlight the outline of these avatars ONLY when they are occluded by any other object, meaning that when they are not occluded they look normal with no highlight but when behind an object their highlighted silhouette can be seen by others (including yourself as you can see your own avatar). Right now my game consists of a scene compromising of multiple meshes with multiple users represented as avatars (created from basic circle geometry for the moment) loaded into an environment. Please bear with me on this one, i'm a complete newbie with babylon as i've only every worked with THREE.js. So I'm trying to create an online game using Babylon.js but have run into a problem thats got me a little stumped so hoping someone here would be willing to help me out.