[vtkusers] vtkMultiVolume and shading

Sankhesh Jhaveri sankhesh.jhaveri at kitware.com
Thu Apr 26 16:59:19 EDT 2018


Thanks for reporting the issue Csaba. This might be an unintended
side-effect of vtkMultiVolume in the GPU mapper.

I've created an issue here: https://gitlab.kitware.com/vtk/vtk/issues/17302
to keep track of it.

Thanks,
Sankhesh

On Thu, Apr 26, 2018 at 4:15 PM Csaba Pinter <csaba.pinter at queensu.ca>
wrote:

> Hi Sankesh,
>
> Can you please reply to my question about SetVisibility? See below.
>
> Thanks,
> csaba
>
> -----Original Message-----
> From: vtkusers <vtkusers-bounces at vtk.org> On Behalf Of Csaba Pinter
> Sent: Tuesday, April 24, 2018 16:15
> To: Elvis Stansvik <elvis.stansvik at orexplore.com>
> Cc: vtkusers at vtk.org
> Subject: Re: [vtkusers] vtkMultiVolume and shading
>
> Hi Sankhesh and Elvis,
>
> The first issue that I was now able to confirm is that SetVisibility
> called on the individual vtkVolume objects within vtkMultiVolume has no
> effect. Not sure if this is intentional or not, but naively I'd think this
> is the way to show/hide a volume. I'm not fond of the idea to clear the
> connection in the mapper and set volume to null every time I want to hide
> one.
> The way to reproduce this is for example adding these lines to line 118 in
> Rendering\Volume\Testing\Cxx\TestGPURayCastMultiVolumeOverlapping.cxx
>         else if (key == "w")
>         {
>           this->Volume->SetVisibility(!this->Volume->GetVisibility());
>         }
> If you start the test interactively (-I), then nothing happens if you
> press w.
>
> The other issue is that the user transform I set to the first volume seems
> to be ignored, while the second volume's transform is used properly. I
> haven't been able to reproduce it with this test yet, so I'll keep working
> on it until I find out what is the exact issue.
>
> Cheers,
> csaba
>
> -----Original Message-----
> From: Elvis Stansvik <elvis.stansvik at orexplore.com>
> Sent: Tuesday, April 24, 2018 10:51
> To: Csaba Pinter <csaba.pinter at queensu.ca>
> Cc: Sankhesh Jhaveri <sankhesh.jhaveri at kitware.com>; vtkusers at vtk.org
> Subject: Re: [vtkusers] vtkMultiVolume and shading
>
> 2018-04-24 15:15 GMT+02:00 Csaba Pinter <csaba.pinter at queensu.ca>:
> > Hi Sankhesh,
> >
> >
> >
> > Thanks for the quick answer! Just in a nutshell, what would be needed
> > to do programming-wise to add shading in the code?
> >
> >
> >
> > Also I’m wondering if the situation about funding applies to bugfixes
> > as well? I am struggling with issues related to per-volume visibility
> > and user transforms, and I think I’ll get back to you soon with
> > self-contained test cases once I was able to figure out which of these
> > are on the VTK side and how to reproduce them easily.
>
> I'm also about to experiment with the multi-volume support. Would be
> interesting to hear from you what problems you ran into wrt to per-volume
> visibility / user transforms, so I know what to look out for :) So if you
> file issues for those it would be great if you could link to them here.
>
> Cheers,
> Elvis
>
> >
> >
> >
> > Thanks,
> >
> > csaba
> >
> >
> >
> > From: Sankhesh Jhaveri <sankhesh.jhaveri at kitware.com>
> > Sent: Monday, April 23, 2018 21:15
> > To: Csaba Pinter <csaba.pinter at queensu.ca>
> > Cc: vtkusers at vtk.org
> > Subject: Re: [vtkusers] vtkMultiVolume and shading
> >
> >
> >
> > Hi Csaba,
> >
> > I don’t believe there is a technical limitation. It was merely that
> > the original effort for adding multiple overlapping volumes support
> > was focused on selected features. I am not aware of current
> > efforts/funding to add support for additional features like shading,
> different blend modes, etc.
> >
> > Thanks,
> > Sankhesh
> >
> >
> >
> > On Mon, Apr 23, 2018 at 3:45 PM Csaba Pinter <csaba.pinter at queensu.ca>
> > wrote:
> >
> > Hello,
> >
> >
> >
> > I’m experimenting with using vtkMultiVolume to add proper multi-volume
> > rendering support into 3D Slicer. My main question is the reason
> > behind this actor not supporting shading, as apparent when used, but
> > also mentioned in the corresponding test:
> >
> > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithu
> > b.com%2FKitware%2FVTK%2Fblob%2Fmaster%2FRendering%2FVolume%2FTesting%2
> > FCxx%2FTestGPURayCastMultiVolumeOverlapping.cxx%23L229&data=02%7C01%7C
> > csaba.pinter%40queensu.ca%7Ce394ec9b8b0a4e6be41b08d5a9f2c990%7Cd61ecb3
> > b38b142d582c4efb2838b925c%7C1%7C0%7C636601782604952003&sdata=Ylx6UE%2B
> > 0l7IeQEWU5OEkSYHXSAuBYLT8DzB1RobJY34%3D&reserved=0
> >
> > Is this a technical limitation that would be very hard to overcome, or
> > is it something simpler? I’m asking this because for this actor to be
> > really used for volume rendering, shading would be necessary.
> >
> >
> >
> > Thank you,
> >
> > Csaba
> >
> > _______________________________________________
> > Powered by
> > https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&dat
> > a=02%7C01%7Ccsaba.pinter%40queensu.ca%7Ce394ec9b8b0a4e6be41b08d5a9f2c9
> > 90%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636601782604952003&sda
> > ta=OAQC2JW%2FBdByHi6rzs3UR3OuEYMXVtnIBzyO2DLUEBg%3D&reserved=0
> >
> > Visit other Kitware open-source projects at
> > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ki
> > tware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Ccsaba.pinter%4
> > 0queensu.ca%7Ce394ec9b8b0a4e6be41b08d5a9f2c990%7Cd61ecb3b38b142d582c4e
> > fb2838b925c%7C1%7C0%7C636601782604952003&sdata=ILwtCl2ODMcW2PistT%2BUe
> > pqKoQ7hCylxaWiGofVT5L8%3D&reserved=0
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vt
> > k.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7Ce394
> > ec9b8b0a4e6be41b08d5a9f2c990%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C
> > 0%7C636601782604952003&sdata=M05RBjDP8XffO2U1b2I%2BMOI2jswVhNERqdrgv%2
> > Fbd%2Bmo%3D&reserved=0
> >
> > Search the list archives at:
> > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkma
> > il.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Ccsaba.pinter%40queens
> > u.ca%7Ce394ec9b8b0a4e6be41b08d5a9f2c990%7Cd61ecb3b38b142d582c4efb2838b
> > 925c%7C1%7C0%7C636601782604952003&sdata=%2B9tRXKCTKzxtmbkE9hWJz1%2FooB
> > fefTvNJWtuJta0b1o%3D&reserved=0
> >
> > Follow this link to subscribe/unsubscribe:
> > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvtk.o
> > rg%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7Ccsaba.pinter%40queen
> > su.ca%7Ce394ec9b8b0a4e6be41b08d5a9f2c990%7Cd61ecb3b38b142d582c4efb2838
> > b925c%7C1%7C0%7C636601782604952003&sdata=2HdbAKBlfe1JNhyMG%2BCo%2FnwJ2
> > o2IWDqQHl%2BCIjbu3Fs%3D&reserved=0
> >
> > --
> >
> > Sankhesh Jhaveri
> >
> > Sr. Research & Development Engineer | Kitware | (518) 881-4417
> >
> >
> > _______________________________________________
> > Powered by
> > https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&dat
> > a=02%7C01%7Ccsaba.pinter%40queensu.ca%7Ce394ec9b8b0a4e6be41b08d5a9f2c9
> > 90%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636601782604952003&sda
> > ta=OAQC2JW%2FBdByHi6rzs3UR3OuEYMXVtnIBzyO2DLUEBg%3D&reserved=0
> >
> > Visit other Kitware open-source projects at
> > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ki
> > tware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Ccsaba.pinter%4
> > 0queensu.ca%7Ce394ec9b8b0a4e6be41b08d5a9f2c990%7Cd61ecb3b38b142d582c4e
> > fb2838b925c%7C1%7C0%7C636601782604952003&sdata=ILwtCl2ODMcW2PistT%2BUe
> > pqKoQ7hCylxaWiGofVT5L8%3D&reserved=0
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vt
> > k.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7Ce394
> > ec9b8b0a4e6be41b08d5a9f2c990%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C
> > 0%7C636601782604952003&sdata=M05RBjDP8XffO2U1b2I%2BMOI2jswVhNERqdrgv%2
> > Fbd%2Bmo%3D&reserved=0
> >
> > Search the list archives at:
> > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkma
> > il.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Ccsaba.pinter%40queens
> > u.ca%7Ce394ec9b8b0a4e6be41b08d5a9f2c990%7Cd61ecb3b38b142d582c4efb2838b
> > 925c%7C1%7C0%7C636601782604952003&sdata=%2B9tRXKCTKzxtmbkE9hWJz1%2FooB
> > fefTvNJWtuJta0b1o%3D&reserved=0
> >
> > Follow this link to subscribe/unsubscribe:
> > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvtk.o
> > rg%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7Ccsaba.pinter%40queen
> > su.ca%7Ce394ec9b8b0a4e6be41b08d5a9f2c990%7Cd61ecb3b38b142d582c4efb2838
> > b925c%7C1%7C0%7C636601782604952003&sdata=2HdbAKBlfe1JNhyMG%2BCo%2FnwJ2
> > o2IWDqQHl%2BCIjbu3Fs%3D&reserved=0
> >
> _______________________________________________
> Powered by
> https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C797077e62ecc4ee0f44408d5aa1fff3f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636601976760404366&sdata=1lYCTXmxKFAOgv%2FQrW6cv9jtjQK75l%2BBZYeYtOJbE3o%3D&reserved=0
>
> Visit other Kitware open-source projects at
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C797077e62ecc4ee0f44408d5aa1fff3f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636601976760404366&sdata=ODhLD2F9vWvtEh4YL95uxjpGKVpqojmiZwFHwFgzIXo%3D&reserved=0
>
> Please keep messages on-topic and check the VTK FAQ at:
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C797077e62ecc4ee0f44408d5aa1fff3f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636601976760404366&sdata=uD61r5kXd18vHb8WBIo19IVG5ogZo9iK%2Fj3qCIKa7zY%3D&reserved=0
>
> Search the list archives at:
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C797077e62ecc4ee0f44408d5aa1fff3f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636601976760404366&sdata=NJl0QPc040TPW2yj%2Bp1DA5EjB33cgHpil3FD3fgaEAk%3D&reserved=0
>
> Follow this link to subscribe/unsubscribe:
>
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvtk.org%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C797077e62ecc4ee0f44408d5aa1fff3f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636601976760404366&sdata=a%2Fct6kgmRJ6Bl6tRKZTCnjhhssJHmI%2BWaGVJYWN0PI0%3D&reserved=0
>
-- 
Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware
<http://www.kitware.com/> | (518) 881-4417
​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180426/108472df/attachment.html>


More information about the vtkusers mailing list