https://github.com/gillesferrand/Unity-RayTracing
Raw File
Tip revision: 6e4bc157fea0a97b12e6f5f8332dced67b89d5e1 authored by Gilles Ferrand on 26 October 2017, 09:02:01 UTC
added Python script to generate mock data cubes
Tip revision: 6e4bc15
README.md
# Unity-RayTracing
Demo of volume rendering a data cube in Unity by performing ray tracing on the GPU

The Loader script reads a raw binary file as a 3D texture, assigns the texture to the VolumetricData material of the Data Cube object, and saves it as an asset for re-use.
The RayCaster shader performs volume rendering on the GPU, by casting rays inside the cube and sampling the 3D texture along each ray. It includes slicing and thresholding of the data cube.
The Transformer script provides basic runtime interaction using a mouse and keyboard: rotate, translate, and scale the cube. 

This demo was made as part of an astronomy project, see report at www.arxiv.org/abs/1607.08874
back to top