mlavik1 / UnityVolumeRendering

Volume rendering, implemented in Unity3D. Want to support the project? Donate a small sum to Save The Children(https://www.savethechildren.net/) or another charity, and send me a message, and I will be greatly motivated!
https://fosstodon.org/@unityvolrend
MIT License
458 stars 127 forks source link

Image Sequence not working for large dataset of images #254

Open ItzOver9000 opened 5 months ago

ItzOver9000 commented 5 months ago

I am working on a project where I have a dataset with 1000 images (PNG Format) but when I load the image sequence it gives this error ArgumentOutOfRangeException: Non-negative number required. When I decrease the size of dataset to 250 images it starts working fine but when I try to work with my entire dataset then it does not work. Can you provide a solution for this problem? 1

MichaelOvens commented 5 months ago

I've just tried to reproduce the issue on my machine but haven't had any luck - I'm able to load datasets of 1000+ PNG images no problems.

The only thing I can think of that might cause the problem would be if the first file in the sequence is corrupted or invalid in some way, as the code extrapolates the dimensions of the first file in the sequence to figure out what the dimensions of the overall volume should be.

Are you able to upload a copy of the dataset so we could take a look at it?