[Closed] Render on top?
Is there any way to make an object render on top of everything else in the viewport? (e.g. helper objects which are behind or inside of meshes, that I would like to be able to see without having to sett the mesh to x-ray).
So you’re saying I should just use gw methods to trace over the point objects/bones/whatever else I want rendered on top?
Do you want to render them out as an image? or just see in the viewport?
I’m not aware of any built-in or MaxScript only way to accomplish this. If using the SDK is an option, NodeDisplayCallback provides such functionality.
[ul]
[li]SuspendObjectDisplay: return true for objects that should be drawn on top
[/li][li]Display: clear the GW_Z_BUFFER flag of the GraphicsWindow and call the object’s Display method
[/li][/ul]
Then register the callback using INodeDisplayControl.
However, this method does not work if an object explicitly sets the GW_Z_BUFFER flag inside its Display method.
not setting GW_Z_BUFFER flag on the render limits is dependent on the object draw order within the scene, it’s the flag used (not set) when point helper is set to “draw on top” it can be the case that even when the point is “in front” of other objects it’s drawn occluded
for example…