[vtkusers] Problems in rendering volume with vtkOpenVR

Ken Martin ken.martin at kitware.com
Fri Jul 8 10:22:53 EDT 2016


Hmm I think this was outside but I was close to the volume, also the view
angle was close to 120 degrees as opposed to VTK's more typical 30

On Fri, Jul 8, 2016 at 10:13 AM, Alvaro Sanchez <alvaro.sanchez at kitware.com>
wrote:

> This merge request might fix the issue (
> https://gitlab.kitware.com/vtk/vtk/merge_requests/1655).  I could
> reproduce the problem but only when having the camera inside the bounding
> box of a rotated volume.
>
> Let me know if this helps, thanks.
>
> Alvaro
>
>
>
> On Thu, Jul 7, 2016 at 9:44 AM, Ken Martin <ken.martin at kitware.com> wrote:
>
>> 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>
>> 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> 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
>>>>
>>>> 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
>>>
>>> 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.
>>
>
>
>
> --
> Alvaro Sanchez
> Kitware, Inc.
> Senior R&D Engineer
> 21 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-881-4901
>



-- 
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/20160708/457f7f87/attachment.html>


More information about the vtkusers mailing list