Volume Rendering Issues - External Module

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Volume Rendering Issues - External Module

Teek
This post was updated on .
Hi,

So I've been using the external module to render cubes and spheres successfully.
However, I'm trying to incorporate medical volume rendering from DICOM files.
I have done so successfully in a normal VTK renderer and render window and also a QVTKWidget.

Basically:
DICOM Image Reader > SmartVolumeMapper > Volume (Volume Property, Opacity and Color Transfer Functions) > Render

When I use the same flow on the ExternalWidget however I get some weird results:
Normal Distortion

Essentially it looks like the volume is actually a texture mapped onto a cube? And as I rotate, I can see the volume continuously deform to fit a "cube shape".
Any idea why this could be? I thought maybe it was due to the opacity transfer function, because if I disable that, I get the rendering fine. The only issue is that without the opacity function, what I have is essentially a cube anyway, so I can't really tell any difference.

-Teek
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Volume Rendering Issues - External Module

Aashish Chaudhary-2
Hi, 

Thanks for reporting it. Few questions:

VTK version? 

Platform (Windows/Linux)

Via SmartVolumeMapper you are getting GPU or FixPoint? 

Also, OpenGL2 backend or older? 

It looks like some matrices are incorrect. Can you print them in VTK and ensure they are looking reasonable? 

Thanks, 


On Thu, Jun 22, 2017 at 12:57 PM Teek <[hidden email]> wrote:
Hi,

So I've been using the external module to rendering cubes and spheres
successfully.
However, I'm trying to incorporate medical volume rendering from DICOM
files.
I have done so successfully in a normal VTK renderer and render window and
also a QVTKWidget.

Basically:
DICOM Image Reader > SmartVolumeMapper > Volume (Volume Property, Opacity
and Color Transfer Functions) > Render

When I use the same flow on the ExternalWidget however I get some weird
results:
<http://vtk.1045678.n5.nabble.com/file/n5743719/Normal.png>
<http://vtk.1045678.n5.nabble.com/file/n5743719/Distortion.png>

Essentially it looks like the volume is actually a texture mapped onto a
cube? And as I rotate, I can see the volume continuously deform to fit a
"cube shape".
Any idea why this could be? I thought maybe it was due to the opacity
transfer function, because if I disable that, I get the rendering fine. The
only issue is that without the opacity function, what I have is essentially
a cube anyway, so I can't really tell any difference.

-Teek



--
View this message in context: http://vtk.1045678.n5.nabble.com/Volume-Rendering-Issues-External-Module-tp5743719.html
Sent from the VTK - Users mailing list archive at Nabble.com.
_______________________________________________
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

_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Volume Rendering Issues - External Module

Teek
Aashish Chaudhary-2 wrote
VTK version?
VTK 7.1.1

Aashish Chaudhary-2 wrote
Platform (Windows/Linux)
Windows

Aashish Chaudhary-2 wrote
Via SmartVolumeMapper you are getting GPU or FixPoint?
If you mean the last used render mode, I'm getting 4 (GPURenderMode).

Aashish Chaudhary-2 wrote
Also, OpenGL2 backend or older?
OpenGL2

Aashish Chaudhary-2 wrote
It looks like some matrices are incorrect. Can you print them in VTK and
ensure they are looking reasonable?
I'll try printing them to a file and get back to you. Any specific matrices?

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Volume Rendering Issues - External Module

Sankhesh Jhaveri-2

Hi Teek,

Try testing against VTK master.
A similar bug was fixed recently that went in after VTK 7.1.1

Related merge request: https://gitlab.kitware.com/vtk/vtk/merge_requests/2814

Thanks,
Sankhesh


On Thu, Jun 22, 2017 at 1:29 PM Teek <[hidden email]> wrote:
Aashish Chaudhary-2 wrote
> VTK version?

VTK 7.1.1


Aashish Chaudhary-2 wrote
> Platform (Windows/Linux)

Windows


Aashish Chaudhary-2 wrote
> Via SmartVolumeMapper you are getting GPU or FixPoint?

If you mean the last used render mode, I'm getting 4 (GPURenderMode).


Aashish Chaudhary-2 wrote
> Also, OpenGL2 backend or older?

OpenGL2


Aashish Chaudhary-2 wrote
> It looks like some matrices are incorrect. Can you print them in VTK and
> ensure they are looking reasonable?

I'll try printing them to a file and get back to you. Any specific matrices?





--
View this message in context: http://vtk.1045678.n5.nabble.com/Volume-Rendering-Issues-External-Module-tp5743719p5743727.html
Sent from the VTK - Users mailing list archive at Nabble.com.
_______________________________________________
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
--
Sankhesh Jhaveri
Sr. Research & Development Engineer | Kitware | (518) 881-4417

_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Volume Rendering Issues - External Module

Teek
I shall try this and get back to you.
Thanks.

-Teek

Sankhesh Jhaveri-2 wrote
Hi Teek,

Try testing against VTK master.
A similar bug was fixed recently that went in after VTK 7.1.1

Related merge request:
https://gitlab.kitware.com/vtk/vtk/merge_requests/2814

Thanks,
Sankhesh
Loading...