volume Render can't work well with shadeon in 'big' data(500 * 1024 * 1000 just 500mb)

Hi VTK experts.

I am experimenting with Volume Rendering in my VTK-based C# application, and I am facing some issues with the vtkVolumeProperty shadeon.

and here is some fragments taken from code

run 5001024500 is ok, even to 500 * 1024 * 1000
with a deeper data, keep the volumeProperty.ShadeOn() I will get this exception

if block the volumeProperty.ShadeOn, I can run deepest data, 3000 * 500 * 1024

  • I’m a newbie. Maybe I can’t describe it well.

I want to know how I can solve this problem.Maybe a new VTK version or some other command to load.The purpose of this program is to load 3D data from the existing TXT to display.I guess I have enough memory and video memory (I borrowed someone else’s 2080TI, they can only run less data than me, confused)

this is my cpu gpu info
Intel® Core™ i5-9300H CPU @ 2.40GHz
NVIDIA GeForce GTX 1650
Dedicated GPU memory 1.2/4.0 GB
Shared GPU memory 0.0/8.0 GB
GPU Memory 1.2/12.0 GB

my vtk version
runTime version 2.0.50727
version 5.80.607
I have used GCHandle.Alloc successfully to run hundreds of pictures without blocking shadeon

I want to keep the shadeon and display 1024 * 500 * 3000 data(now can work with block the shade on)

hope you can share me some ideas