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

Point vs Vertex normals (FTV-199) (USDU-227) #86

Open
ssteinbach opened this issue May 4, 2019 · 3 comments
Open

Point vs Vertex normals (FTV-199) (USDU-227) #86

ssteinbach opened this issue May 4, 2019 · 3 comments

Comments

@ssteinbach
Copy link

It looks like the 'import' normals option doesn't interpret point vs vertex normals correctly. Unity expects the number of normals to equal the number of points. So in houdini, add a vertex split SOP (set to "N" and promote) after your normal sop. Then delete the N vertex attr. I sent a test USD file to @jcowles with a test case

@mfe mfe added the bug label May 29, 2019
@jcowles
Copy link
Contributor

jcowles commented May 30, 2019

These two cubes should look the same when imported:
weighted_companion_test_cube.zip

@mfe mfe changed the title Point vs Vertex normals Point vs Vertex normals (FTV-199) Jun 12, 2019
@lucillecaillaud
Copy link
Contributor

Hey guys, I'm a bit confused about this ticket.

I opened the usd file you linked Jeremy (I guess it is suppose to reproduce the problem) but I observe two things: (1) Opened in Unity I see the two cubes look the same (like they should if I understand correctly), (2) opened in maya, the normals are very different for both cubes and so render looks different.

I don't know if I missed something or if there is something that I'm doing wrong (maybe recent changes in the code fixed the issue?).

Thanks for your answers!

@Tautalis
Copy link

I can confirm this is still a problem. In my case it manifest itself when baking lightmaps. Basically with one cube in the usd file (produced by Houdini18) the cube looked fine as did the uv map produced by the "Generate Lightmap RVs", however when the lightmap was baked it was seriously wrong (black bands across the faces of the cube). However, after applying the fix suggested by ssteinbach (thanks!!) the lightmap baking worked correctly.

@etienne-unity etienne-unity added JIRA and removed JIRA labels Aug 11, 2022
@etienne-unity etienne-unity changed the title Point vs Vertex normals (FTV-199) Point vs Vertex normals (FTV-199) (USDU-227) Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants