[vtkusers] Rendering of vtkGPUVolumeRayCastMapper with AddClippingPlane
lindeval at dmat.ufrr.br
lindeval at dmat.ufrr.br
Wed Jul 20 00:57:24 EDT 2011
Hello! I am interested in using GPU with VTK. How do I use? Do you have any code snippet to illustrate?
Thanks in advance.
----- Mensagem original -----
De: "Tijmen Klein" <T.R.Klein at student.rug.nl>
Para: vtkusers at vtk.org
Enviadas: Segunda-feira, 18 de Julho de 2011 9:03:32 (GMT-0300) Auto-Detected
Assunto: [vtkusers] Rendering of vtkGPUVolumeRayCastMapper with AddClippingPlane
I am using a vtkGPUVolumeRayCastMapper to render a structured grid, with the use of AddClippingPlane member (of vtkGPUVolumeRayCastMapper). Now, I'm getting some weird rendering behavior that depends on the interactor that is used:
vtkInteractorStyleTrackballActor: Rendering sometimes looks good, but most of the time weird rendering artifacts show when doing this. This is how it should look: http://dl.dropbox.com/u/27566470/good.png , but most of the time it looks like something like this: http://dl.dropbox.com/u/27566470/bad.png or http://dl.dropbox.com/u/27566470/bad2.png These artifacts change based on the rotation that is applied with the interactor.
vtkInteractorStyleTrackballCamera: When I start with this interactor, the clipping is not applied at all. I just see the normal volume (without rendering artifacts). If I start with the Actor Interactor (and try to get a view without artifacts), and then switch to the Camera Interactor: then everything seems to be working fine. The view stays clipped, and no artifacts occur. But I can not get it to work with just the Camera Interactor. However, I would prefer to use the Actor Interactor for my interactions, so switching to Camera mode is not really wanted.
Are this known issues? What am I doing wrong that the clipping is not happening in Camera mode? And is there a way to prevent the artifacts?
Tijmen
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list