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

Volume Rendered Object values reset on play/build #102

Closed louis-ake closed 1 year ago

louis-ake commented 2 years ago

I would like to use this tool to show dicom data in an existing project of mine. I can load the data fine. I then adjust the parameters on the Volume Rendered Object (enable lighting, adjust visible value range) to give the data an appropriate visualization. However, when I play/build the project these values are reset (lighting disabled, visible value range set to 0-1) .

Is this a bug, or is this just not the intended use of this tool? I have noticed that in the sample images and tutorial video Unity is not in play mode. If this is the case can you suggest a workaround?

vahpy commented 2 years ago

Hi Louis This issue has been fixed by pull request #99 . If you download the code from the master branch of this repository, you'll have the latest updates.

mlavik1 commented 2 years ago

Thanks for replying :) I really should update the Asset Store version now. I'll keep this issue open until it's done (should be easier now after I added a script for generating a unitypackage)

louis-ake commented 2 years ago

Thank you for your quick replies. I cloned the repository with the intention of building from the master branch, but the python build script did not produce anything. Instead i downloaded the latest release from here and swapped in the changed files, which now works. Note when I imported the latest release there were a number of errors in the SimpleITKManager script, and since I do not need this functionality I just deleted the script and commented out references to it. Everything works fine so far.

Thank you for the package and your help in setting it up. Once there is a release with this bug fix in it I will upgrade to that.

louis-ake commented 2 years ago

leaving open due to your comment above

mlavik1 commented 1 year ago

Hi! I'm closing this now, since the asset store version was updated a while back (I forgot to update this task, sorry!). Please let me know if you still notice any issues.