[vtk-developers] vtkActor2D and layer ordering ?

Andras Lasso lasso at queensu.ca
Thu Mar 17 08:04:07 EDT 2016


I would be interested in this, too.

When building 3D Slicer with OpenGL backend then everything works well. Switching to OpenGL2 bckend improves performance, fixes transparent polydata rendering, and volume rendering (great!), but there are 2D actor ordering issues all over the place.

How 2D actor ordering is changed in OpenGL2 and what should we change in our applications to have the same behavior as with OpenGL?

Andras

From: vtk-developers [mailto:vtk-developers-bounces at vtk.org] On Behalf Of Petar Petrov
Sent: March 17, 2016 5:31 AM
To: vtk-developers at vtk.org; vtkusers at vtk.org
Subject: [vtk-developers] vtkActor2D and layer ordering ?


I found at least 3 ways that might influence z-order of 2D actors:

1) vtkActor2D->SetLayerNumber(int)
2) vtkImageMapper->SetZSlice()
3) vtkProperty2D->SetDsiplayToBackground/Foreground()

None of which seems to do the job. also previous similar question:
http://public.kitware.com/pipermail/vtkusers/2010-February/057204.html

Before vtk7.0, at least point 3 was working, now in vtk7.0 it also stopped working.

So my question is how can I influence z-ordering of 2Dactors as per latest vtk?

Cheers,
Petar





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20160317/f4eb582b/attachment-0001.html>


More information about the vtk-developers mailing list