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

Fixes normals of the generated geometry from CSGPolygon3D (follow along Path3D) #48412

Closed

Conversation

aole
Copy link
Contributor

@aole aole commented May 3, 2021

Fixed normals by inverting how the faces were getting created when CSGPolygon3D is set to mode Path and followed along a Path3D. Fixes #48408
The order of vertices have been reversed for the creation of faces. Fixed the face normal at the ends of the path also (reversed the vertices order).

image

…GPolygon3D is set to mode Path and followed along a Path3D. Fixes godotengine#48408
@aole aole requested a review from a team as a code owner May 3, 2021 15:48
@aole
Copy link
Contributor Author

aole commented May 3, 2021

Let me know if this is not how the issue needs to be addressed. I just reversed the order of vertices to flip the face normals.

@Calinou Calinou added bug cherrypick:3.3 cherrypick:3.x Considered for cherry-picking into a future 3.x release topic:3d topic:core labels May 3, 2021
@Calinou Calinou added this to the 4.0 milestone May 3, 2021
@Calinou
Copy link
Member

Calinou commented May 3, 2021

cc @madmiraal

@BastiaanOlij
Copy link
Contributor

Often noticed that you had to flip the faces (which is an option in CSG) or in certain modes it would end up inside out. If this fixes that issue we need to be aware that this is a breaking change where lots of people will need to uncheck that option.

@akien-mga akien-mga removed cherrypick:3.x Considered for cherry-picking into a future 3.x release cherrypick:3.3 labels Aug 12, 2021
@akien-mga
Copy link
Member

Superseded by #49314. Thanks for the contribution nonetheless!

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