<div dir="ltr">Hi Vincent, <div><br></div><div>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. </div><div><br></div><div>Thanks,</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 25, 2015 at 10:58 PM, vincentTan <span dir="ltr"><<a href="mailto:sin-chia.vincent-tan@vitrox.com" target="_blank">sin-chia.vincent-tan@vitrox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class="">Hi Aashish,<div><br></div><div>Thanks a lot for your help.</div><div><br></div></span><div>I have added in the code snippet that you have provided but yet the problem still persists.</div><div>Any idea how??</div><div><br></div><div>Thanks a lot for your much needed helps.</div><div>Vincent</div><div><br></div><div class="gmail_extra"><div class="gmail_quote"><span class="">On Thu, Nov 26, 2015 at 11:41 AM, Aashish Chaudhary-2 [via VTK] <span dir="ltr"><<a href="http:///user/SendEmail.jtp?type=node&node=5735208&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>></span> wrote:<br></span><blockquote style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><span>

        <div dir="ltr">Hi Vincent,<div><br></div><span class=""><div>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)</div><div><br></div><div><div> ren1->GetCullers()->InitTraversal();</div><div>  vtkCuller *culler=ren1->GetCullers()->GetNextItem();</div><div><br></div><div>  vtkFrustumCoverageCuller *fc=vtkFrustumCoverageCuller::SafeDownCast(culler);</div><div>  if(fc!=0)</div><div>    {</div><div>    fc->SetSortingStyleToBackToFront();</div><div>    }</div><div>  else</div><div>    {</div><div>    cout<<"culler is not a vtkFrustumCoverageCuller"<<endl;</div><div>    }</div></div><div><br></div><div><br></div><div><br></div></span></div></span><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote"><span>On Wed, Nov 25, 2015 at 9:56 PM, vincentTan <span dir="ltr"><<a href="http:///user/SendEmail.jtp?type=node&node=5735207&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>></span> wrote:<br></span><blockquote style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><div dir="ltr">Hi Aashish,<div><br></div><span><div>Thanks a lot for your helps. It works but if possible, is there any solution for the see through effect below:</div><div><img src="http://vtk.1045678.n5.nabble.com/attachment/5735205/0/See%20Through.PNG" alt="Inline image 2" width="562" height="399" style="margin-right:0px"><br></div><div><br></div><div>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.</div><div><br></div><div>Thanks a lot. Appreciate your great helps.</div><div>Vincent</div></span><div class="gmail_extra">
<br><div class="gmail_quote"><span><span>On Thu, Nov 26, 2015 at 9:34 AM, Vincent Tan Sin Chia <span dir="ltr"><<a href="http:///user/SendEmail.jtp?type=node&node=5735205&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>></span> wrote:<br></span></span><blockquote style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><div dir="ltr">Hi Aashish,<div><br></div><span><span><div>Thanks a lot for your help.</div></span><div>Will get back to you once i tested it out.</div><div><br></div><div>Thanks a lot.</div><div>Vincent</div></span><div><div><div class="gmail_extra">
<br><div class="gmail_quote"><span><span>On Thu, Nov 26, 2015 at 8:51 AM, Aashish Chaudhary-2 [via VTK] <span dir="ltr"><<a href="http:///user/SendEmail.jtp?type=node&node=5735205&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>></span> wrote:<br></span></span><blockquote style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><span><span><span>

        <div dir="ltr">Hi Vincent, <div><br></div><div>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. </div><div><br></div><div>Thanks,</div><div><br></div></div></span></span></span><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote"><span>On Wed, Nov 25, 2015 at 6:50 PM, vincentTan <span dir="ltr"><<a href="http:///user/SendEmail.jtp?type=node&node=5735203&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>></span> wrote:<br></span><blockquote style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><span>Hi Aashish,<br>
<br>
Thanks a lot for your reply.<br>
Ya, i am trying to render multiple volumes in one go. In my case, i would<br>
like to have two or possibly more vtkVolume in a vtkAssembly so that a<br>
global transformation on them would be applied as to treat those volumes as<br>
one unit.<br>
<br>
Besides, I have one class designed to keep track of each individual volume<br>
with its vtkImageData, vtkVolumeMapper as well as vtkVolumeProperty. In<br>
addition, as for vtkAssembly, i just simply add the volumes using<br>
assembly->addPart(subvol.getVolume()) but nothing comes out.<br>
<br>
Thanks a lot.<br>
Vincent<br>
<br>
<br>
<br></span>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Add-multiple-vtkVolume-in-vtkAssembly-tp5735182p5735201.html" rel="nofollow" link="external" target="_blank">http://vtk.1045678.n5.nabble.com/Add-multiple-vtkVolume-in-vtkAssembly-tp5735182p5735201.html</a><span><br>
<div><div>Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="nofollow" link="external" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="nofollow" link="external" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="nofollow" link="external" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</div></div></span></blockquote></div><span><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><font face="trebuchet ms, sans-serif"><i>| Aashish Chaudhary <br>| Technical Leader         <br>| Kitware Inc.            <br></i></font><div><i><font face="trebuchet ms, sans-serif">| </font><a href="http://www.kitware.com/company/team/chaudhary.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div></div></div>
</span></div><span>
<br>_______________________________________________
<br>Powered by <a href="http://www.kitware.com" rel="nofollow" link="external" target="_blank">www.kitware.com</a>
<br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="nofollow" link="external" target="_blank">http://markmail.org/search/?q=vtkusers</a><br><br>Follow this link to subscribe/unsubscribe:
<br><a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="nofollow" link="external" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br></span></div></div></div></div><div><br><span><span><img src="http://vtk.1045678.n5.nabble.com/images/icon_attachment.gif"> <strong>TestGPUVolumeRayCastMapper.cxx</strong> (3K) <a href="http://vtk.1045678.n5.nabble.com/attachment/5735203/0/TestGPUVolumeRayCastMapper.cxx" rel="nofollow" link="external" target="_blank">Download Attachment</a></span></span></div><span>

        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><span><span>
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </span></span><a href="http://vtk.1045678.n5.nabble.com/Add-multiple-vtkVolume-in-vtkAssembly-tp5735182p5735203.html" rel="nofollow" link="external" target="_blank">http://vtk.1045678.n5.nabble.com/Add-multiple-vtkVolume-in-vtkAssembly-tp5735182p5735203.html</a>
        </div><span><div><div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from Add multiple vtkVolume in vtkAssembly, <a rel="nofollow" link="external">click here</a>.<br>
                <a href="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" rel="nofollow" style="font:9px serif" link="external" target="_blank">NAML</a>
        </div></div></div></span></span></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div><span>


        
        
        
<br><span><hr align="left" width="300">
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Add-multiple-vtkVolume-in-vtkAssembly-tp5735182p5735205.html" rel="nofollow" link="external" target="_blank">Re: Add multiple vtkVolume in vtkAssembly</a><br></span></span><span><div><div>
Sent from the <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="nofollow" link="external" target="_blank">VTK - Users mailing list archive</a> at Nabble.com.<br></div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="nofollow" link="external" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="nofollow" link="external" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="nofollow" link="external" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></span></blockquote></div><span><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><font face="trebuchet ms, sans-serif"><i>| Aashish Chaudhary <br>| Technical Leader         <br>| Kitware Inc.            <br></i></font><div><i><font face="trebuchet ms, sans-serif">| </font><a href="http://www.kitware.com/company/team/chaudhary.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div></div></div>
</span></div><span>
<br>_______________________________________________
<br>Powered by <a href="http://www.kitware.com" rel="nofollow" link="external" target="_blank">www.kitware.com</a>
<br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="nofollow" link="external" target="_blank">http://markmail.org/search/?q=vtkusers</a><br><br>Follow this link to subscribe/unsubscribe:
<br><a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="nofollow" link="external" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>

        
        
        
        <br>
        <br>
        </span><hr noshade size="1" color="#cccccc">
        </div></div><div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div><div class="h5"><span>
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </span></div></div><a href="http://vtk.1045678.n5.nabble.com/Add-multiple-vtkVolume-in-vtkAssembly-tp5735182p5735207.html" rel="nofollow" link="external" target="_blank">http://vtk.1045678.n5.nabble.com/Add-multiple-vtkVolume-in-vtkAssembly-tp5735182p5735207.html</a>
        </div><span class=""><div><div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from Add multiple vtkVolume in vtkAssembly, <a rel="nofollow" link="external">click here</a>.<br>
                <a href="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" rel="nofollow" style="font:9px serif" link="external" target="_blank">NAML</a>
        </div></div></div></span></blockquote></div><br></div></div>
<div><br><img src="http://vtk.1045678.n5.nabble.com/images/icon_attachment.gif"> <strong>Source1.cpp</strong> (5K) <a href="http://vtk.1045678.n5.nabble.com/attachment/5735208/0/Source1.cpp" rel="nofollow" link="external" target="_blank">Download Attachment</a></div><div class="HOEnZb"><div class="h5">

        
        
        
<br><hr align="left" width="300">
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Add-multiple-vtkVolume-in-vtkAssembly-tp5735182p5735208.html" target="_blank">Re: Add multiple vtkVolume in vtkAssembly</a><br>
Sent from the <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" target="_blank">VTK - Users mailing list archive</a> at Nabble.com.<br></div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font face="trebuchet ms, sans-serif"><i>| Aashish Chaudhary <br>| Technical Leader         <br>| Kitware Inc.            <br></i></font><div><i><font face="trebuchet ms, sans-serif">| </font><a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div></div></div>
</div>