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

LOOKDEVX-1847 - Fix broken normal maps #3307

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

JGamache-autodesk
Copy link
Collaborator

Previous work in PR #3295 broke normal mapping by pessimistically using the arbitrary tangent generator. Bring back the texcoord tangents if we detect that implicit texcoords are going to be used.

Previous work in PR #3295 broke normal mapping by pessimistically using
the arbitrary tangent generator. Bring back the texcoord tangents if we
detect that implicit texcoords are going to be used.
{
uniform token info:id = "ND_image_vector3"
asset inputs:file = @textures/mesh_wire_norm.png@
string inputs:filtertype = "closest"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No geompropvalue node, so will default to "st"

def Shader "geompropvalue1"
{
uniform token info:id = "ND_geompropvalue_vector2"
string inputs:geomprop = "st1"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In this case, since this is the geompropreader connected to the normalmap image, this will be also connected to the auto-added texcoordtangents node.

}
}
)
texCoord2f[] primvars:st1 = [(1.5051357, 0.5019881), (0.4980119, 1.5051357), (0.5019881, -0.50513566), (-0.50513566, 0.4980119)] (
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Using UVs tilted 45 and 135 degrees to make sure we are not using the arbitrary tangent generator.

@JGamache-autodesk JGamache-autodesk added the ready-for-merge Development process is finished, PR is ready for merge label Sep 5, 2023
@JGamache-autodesk
Copy link
Collaborator Author

@seando-adsk Ready for merge.

@seando-adsk seando-adsk merged commit abced0f into dev Sep 5, 2023
10 checks passed
@seando-adsk seando-adsk deleted the gamaj/LOOKDEVX-1847/fix_normalmaps_tangents branch September 5, 2023 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge Development process is finished, PR is ready for merge vp2renderdelegate Related to VP2RenderDelegate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants