[vtkusers] [vtk-developers] vtkActor2D and layer ordering ?
Andras Lasso
lasso at queensu.ca
Thu Mar 17 15:01:29 EDT 2016
Unfortunately, that doesn’t fix the ordering issues for me. I’ll try to create a simple example to demonstrate the problem.
Andras
From: Ken Martin [mailto:ken.martin at kitware.com]
Sent: Thursday, March 17, 2016 9:13 AM
To: Andras Lasso <lasso at queensu.ca>
Cc: Petar Petrov <pip010 at gmail.com>; vtk-developers at vtk.org; vtkusers at vtk.org
Subject: Re: [vtk-developers] vtkActor2D and layer ordering ?
I believe Bill Lorensen has/had a patch related to 2d actor depth in the new OpenGL backend that has been merged into master
https://gitlab.kitware.com/vtk/vtk/merge_requests/1284
does that fix the issue?
Thanks
Ken
On Thu, Mar 17, 2016 at 8:04 AM, Andras Lasso <lasso at queensu.ca<mailto:lasso at queensu.ca>> wrote:
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<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<mailto:vtk-developers at vtk.org>; vtkusers at vtk.org<mailto: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
_______________________________________________
Powered by www.kitware.com<http://www.kitware.com>
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Search the list archives at: http://markmail.org/search/?q=vtk-developers
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtk-developers
--
Ken Martin PhD
Chairman & CFO
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065
518 371 3971
This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160317/ef8512cc/attachment.html>
More information about the vtkusers
mailing list