Unity-RayTracing icon indicating copy to clipboard operation
Unity-RayTracing copied to clipboard

How to make the skull cube?

Open zhang71896 opened this issue 8 years ago • 9 comments

Dear gillesferrand Hi, my friend , may i ask you how to make the skull cube? : )

zhang71896 avatar May 04 '17 07:05 zhang71896

What is that lol?

Quentin-H avatar May 06 '17 04:05 Quentin-H

your assets skull.asset, my older brother .

zhang71896 avatar May 09 '17 07:05 zhang71896

Hi, the asset file was generated by the "loader" script from the raw binary file (which I got from some other demo). Activate the script, and run the demo, and it will be regenerated. With this script you can convert your own data to 3D textures.

gillesferrand avatar Aug 26 '17 07:08 gillesferrand

hi, sorry I am asking how we must create skull cube from for example 100 tif images is it possible to explain it more?

rezadarooei avatar Nov 09 '17 23:11 rezadarooei

Hi, my demo directly loads a 3D data cube. The skull file I re-used from the original XNA demo by Kyle Hayward. My own files I make from Python or Fortran. You could use any data software that can output binary files. Alternatively, you may prefer to load the set of individual images inside Unity, this is what Brian Su is doing in the first version of his Unity project. See more discussion in the forum: https://forum.unity.com/threads/3d-volume-rendering-using-raymarching-demo.120780/

gillesferrand avatar Nov 10 '17 00:11 gillesferrand

Hi, I don't know of a dedicated software for doing this, myself I would stack the images by hand with SciPy.

gillesferrand avatar Apr 25 '18 11:04 gillesferrand

Sorry I can't take the time to teach you how to use Python (and your hurry doesn't affect my pile of duties).

gillesferrand avatar Apr 25 '18 13:04 gillesferrand

I never had it, my data come in the form of 3D cubes.

gillesferrand avatar Apr 25 '18 13:04 gillesferrand

@gillesferrand thanks so much for sharing your code. It is by far the most straight forward implementation I have found.

I know this question was posted quite some time ago but @rezadarooei if you are still looking for a way to generate useful data files you can try fiji (http://fiji.sc/) an implementation of ImageJ. You can use your individual images, convert them to a stack and save them as an 8bit nrrd file. I have successfully used nrrd files using this library.

viche72 avatar May 14 '18 10:05 viche72