arnold-usd icon indicating copy to clipboard operation
arnold-usd copied to clipboard

Hydra test_0037: Face varying normals not being read in hydra

Open sebastienblor opened this issue 1 year ago • 1 comments

Test scene from test_0037 has face varying normals set as "primvars:normals". But they seem to be skipped by Hydra when we loop through the primvars and so they don't show up in the render

sebastienblor avatar Sep 11 '23 09:09 sebastienblor

Issue synced internally to ARNOLD-14049

I had a quickl debug session and the normals are not passed to the render delegate.

The mesh /pPlatonic1/pPlatonicShape1 has a subdivisionScheme set to catmullClark, and according to the doc in https://openusd.org/docs/api/class_usd_geom_mesh.html (a not about normals)

Normals should not be authored on a subdivision mesh, since subdivision algorithms define their own normals. They should only be authored for polygonal meshes (subdivisionScheme = "none").

I guess this is the reason why the normals are not passed over.

cpichard avatar Jun 12 '24 13:06 cpichard

interesting, we can modify the test and set subdivisionScheme = "none". It won't fix the underlying problem though.

In the procedural side, since primvars:arnold:subdiv_iterations is not set, we are considering that subdiv is disabled (because that's the default behaviour in arnold)

sebastienblor avatar Jun 12 '24 14:06 sebastienblor