[vtkusers] Changing Opaque Object Render Order (Z-Order) - Python

gwindes grant.windes at smith-nephew.com
Mon Mar 17 17:05:34 EDT 2014


Hello,

I'm looking for a way to control the opaque object render order when
multiple objects (Xrays/Image3D) share the same Z plane. I've been looking
at possibly reordering the PropArray in a custom OpaquePass but I am curious
if others have a cleaner procedure for this. Unfortunately using Image2D is
not an option despite it having SetDisplayLocationToForeground/BackGround()
method.

Is their a cleaner way to go about this than injecting our own render code
with a custom OpaquePass? The user of the software will have the ability to
change the render order of xrays through bringToFront/Back controls.

I've been able to successfully test this behavior in WebGL and Three.js
which exposes control of the render order.
Ex: http://i.imgur.com/oD1xJiQ.png

Note: I'm using Python (2.7.5) along with the Python Vtk: 5.10.1

Thanks,
-Grant




--
View this message in context: http://vtk.1045678.n5.nabble.com/Changing-Opaque-Object-Render-Order-Z-Order-Python-tp5726354.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list