Maya wireframe overlay in custom viewport
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good day, everyone!
I've been working on a custom plug-in that overrides the default Maya viewport. It works wonderful, however, I can't seem to figure out how to get the overlay to render properly. I'm using the "viewImageBlitOverride" as a reference implementation.
The custom depth stencil state has been set to be write enabled with the "kCompareAlways" depth testing function.
My screen render operation clears everything (kClearAll).
And the Gizmo render operation clears none (kClearNone).
I know that the depth values I pass to the viewport are correct, as they line up perfectly with the model.
The image below illustrates the issue well. On the left is the regular Maya viewport, on the right is my own.
As you can see, the overlay lines only show along the edges of the model when using the custom viewport plug-in. This makes me believe I did something wrong when configuring the depth buffer(?).
I'm a bit at a loss right now, so any suggestions are welcome!
Thanks a lot.
- Tahar