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 129 forks source link

volume rendering of .obj gameobject (not DICOM) #221

Open gekigek99 opened 1 year ago

gekigek99 commented 1 year ago

I would like to implement a sort of virtual scintigraphy machine that renders an xray image of a 3-4 objects on the scene.

What are the steps to visualize that? How can I assign a "density" to an imported .obj gameobject? without necessarily taking it from a dicom file?

immagine

here there is a simple attempt playing with some gameobjects bones and transparency... but no density was ever considered/associated with the models. Even just attributing 3 different density values: bones, skin and metal rod, would be fine).

Thanks

mlavik1 commented 12 months ago

Hi!

That's a good question. Since the nature of and .obj and .dcm file is quite different (DICOM stores evenly spaced density values, while .obj/wavefront stores a surface mesh) it's not really a trivial problem to convert form .obj to DICOM, and the result may not look great if you're able to do it (since your source data only contains surfaces..).

I wonder if you could use 3D Slicer for this maybe? I found someone asking the same question here: https://discourse.slicer.org/t/create-volumes-from-3d-model-obj-file/5463 I've never done this, but the suggested answer might work (using the segment editor to fill in data values)