I have two objects in my 3D scene where one object partially covers the other object. I want to draw the outline / wireframe of the covered object on top of the covering object to give the user a glimpse of the covered object. I am aiming for a similar effect as in the RTS Age of Empires 2, where units that are visually covered by walls are displayed as wireframes as seen in this screenshot:
I’m pretty sure this or similar to this has been discussed before in this forum. I also kind of remember that there must be at least a base around the use of a node material. Best I believe would be to ask (bother ) our ultimate guru and expert (though I think he loves to deal with complex cases, don’t you? )
cc @PatrickRyan
@axeljaeger, I don’t know if there is a standard method of drawing the mesh twice as you are doing here since you are drawing the mesh, drawing other meshes that occlude it, and then going back to the original mesh and drawing it again with a different material.
I haven’t given much thought to this kind of technique in Babylon in the past, but I can certainly take a stab at how I would approach it. In the meantime, I would also ping @Evgeni_Popov in case he has any quick ideas about the process.