[vtkusers] vtkMultiVolume and shading

Csaba Pinter csaba.pinter at queensu.ca
Thu Apr 26 17:04:15 EDT 2018


Thank you Sankhesh!

It’s good to know that this is indeed a bug. Thanks a lot for creating the issue and for looking into it!

Best,
csaba

From: Sankhesh Jhaveri <sankhesh.jhaveri at kitware.com>
Sent: Thursday, April 26, 2018 16:59
To: Csaba Pinter <csaba.pinter at queensu.ca>
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] vtkMultiVolume and shading

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<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitlab.kitware.com%2Fvtk%2Fvtk%2Fissues%2F17302&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C58f618cc13fa44e47a6408d5abb89b4f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636603731736610629&sdata=dVaGE7Gcde%2Bdkx8u74taI6VdQNU%2FLTkOeHyFooppcZ8%3D&reserved=0>
to keep track of it.

Thanks,
Sankhesh

On Thu, Apr 26, 2018 at 4:15 PM Csaba Pinter <csaba.pinter at queensu.ca<mailto: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<mailto: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<mailto:elvis.stansvik at orexplore.com>>
Cc: vtkusers at vtk.org<mailto: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<mailto:elvis.stansvik at orexplore.com>>
Sent: Tuesday, April 24, 2018 10:51
To: Csaba Pinter <csaba.pinter at queensu.ca<mailto:csaba.pinter at queensu.ca>>
Cc: Sankhesh Jhaveri <sankhesh.jhaveri at kitware.com<mailto:sankhesh.jhaveri at kitware.com>>; vtkusers at vtk.org<mailto: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<mailto: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<mailto:sankhesh.jhaveri at kitware.com>>
> Sent: Monday, April 23, 2018 21:15
> To: Csaba Pinter <csaba.pinter at queensu.ca<mailto:csaba.pinter at queensu.ca>>
> Cc: vtkusers at vtk.org<mailto: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<mailto: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<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fb.com&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C58f618cc13fa44e47a6408d5abb89b4f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636603731736610629&sdata=B8JHd90O9AFV5EfhtQWV%2FgBTuBXt6oX5chM2W01BRuY%3D&reserved=0>%2FKitware%2FVTK%2Fblob%2Fmaster%2FRendering%2FVolume%2FTesting%2
> FCxx%2FTestGPURayCastMultiVolumeOverlapping.cxx%23L229&data=02%7C01%7C
> csaba.pinter%40queensu.ca<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2F40queensu.ca&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C58f618cc13fa44e47a6408d5abb89b4f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636603731736620642&sdata=ZIBHxdH9fmKv%2Fs8OCKszyi04COwFjQ3yL3NF8jEiTEE%3D&reserved=0>%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<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2F40queensu.ca&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C58f618cc13fa44e47a6408d5abb89b4f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636603731736620642&sdata=ZIBHxdH9fmKv%2Fs8OCKszyi04COwFjQ3yL3NF8jEiTEE%3D&reserved=0>%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<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Ftware.com&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C58f618cc13fa44e47a6408d5abb89b4f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636603731736620642&sdata=OORmyjPEgZF%2BANDzwasZLI7ukCUAK8lJU54qaBGxUWQ%3D&reserved=0>%2Fopensource%2Fopensource.html&data=02%7C01%7Ccsaba.pinter%4
> 0queensu.ca<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2F0queensu.ca&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C58f618cc13fa44e47a6408d5abb89b4f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636603731736620642&sdata=ULxITHK4fQa2KPd6WM71SG0zDzI3hb8f4W48FR0dH8c%3D&reserved=0>%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<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fk.org&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C58f618cc13fa44e47a6408d5abb89b4f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636603731736620642&sdata=ffLDQmdYlekPTvJ0StVMjdkSIAaDugOjgWbFZfbvKBE%3D&reserved=0>%2FWiki%2FVTK_FAQ&data=02%7C01%7Ccsaba.pinter%40queensu.ca<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2F40queensu.ca&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C58f618cc13fa44e47a6408d5abb89b4f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636603731736620642&sdata=ZIBHxdH9fmKv%2Fs8OCKszyi04COwFjQ3yL3NF8jEiTEE%3D&reserved=0>%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<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fil.org&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C58f618cc13fa44e47a6408d5abb89b4f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636603731736620642&sdata=Ca6Z4wbtXfB6MWV4ZV%2FMDdTM%2FiFMTKveFvccTpLiMG4%3D&reserved=0>%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Ccsaba.pinter%40queens
> u.ca<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fu.ca&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C58f618cc13fa44e47a6408d5abb89b4f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636603731736620642&sdata=O8S9z1nlyjtWEe5ZCMUZRocwSkW3PTK9yWCtKy7bZ8w%3D&reserved=0>%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<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsu.ca&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C58f618cc13fa44e47a6408d5abb89b4f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636603731736620642&sdata=QXCdySLsT1yz6y3klEBCFQAWhXL%2FFgjjRW1nRa9ReWk%3D&reserved=0>%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<tel:(518)%20881-4417>
>
>
> _______________________________________________
> Powered by
> https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&dat
> a=02%7C01%7Ccsaba.pinter%40queensu.ca<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2F40queensu.ca&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C58f618cc13fa44e47a6408d5abb89b4f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636603731736620642&sdata=ZIBHxdH9fmKv%2Fs8OCKszyi04COwFjQ3yL3NF8jEiTEE%3D&reserved=0>%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<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Ftware.com&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C58f618cc13fa44e47a6408d5abb89b4f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636603731736620642&sdata=OORmyjPEgZF%2BANDzwasZLI7ukCUAK8lJU54qaBGxUWQ%3D&reserved=0>%2Fopensource%2Fopensource.html&data=02%7C01%7Ccsaba.pinter%4
> 0queensu.ca<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2F0queensu.ca&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C58f618cc13fa44e47a6408d5abb89b4f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636603731736630651&sdata=qwMCnnoaq6ia6xoON9kzAgzNvV8Oq4A6JzIAd%2FvwxL0%3D&reserved=0>%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<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fk.org&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C58f618cc13fa44e47a6408d5abb89b4f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636603731736630651&sdata=NoiN0Z4cZhoTCbzJyCn%2FbGUiaWcOM3HX8bQAe5mKlYc%3D&reserved=0>%2FWiki%2FVTK_FAQ&data=02%7C01%7Ccsaba.pinter%40queensu.ca<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2F40queensu.ca&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C58f618cc13fa44e47a6408d5abb89b4f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636603731736630651&sdata=uZz6XZJwVpD2G%2BdPMxuep9jD2RBPtCFS3mGZWN92X9c%3D&reserved=0>%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<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fil.org&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C58f618cc13fa44e47a6408d5abb89b4f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636603731736630651&sdata=wbon50bdv6KeOl%2BGtWusmfhx1rezV4P60yEFrmLIV1I%3D&reserved=0>%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Ccsaba.pinter%40queens
> u.ca<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fu.ca&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C58f618cc13fa44e47a6408d5abb89b4f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636603731736630651&sdata=fleBDdBfek5rH6vGuGfdHRfLhztiM32nOnUWnU932gY%3D&reserved=0>%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<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsu.ca&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C58f618cc13fa44e47a6408d5abb89b4f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636603731736630651&sdata=lDmlKb5Ta%2B2HLNSG6C9rwTkyhWRNit06gejsZ9KQo5s%3D&reserved=0>%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<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2F&data=02%7C01%7Ccsaba.pinter%40queensu.ca%7C58f618cc13fa44e47a6408d5abb89b4f%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C1%7C636603731736630651&sdata=Z2e2R%2B4waIeiALB7NVnY9tdoAipOCxHNPet4HiQC3Bc%3D&reserved=0> | (518) 881-4417
​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180426/79978de2/attachment.html>


More information about the vtkusers mailing list