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

Add missing scale factor to instanced translations #1499

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

j9liu
Copy link
Contributor

@j9liu j9liu commented Aug 15, 2024

Instanced translations were missing the positionScaleFactor, which made instances stack on top of each other incorrectly. Thanks @WxpGiser for the fix!

This fixes the translation errors in CesiumGS/cesium-native#942, but there are still lingering issues, so I'll leave that open for now.

@kring
Copy link
Member

kring commented Aug 15, 2024

Thanks @WxpGiser and @j9liu! And sorry to everyone that I missed this in #1465. This looks good to me, I'll merge it as soon as CI is happy.

@kring kring merged commit 346daef into main Aug 16, 2024
50 of 52 checks passed
@kring kring deleted the fix-instanced-translations branch August 16, 2024 08:24
@timoore
Copy link
Contributor

timoore commented Aug 22, 2024

Sorry that I missed this... I don't think I want to scale the glTF instance translation directly this way. It should be built into the matrix that is currently called the yInvertMatrix. This is for consistency with the approach I described in my talk, at the very least, and may be more correct as well. I'll look at it in CesiumGS/cesium-native#942.

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

Successfully merging this pull request may close these issues.

3 participants