[vtkusers] Add multiple vtkVolume in vtkAssembly
Aashish Chaudhary
aashish.chaudhary at kitware.com
Wed Nov 25 23:25:01 EST 2015
Hi Vincent,
I am seeing some other issue but not the issue you are talking about using
the source code you attached. Can you share some more sceenshots? You can
send them directly to my email address.
Thanks,
On Wed, Nov 25, 2015 at 10:58 PM, vincentTan <
sin-chia.vincent-tan at vitrox.com> wrote:
> Hi Aashish,
>
> Thanks a lot for your help.
>
> I have added in the code snippet that you have provided but yet the
> problem still persists.
> Any idea how??
>
> Thanks a lot for your much needed helps.
> Vincent
>
> On Thu, Nov 26, 2015 at 11:41 AM, Aashish Chaudhary-2 [via VTK] <[hidden
> email] <http:///user/SendEmail.jtp?type=node&node=5735208&i=0>> wrote:
>
>> Hi Vincent,
>>
>> Thanks for the feedback. If they are not overlapping in physical space
>> then you can do something like this (basically turn on the SortingStyle to
>> BackToFront)
>>
>> ren1->GetCullers()->InitTraversal();
>> vtkCuller *culler=ren1->GetCullers()->GetNextItem();
>>
>> vtkFrustumCoverageCuller
>> *fc=vtkFrustumCoverageCuller::SafeDownCast(culler);
>> if(fc!=0)
>> {
>> fc->SetSortingStyleToBackToFront();
>> }
>> else
>> {
>> cout<<"culler is not a vtkFrustumCoverageCuller"<<endl;
>> }
>>
>>
>>
>>
>> On Wed, Nov 25, 2015 at 9:56 PM, vincentTan <[hidden email]
>> <http:///user/SendEmail.jtp?type=node&node=5735207&i=0>> wrote:
>>
>>> Hi Aashish,
>>>
>>> Thanks a lot for your helps. It works but if possible, is there any
>>> solution for the see through effect below:
>>> [image: Inline image 2]
>>>
>>> FYI, i have added another vtkVolumeMapper and vtkVolume using the same
>>> source in your code. However, as you have seen it in the image, at certain
>>> angle where both of the objects are overlapped, you could see that the
>>> object located behind could be seen through. In addition, the object in
>>> front is the second vtkVolume that is created and added into vtkAssembly.
>>>
>>> Thanks a lot. Appreciate your great helps.
>>> Vincent
>>>
>>> On Thu, Nov 26, 2015 at 9:34 AM, Vincent Tan Sin Chia <[hidden email]
>>> <http:///user/SendEmail.jtp?type=node&node=5735205&i=0>> wrote:
>>>
>>>> Hi Aashish,
>>>>
>>>> Thanks a lot for your help.
>>>> Will get back to you once i tested it out.
>>>>
>>>> Thanks a lot.
>>>> Vincent
>>>>
>>>> On Thu, Nov 26, 2015 at 8:51 AM, Aashish Chaudhary-2 [via VTK] <[hidden
>>>> email] <http:///user/SendEmail.jtp?type=node&node=5735205&i=1>> wrote:
>>>>
>>>>> Hi Vincent,
>>>>>
>>>>> I modified one of the test (attached) and tried vtkAssembly and it
>>>>> worked for me on Ubuntu 14.* using OpenGL2 backend. Can you try this test
>>>>> and see if it works for you as well? If you using OpenGL1 backend, I would
>>>>> hope it should work as well since I believe vtkAssembly code has not
>>>>> changed as much.
>>>>>
>>>>> Thanks,
>>>>>
>>>>>
>>>>> On Wed, Nov 25, 2015 at 6:50 PM, vincentTan <[hidden email]
>>>>> <http:///user/SendEmail.jtp?type=node&node=5735203&i=0>> wrote:
>>>>>
>>>>>> Hi Aashish,
>>>>>>
>>>>>> Thanks a lot for your reply.
>>>>>> Ya, i am trying to render multiple volumes in one go. In my case, i
>>>>>> would
>>>>>> like to have two or possibly more vtkVolume in a vtkAssembly so that a
>>>>>> global transformation on them would be applied as to treat those
>>>>>> volumes as
>>>>>> one unit.
>>>>>>
>>>>>> Besides, I have one class designed to keep track of each individual
>>>>>> volume
>>>>>> with its vtkImageData, vtkVolumeMapper as well as vtkVolumeProperty.
>>>>>> In
>>>>>> addition, as for vtkAssembly, i just simply add the volumes using
>>>>>> assembly->addPart(subvol.getVolume()) but nothing comes out.
>>>>>>
>>>>>> Thanks a lot.
>>>>>> Vincent
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://vtk.1045678.n5.nabble.com/Add-multiple-vtkVolume-in-vtkAssembly-tp5735182p5735201.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
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>>
>>>>>
>>>>> *| Aashish Chaudhary | Technical Leader | Kitware Inc.
>>>>> *
>>>>> *| http://www.kitware.com/company/team/chaudhary.html
>>>>> <http://www.kitware.com/company/team/chaudhary.html>*
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>>>
>>>>> *TestGPUVolumeRayCastMapper.cxx* (3K) Download Attachment
>>>>> <http://vtk.1045678.n5.nabble.com/attachment/5735203/0/TestGPUVolumeRayCastMapper.cxx>
>>>>>
>>>>>
>>>>> ------------------------------
>>>>> If you reply to this email, your message will be added to the
>>>>> discussion below:
>>>>>
>>>>> http://vtk.1045678.n5.nabble.com/Add-multiple-vtkVolume-in-vtkAssembly-tp5735182p5735203.html
>>>>> To unsubscribe from Add multiple vtkVolume in vtkAssembly, click here.
>>>>> NAML
>>>>> <http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>>>>
>>>>
>>>>
>>>
>>> ------------------------------
>>> View this message in context: Re: Add multiple vtkVolume in vtkAssembly
>>> <http://vtk.1045678.n5.nabble.com/Add-multiple-vtkVolume-in-vtkAssembly-tp5735182p5735205.html>
>>> Sent from the VTK - Users mailing list archive
>>> <http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html> 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
>>>
>>>
>>
>>
>> --
>>
>>
>>
>> *| Aashish Chaudhary | Technical Leader | Kitware Inc.
>> *
>> *| http://www.kitware.com/company/team/chaudhary.html
>> <http://www.kitware.com/company/team/chaudhary.html>*
>>
>> _______________________________________________
>> 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
>>
>>
>> ------------------------------
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://vtk.1045678.n5.nabble.com/Add-multiple-vtkVolume-in-vtkAssembly-tp5735182p5735207.html
>> To unsubscribe from Add multiple vtkVolume in vtkAssembly, click here.
>> NAML
>> <http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
> *Source1.cpp* (5K) Download Attachment
> <http://vtk.1045678.n5.nabble.com/attachment/5735208/0/Source1.cpp>
>
> ------------------------------
> View this message in context: Re: Add multiple vtkVolume in vtkAssembly
> <http://vtk.1045678.n5.nabble.com/Add-multiple-vtkVolume-in-vtkAssembly-tp5735182p5735208.html>
> Sent from the VTK - Users mailing list archive
> <http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html> 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
>
>
--
*| 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/20151125/d56a8791/attachment-0001.html>
More information about the vtkusers
mailing list