Hello,
In my custom display conduit I am drawing sprites that I want to utilize depth testing and not show when behind objects, however, I want them to still show on top of the GroundPlane, is this possible?
What DrawForeground gives me with DepthTesting = True:
What DrawForeground gives me with DepthTesting = False:
What I need it to look like:
Relevant code:
def DrawForeground(self, e):
if e.Viewport.Name != UI.viewport.ActiveViewport.Name:
return
sprite = UI.sprite_icons.get('sprite', None) # Get the cluster sprite bitmap
if UI.cluster['count'] == 1:
if sprite: # Draw Sprite bitmap representation of icon
e.Display.EnableDepthTesting(False) # Disable Depth Testing so that the next elements that get drawn to through everything
e.Display.DrawSprite(sprite, UI.cluster['center'], UI.sprite_size, False)
I would turn off the ground plane but I need to display it so that’s not an option.
Thank you all for any pointers you can provide!