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

Picking support #154

Open
lilleyse opened this issue Feb 15, 2023 · 6 comments
Open

Picking support #154

lilleyse opened this issue Feb 15, 2023 · 6 comments
Assignees

Comments

@lilleyse
Copy link
Contributor

Implement raycast picking similar to Cesium for Unreal / Unity so that it's possible to do things like click an OSM building and view its metadata.

Requires physics support first: #153.

@timoore
Copy link
Contributor

timoore commented Feb 9, 2024

Taking a look at this and noting that it depends on #153 . Do you see using CesiumGS/cesium-native#777 as an alternative?

@lilleyse
Copy link
Contributor Author

lilleyse commented Feb 9, 2024

Do you see using CesiumGS/cesium-native#777 as an alternative?

Potentially. We should check out omni.kit.raycast.query first which doesn't depend on physics. Not sure if it works with Fabric yet.

@lilleyse
Copy link
Contributor Author

lilleyse commented Feb 9, 2024

@lilleyse
Copy link
Contributor Author

lilleyse commented Feb 14, 2024

@timoore do you know if the ray cast query returns the path of the Fabric prim? If it doesn't we'll likely need to postpone this feature until that capability is supported.

@timoore
Copy link
Contributor

timoore commented Feb 14, 2024

@timoore do you know if the ray cast query returns the path of the Fabric prim? If it doesn't we'll likely need to postpone this feature until that capability is supported.

The raycast query result has properties for get_target_usd_path, instance_id, and primitive_id. I don't know if that is all completely specific to USD or would return sensible results for a Fabric prim.

@timoore timoore self-assigned this Feb 15, 2024
@lilleyse
Copy link
Contributor Author

A related feature request: get the position of the clicked point (or closest vertex) and provide it back to the user as longitude/latitude/height.

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

No branches or pull requests

3 participants