[vtkusers] Can't transform a vtkVolume

Aashish Chaudhary aashish.chaudhary at kitware.com
Wed Mar 9 11:27:43 EST 2016


Hi Lorenzo,

what backend you are using OpenGL1 or OPenGL2? Also what version of VTK it is?

Thanks,


On Wed, Mar 9, 2016 at 11:18 AM, Lorenzo <oneiros.valente at gmail.com> wrote:
> Hello everyone
>
> I'm having a strange problem related to VTK volume rendering: I can't apply
> a simple transform (a translation) to volumes. I'm using the
> "SetUserTransform()" function that vtkVolume inherit from vtkProp3D, a
> method that works like a charm on vtkActors. I also tried "SetUserMatrix()"
> and simple "SetPosition()" but nothing.
>
> Here's my code: http://pastebin.com/7MnTCHHN
> And here's the output: http://i.imgur.com/feCyaIL.png
>
> As you can see, I generated two cube volumes (one red and one blue) and two
> cone actors (one red and one blue). I then apply the same transform on both
> blue props but only the cone actually translates (that's why you see a
> purple volume, the two cubes are in the same position).
>
> How is this possible?
>
> _______________________________________________
> 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



-- 
| Aashish Chaudhary
| Technical Leader
| Kitware Inc.
| http://www.kitware.com/company/team/chaudhary.html


More information about the vtkusers mailing list