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

Convert octahedral compressed normals/tangents on 3.x meshes #56330

Merged
merged 1 commit into from
Jan 8, 2022

Conversation

nikitalita
Copy link
Contributor

When Octahedral compression was added to the 3.x branch (#46800), the functionality to convert 3.x meshes upon import was not updated. As a result, it is broken on meshes that have Octahedral compression enabled (this is enabled by default in 3.4).

This PR adds converting octahedral compressed normals and tangents in old 3.x format meshes back into their uncompressed form upon import.

Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

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

You added modules/gdsdecomp by accident in this PR – it should be removed.

@nikitalita nikitalita force-pushed the convert-old-octahedral branch from a90baf0 to 01629ea Compare December 30, 2021 00:35
@nikitalita
Copy link
Contributor Author

fixed.

@nikitalita nikitalita force-pushed the convert-old-octahedral branch from 01629ea to 41e577a Compare December 30, 2021 00:41
@clayjohn
Copy link
Member

Cc @The-O-King

Copy link
Contributor

@The-O-King The-O-King left a comment

Choose a reason for hiding this comment

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

This all looks great to me as well! Hopefully we'll have octahedral normals/tangent supported in 4.x soon as well too!

scene/resources/mesh.cpp Outdated Show resolved Hide resolved
scene/resources/mesh.cpp Outdated Show resolved Hide resolved
scene/resources/mesh.cpp Outdated Show resolved Hide resolved
@nikitalita nikitalita force-pushed the convert-old-octahedral branch from 41e577a to 209b5b4 Compare January 8, 2022 05:27
@nikitalita
Copy link
Contributor Author

Fixed

@akien-mga
Copy link
Member

There's a third-party submodule that should be removed.

@nikitalita nikitalita force-pushed the convert-old-octahedral branch from 209b5b4 to 92a0cbc Compare January 8, 2022 12:04
@nikitalita
Copy link
Contributor Author

fixed

@akien-mga akien-mga merged commit 1f29588 into godotengine:master Jan 8, 2022
@akien-mga
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

5 participants