Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to extract the depth for the whole scene ?? #341

Open
ArghyaChatterjee opened this issue Feb 27, 2024 · 1 comment
Open

Comments

@ArghyaChatterjee
Copy link

Hello @TontonTremblay ,

I was wondering is it possible to get a 16-bit depth image of the whole scene during NVISII export ??

RGB Image:
00001

Depth Image:
00001 depth

Is this a 32-bit depth image of the object only (by looking at the depth gradient of the object)? Is there any way to get the full depth of the scene during export. rather than only the depths of the objects ??

I am just adding this code block to export the depth image:

        # Export depth information to .depth.exr
        visii.render_data_to_file(
            width=opt.width,
            height=opt.height,
            start_frame=0,
            frame_count=1,
            bounce=int(0),
            options="depth",
            file_path = f"{opt.outf}/{str(i_render).zfill(5)}.depth.png"
        )

Another question is that is it possible to get other values like normals, optical flow, semantic segmentation etc. out of NVISII ??

@TontonTremblay
Copy link
Collaborator

https://github.com/owl-project/NVISII/blob/master/examples/19.depth_map_to_point_cloud.py check this example, it should be pretty easy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants