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

Fix sign of tbn generator that caused normal map flipping in some situations #2140

Merged
merged 7 commits into from
Nov 10, 2023

Conversation

riccardobl
Copy link
Member

@riccardobl
Copy link
Member Author

Tested with the ogre format, it displayed the same behavior as gltf.
NB: tangents need to be generated with parity in the ogre exporter
image

@codex128 when you can, please look into this and let me know your opinion on this patch

Copy link
Contributor

@codex128 codex128 left a comment

Choose a reason for hiding this comment

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

In general, these changes look good to me, although I don't know enough about normal maps to be absolutely sure.

In order to avoid further problems arising, I think the normal type parameter should be explained on the wiki. This issue is just subtle enough for new users to trip over without realizing it. 😉

@stephengold stephengold added the defect Something that is supposed to work, but doesn't. Less severe than a "bug" label Nov 9, 2023
@stephengold stephengold added this to the Future Release milestone Nov 9, 2023
@riccardobl riccardobl merged commit b6735af into jMonkeyEngine:master Nov 10, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Something that is supposed to work, but doesn't. Less severe than a "bug"
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants