Maya wireframe overlay in custom viewport

Maya wireframe overlay in custom viewport

tntmeijs
Contributor Contributor
1,209 Views
1 Reply
Message 1 of 2

Maya wireframe overlay in custom viewport

tntmeijs
Contributor
Contributor

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(?).wisp_viewport_next_to_maya.png

 

I'm a bit at a loss right now, so any suggestions are welcome!

 

Thanks a lot.

 

- Tahar

0 Likes
1,210 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

Did you manage to get anywhere with this....  had some similar issues with the wireframe and indeed were from a missconfigured depth channel... not sure how your implementation is... but if you are creating a render target make sure its the proper format? i don`t remember exactly off the top of my head

0 Likes