We have a 2D map app, that is being rendered by a non-orthographic camera, which means we can’t just move things closer to the camera to make it appear ‘on top’… because with the perspective projection, if you move things closer, then it’s going to make their 2D position skew as you move the camera (to anywhere except directly over top them). So all objects in our map view will be positioned at Y=0.
For 2D objects, we have them all positioned exactly at Y=0, to avoid the Skew, and then are using “RenderOrder” to set the Z-order. This is working just great.
However, now we want to employ some 3D models into the mix, but we need the be able to control the Z-Order alongside those 2D graphics. Since the 3D models have “height”, half of the model will be above ground, and half below ground… and it shows. This is bad. Instead we want to make sure the entire 3D model shows, and is not occluded by other objects… it needs to appear “fully on top”, despite it having parts of the model actually be further from camera that other layers.
What is the easiest way in Urho to do this? (i.e. I think this means ignoring the DepthCheck with other objects, but not itself)