Draw shader even if the object isn't in the viewport


#1

I have a MPxHwShaderNode, which draws on a bigger area than the object that it’s attached too (which needs to remain the same size). This means that if I zoom in on the drawing, once the object isn’t visible in the viewport, the drawing disappears (I assume the draw event isn’t called). Is there away to draw, even if the object isn’t visible?


#2

just an idea: create a custom bounding box to fake visibility?


#3

Unfortunately, unlike MPxLocatorNode, MPxHwShaderNode doesn’t have boundingBox. The object my shader is attached to is just a mesh. I guess one possibility would be to implement a new mesh shape with a custom bounding box. I was hoping for an easier solution.