Skip to content

Commit

Permalink
Update README_Unity.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kwea123 authored May 24, 2020
1 parent 9a3fda8 commit 6001f11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README_Unity.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ You will get `*.png` files and corresponding `depth_*` files. Now import the ima

## VolumeRender

Use `extract_mesh.ipynb` (not `extract_color_mesh.py`!) to find the tight bounds for the object as for mesh generation, but this time stop before the cell "Extract colored mesh". Remember to set `N=512` in the cell "Search for tight bounds of the object" and comment out the lines for visualization. Now run the cell "Generate .vol file for volume rendering in Unity", after that, you should obtain a `.vol` file, which you can import to my Unity project and render.
Use `extract_mesh.ipynb` (not `extract_color_mesh.py`!) to find the tight bounds for the object as for mesh generation (See [this video](https://www.youtube.com/watch?v=t06qu-gXrxA&t=1355)), but this time stop before the cell "Extract colored mesh". Remember to set `N=512` in the cell "Search for tight bounds of the object" and comment out the lines for visualization. Now run the cell "Generate .vol file for volume rendering in Unity", after that, you should obtain a `.vol` file, which you can import to my Unity project and render.

If you want to render in your own project, you need the script [LoadVolume.cs](https://github.com/kwea123/nerf_Unity/blob/master/Assets/Editor/LoadVolume.cs) which reads this own-defined `.vol` into a `Texture3D`.
If you want to render in your own project, you need the script [LoadVolume.cs](https://github.com/kwea123/nerf_Unity/blob/master/Assets/Editor/LoadVolume.cs) which reads this own-defined `.vol` into a `Texture3D`.

0 comments on commit 6001f11

Please sign in to comment.