Replies: 2 comments 3 replies
-
As far as I know, the shape of the raw file is 256X256X256X4 where 256 is the cube resolution and 4 channels are raw radiance and sigma values at that 3D location of the cube. Basically, it creates sample points(XYZ) inside a cube of resolution 256 and returns the radiance and sigma for each of the points. I have a question do you know how can call the "save raw volume" function using python API? I got the raw volume using the GUI but I want to get it using python API. |
Beta Was this translation helpful? Give feedback.
3 replies
-
A quick matlab snippet to read the volume:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks a lot to all people involved in instant-ngp. It's really a great job !
I am trying to use instant-ngp with my one picture sets, in order to build printable 3D models. I was used to standard photogrammetric tools (Metashape, MicMac), but I wanted to try NeRF, which is supposed to deal better with specular reflection issues.
I used the suggested scheme: ColMap -->colmap2nerf.py--> instant-ngp (version v1.0dev on Windows10) with default settings.
Rendering results (3D views in the GUI) are very impressive after a few minutes, but the meshes built with "Mesh it" fonction are very disappointing (unusable !).
So I tried to investigate exported data (I am developing in C++).
Among them, density PNG structure is easy to understand. I started by observing the density values along a 3D ray tracing (using an interpolation fonction for the density cube). I expected to get a very sharp transition between the model surface and the outside, but it's not, so that it is difficult to fix a density value to locate the model surface.
Now, I am wondering about using the raw volume output. Presently, the "Save raw volume" function gives me a set of 5 files (256x256x256_0.bin to 256x256x256_4.bin), each one containing 256x256x256x16 bytes (probably 4 floating values for each cube point ?).
I did not find any information about these binary data files. Could any one give some clues ? (and ideally the way to get the exact model surface from them...). .
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions