[vtkusers] Can't transform a vtkVolume

Aashish Chaudhary aashish.chaudhary at kitware.com
Wed Mar 9 11:35:50 EST 2016


If you are using 6.3 mostly likely you are using OpenGL1 backend. CHeck
for VTK_RENDERING_BACKEND in CMakeCache.txt or in ccmake when you build
VTK.

Is there a possiblity for you to switch to OpenGL2 if not already?

thanks,


On Wed, Mar 9, 2016 at 11:31 AM, Lorenzo Valente <oneiros.valente at gmail.com>
wrote:

> Hi Aashish,
>
> I'm using VTK 6.3 and OpenGL2 (i'm not 100% sure about OpenGL version...
> how can I test it?)
>
>
>
> *L O R E N Z O   V A L E N T E*
> COMPUTER SCIENTIST
> FRONT-END / BACK-END DEVELOPER
> oneiros.valente at gmail.com
>
> <https://plus.google.com/u/0/+LorenzoValente>
> <https://www.facebook.com/lorenzo.valente> <https://twitter.com/Oneiros90>
> <https://www.youtube.com/user/Bibicut90>
> <http://www.reddit.com/user/Oneiros90/>
>
> 2016-03-09 17:27 GMT+01:00 Aashish Chaudhary <
> aashish.chaudhary at kitware.com>:
>
>> 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
>>
>
>


-- 



*| Aashish Chaudhary | Technical Leader         | Kitware Inc.            *
*| http://www.kitware.com/company/team/chaudhary.html
<http://www.kitware.com/company/team/chaudhary.html>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160309/14e70ea7/attachment.html>


More information about the vtkusers mailing list