[vtkusers] Problems in rendering volume with vtkOpenVR
Guilherme Alcarde Gallo
guilherme.gallo at eldorado.org.br
Tue Jul 12 15:58:03 EDT 2016
I have tested what you suggested with the updated OpenVR remote module and deactivated the MultiSampling on the RenderWindow.
It worked like a charm!
Thank you very much!
Best regards,
Guilherme
From: Ken Martin [mailto:ken.martin at kitware.com]
Sent: quinta-feira, 7 de julho de 2016 10:44
To: Guilherme Alcarde Gallo <guilherme.gallo at eldorado.org.br>; Alvaro Sanchez <alvaro.sanchez at kitware.com>; Sankhesh Jhaveri <sankhesh.jhaveri at kitware.com>
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] Problems in rendering volume with vtkOpenVR
I pushed a fix to the OpenVR remote module. You will need to make sure you set MultiSamples(0) on your renderwindow before you render as the issue involved reading from a multisampled buffer. I did test with a simple Volume Rendering example and it worked. There did seem to be a clipping/bbox issue with the volume when I adjusted it's position and orientation but I suspect that is a bug in the volume rendering code.
Thanks
Ken
On Wed, Jul 6, 2016 at 4:30 PM, Ken Martin <ken.martin at kitware.com<mailto:ken.martin at kitware.com>> wrote:
I have not tested volume rendering with vtkOpenVR but ... I can't think of any reason it would not work. I suspect there is maybe a some sort of issue with the volume renderer copying the frame back into (or out of) the frame buffer. I suspect if you can find the issue the fix will be pretty easy. If I get a chance I'll try giving it a shot.
On Wed, Jul 6, 2016 at 1:54 PM, Guilherme Alcarde Gallo <guilherme.gallo at eldorado.org.br<mailto:guilherme.gallo at eldorado.org.br>> wrote:
Hello all!
I have succeeded in building VTK with vtkOpenVR remote module and running a simple Cone example in my OSVR HMD.
But when I’ve attempted to run the volume rendering example "GPURenderDemo", I got a black screen and a lot of repetitive errors:
ERROR: In
C:\VTK-master\Rendering\OpenGL2\vtkTextureObject.cxx,
line 2035
vtkTextureObject (0000000BE6462060): failed at glCopyTexImage2D 6402 1 OpenGL errors detected
0 : (1282) Invalid operation
Also, I have tried to run the CPU-based volume rendering example “FixedPointVolumeRayCastMapperCT”.
Although the performance is poor, it works, since the texture successfully appears in the HMD and its tracking is integrated with the WindowInteractor.
My colleague has made an investigation about this issue comparing both examples, he concluded that the problem is related with the “SmartVolumeMapper” class.
So I would like to ask a few questions:
1) Does the remote module vtkOpenVR has support for volume rendering?
2a) If it does, what I'm doing wrong? Is there any problem with SmartVolumeMapper implementation for running vtkOpenVr applications?
2b) If it don’t, how I can add volume rendering support for vtkOpenVR? (I and my team are willing to do this)
Thank you very much!
Guilherme
_______________________________________________
Powered by www.kitware.com<http://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
Search the list archives at: http://markmail.org/search/?q=vtkusers
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
--
Ken Martin PhD
Chairman & CFO
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065
518 371 3971<tel:518%20371%203971>
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.
--
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/20160712/10c53244/attachment.html>
More information about the vtkusers
mailing list