How to remove the white outline in the RenderView

The MRenderView::updatePixels API has an annoying side-effect of showing a white outline. For example, calling it in the default way on a rectangle will show it like this:

withoutline

 

There is an undocumented API available that can alleviate this problem. You can call the MRenderView::setDrawTileBoundary(false) method after startRender and it will disable Maya from drawing the outline.

withoutOutline

 

Unfortunately, this API is currently marked for deprecation. But we have discussed this with our engineering team, and they agree it is an acceptable workaround for the time being.


Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading