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

Exposed Native Engine capabilities to Babylon.js, fixes morph targets on Babylon Native Android #12515

Merged
merged 7 commits into from
May 16, 2022
Merged

Exposed Native Engine capabilities to Babylon.js, fixes morph targets on Babylon Native Android #12515

merged 7 commits into from
May 16, 2022

Conversation

SergioRZMasson
Copy link
Contributor

@SergioRZMasson SergioRZMasson commented May 11, 2022

Overview

Morph targets are currently failing on Babylon Native when running on Android since bgfx does not support Texture2D arrays for Android API BGFX_CONFIG_RENDERER_OPENGLES lower than 31 (currently set to 30). The appropriate way of handling this type of problem would be to check bgfx capabilities and handle it appropriately on the JS side by setting canUseTextureForTargets property at MorphTargetManager. This PR exposes all capabilities info provided by the Native Engine so they can be accessed by the js NativeEngine and appropriately handled by Babylon.js

Aditions

@SergioRZMasson SergioRZMasson requested review from RaananW and bghgary May 11, 2022 15:37
@SergioRZMasson SergioRZMasson changed the title Added native engine capabilities, added texture array size capability Exposed Native Engine capabilities to Babylon.js, fixes morph targets on Babylon Native Android May 11, 2022
@azure-pipelines
Copy link

Please make sure to tag your PR with "bug", "new feature" or "breaking change" tags.

Copy link
Member

@RaananW RaananW left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waiting for @sebavan review as well before merging

@azure-pipelines
Copy link

Please make sure to tag your PR with "bug", "new feature" or "breaking change" tags.

@azure-pipelines
Copy link

Please make sure to tag your PR with "bug", "new feature" or "breaking change" tags.

@azure-pipelines
Copy link

Please make sure to tag your PR with "bug", "new feature" or "breaking change" tags.

@azure-pipelines
Copy link

Please make sure to tag your PR with "bug", "new feature" or "breaking change" tags.

@azure-pipelines
Copy link

@azure-pipelines
Copy link

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@azure-pipelines
Copy link

@azure-pipelines
Copy link

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@azure-pipelines
Copy link

@SergioRZMasson SergioRZMasson marked this pull request as ready for review May 16, 2022 17:10
@SergioRZMasson SergioRZMasson merged commit 824cc9c into BabylonJS:master May 16, 2022
@SergioRZMasson SergioRZMasson deleted the bugfix/native-morph-targets-android branch May 16, 2022 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Morph targets are broken on Android.
4 participants