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

Transform applied to RenderInstances are incorrect when GraphicTemplate is created from a GLTF #7454

Open
mdastous-bentley opened this issue Dec 6, 2024 · 1 comment
Labels
bug Something isn't working display

Comments

@mdastous-bentley
Copy link
Contributor

Describe the bug
When creating instances using a template created from a GLTF, transforms appear to be applied based on the GLTF coordinate system instead of the iModelConnection's spatial coordinate system.

To Reproduce

  1. Get this branch
  2. Run Display-Test-app
  3. Click on the blank connection button in the tool bar.
  4. Click on the smiling face icon in the tool bar.

Expected behavior
You should have 3 spheres in the view: red, blue, green. Each sphere has it's center positioned at points described by the structure returned by
the getCirclesData function:
Image

Each sphere should contains a model, creating from instancing a GLTF template:
Image
Image

You will notice, the green sphere has no gltf instance inside it, instead it got positioned incorrectly:
Image

It should be placed at the center of the sphere, like the two others spheres. The problem arise because the position of the green sphere has a delta value added on the Z-axis.
Our assumption is that, the axis orientation is based on the GLTF coordinate system.

@pmconne pmconne added bug Something isn't working display labels Dec 6, 2024
@pmconne
Copy link
Member

pmconne commented Dec 6, 2024

@markschlosseratbentley @danieliborra

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working display
Projects
None yet
Development

No branches or pull requests

2 participants