Skip to content

Camera depth error when use Ray Tracing #252

@ZanxinChen

Description

@ZanxinChen

I found that when ray tracing is enabled in the SAPIEN environment (i.e., using sapien.render.set_camera_shader_dir("rt")), I am unable to successfully filter out pixels at infinity when retrieving the depth map from the camera.

Specifically, I can't use the under code to filter out points beyond the far plane of the camera frustum:

position = camera.get_picture("Position")
position[..., 3] == 1

All values of position[..., 3] are less than 1.

Is there any solution to this issue? Thank you very much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions