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
441 stars 125 forks source link

Unable to load DICOM images #161

Open smgithub26 opened 1 year ago

smgithub26 commented 1 year ago

I am unable to load the DICOM images

Error - image

I have already enabled SimpleITK. Tried enabling/disabling multiple times image

mlavik1 commented 1 year ago

Hi! Thanks for reporting this. I have two questions:

I'll see if I can reproduce it on my side. I've recently used SimpleITK on Windows and Linux in Unity 2021.3, but didn't get this issue then.

smgithub26 commented 1 year ago

OS - Windows Platform - Android Unity Version - 2021.3.15f1 Dataset - https://www.dicomlibrary.com/meddream/?study=1.2.826.0.1.3680043.8.1055.1.20111102150758591.92402465.76095170

mlavik1 commented 1 year ago

Ah, right. It won't work on Android, since the SimpleITK integration currently only supports Windows and Linux (and maybe Mac). I should probably make it work in editor always though, regardless of target platform. I'll see if I can fix that.

Until then, if you want to import in the editor you can either:

  1. Switch build target to Windows - import - and then switch back again

or

  1. Open player settinngs and add "UVR_USE_SIMPLEITK" to "Scripting define symbols", like this: image
smgithub26 commented 1 year ago

Thank you. First option worked for me