Does ARR spatial query results with a unique Id for an entity that was hit?

RammmN 40 Reputation points
2023-10-10T08:35:34.7533333+00:00

Hello, I'm currently utilizing GLTF models to interface with ARR service.

Essentially, I possess another model in a custom format, which contains specific metadata and properties such as Length, Mass, Volume, etc., associated with various objects(with unique identifiers) within the model.

My objective is to transform my custom format into GLTF and utilize it as input for ARR.

From my research, it appears that the GLTF structure doesn't inherently include a node for maintaining unique identifiers for objects. However, GLTF documentation mentions the possibility of including application-specific data as Extras. Will ARR support the parsing and preservation of this data?

For instance, if I were to perform ARR raycasting, would the resulting hit information include the ID of the object that was hit? Moreover, would this ID match the one I added in Extras within the GLTF model?

Azure Remote Rendering
Azure Remote Rendering
An Azure service that renders high-quality, interactive three-dimensional content and streams it to edge devices in real time.
33 questions
0 comments No comments
{count} votes

Accepted answer
  1. Florian Born 111 Reputation points Microsoft Employee
    2023-10-10T16:04:06.42+00:00

    Hello!

    The answer to this question is two-fold:

    a) Converting a source mesh in ARR (fbx or gltf/glb) persists the names of the nodes in the scene graph. If you perform a raycast, you get the hit entity, so you can use its name to identify meta data in your own, client-side data base.

    b) ARR also supports per-node meta data. Meta data in ARR is a list of key/value pairs that is bound to specific nodes in the graph. If you know the entity (e.g. through raycast), you can query its meta data through an asynchronous call as documented here: https://learn.microsoft.com/azure/remote-rendering/concepts/entities#querying-metadata

    The meta data from the source file needs to be persisted during ARR conversion. This is explained briefly here: https://learn.microsoft.com/azure/remote-rendering/how-tos/conversion/configure-model-conversion#node-metadata

    Let me know if you have further questions!

    Florian

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.