Issue Adding Custom Attributes to Entity Using A3D API

Hello everyone,

I am currently trying to add custom attributes to an A3DEntity, but I’m encountering difficulties when trying to export the model to GLTF or GLB format.

What I’m Trying to Do:

  1. Add custom attributes to an entity in A3D.
  2. Ensure these attributes are included when the entity is exported to GLTF or GLB.

Code Example:

I have written code to add attributes using the A3DMiscAttributeCreate and A3DRootBaseSet functions to attach custom attributes to the entity, but when I try to export it, the attributes are not included in the GLTF/GLB export.

My Question:

Is it possible to add custom attributes to an A3DEntity and ensure they are included in the GLTF/GLB export? If so, could you provide any guidance or point out any necessary steps that I might be missing?

Thank you in advance for your help!

Hello @amrut.pujari
Unfortunately, HOOPS Exchange does not currently support exporting attributes to GLTF/GLB format.
However, if you want to verify that your code successfully creates the attributes, you can do so by exporting the model to PRC format. Also, the CreatePRCBrepWithGeometry sample is included in the HOOPS Exchange package. This sample demonstrates how to create attributes, which can help you confirm that your implementation is correct.
If you have any further questions please let me know.

Best Regards,
Man