-
Notifications
You must be signed in to change notification settings - Fork 100
Generate tangents #608
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
base: main
Are you sure you want to change the base?
Generate tangents #608
Conversation
… Added editor support for forcing tangent generation.
Just to clarify @david-lively, is this meant to build on #596 or replace it? Or is it entirely separate? |
@j9liu This replaces 596. |
Thanks @david-lively, can you close #596 to avoid confusion? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @david-lively ! I still have to test this out locally, but I have some suggestions after taking a pass over the code.
I tried loading the NormalTangentTest sample model on this branch, but it looks off: ![]() Here's the simple tileset I made to wrap around it; you can use a georeference with True Origin to more easily visualize it. |
Let me do a clean rebuild and test again with the above. It's possible that the native part got messed up somehow while jumping branches |
Sadly still seeing the same behavior after a clean build. I also tried this with the NormalTangentMirrorTest model. It's kind of better, but still a bit wonky... ![]() |
Moving this out of this month's release because it's not quite ready yet. |
Description
When tangents are missing but required (specifically, when the tileset is lit, or has a normal map but no tangents), they will be generated on the CPU when the vertex buffer is prepared. An option
alwaysIncludeTangents
is added toCesium3DTileset
to force tangent generation.Note: requires changes from this
cesium-native
branch: https://github.com/CesiumGS/cesium-native/tree/generate-tangentsAuthor checklist
CHANGES.md
with a short summary of my change (for user-facing changes).Remaining Tasks
Testing plan