Hi,
I encountered an issue where Arnold does not render subdivision information when rendering a Gaffer-exported cube.usd in Maya. It seems the subdivision iteration and subdivision type information might not be written in the format Arnold expects.
To investigate, I exported a cube from Gaffer and Maya using Arnold 7.3.5.0 and noticed differences in the USD data, particularly in the subdivision information. ( highlighted in the attached snapshot )
To confirm, I manually modified the Gaffer-exported USD file by adding the following lines:
uchar primvars:arnold:subdiv_iterations = 3After this change, the Gaffer-exported USD was rendered correctly in Maya with subdivision settings.
Is this something that needs to be addressed in the GafferSceneWrite or USDLayerWrite nodes? We would greatly appreciate your assistance in resolving this problem.
Thanks in advance for your support!
- Sudarshan
Gaffer's attributes predate the USD ones here, and we chose to prefix them with the Arnold node type they refer to - 'polymesh:subdiv_iterations' rather than just 'subdiv_iterations'. Unfortunately, when arnold-usd came along it chose a different convention. Our intention is to rejig Gaffer to align with the USD conventions, but as usual the problem is getting there without breaking existing use cases, so this isn't an especially high priority for us right now. In the meantime, you may have some luck using a ShuffleAttributes node to shuffle from 'ai:polymesh:subdiv_iterations' to 'ai:subdiv_iterations'. I don't know if the difference in data types (int vs uchar) will matter there - let us know what you find.
Also, UVs seem to be missing in the gaffer written sube.usd, I don't know if that's the bug bug, but I wanted to report this as well.
On Tuesday, November 26, 2024 at 9:12:05 PM UTC+5:30 Sudarshan Havale wrote:
Hi,
I encountered an issue where Arnold does not render subdivision information when rendering a Gaffer-exported cube.usd in Maya. It seems the subdivision iteration and subdivision type information might not be written in the format Arnold expects.
To investigate, I exported a cube from Gaffer and Maya using Arnold 7.3.5.0 and noticed differences in the USD data, particularly in the subdivision information. ( highlighted in the attached snapshot
To confirm, I manually modified the Gaffer-exported USD file by adding the following lines:
uchar primvars:arnold:subdiv_iterations = 3token primvars:arnold:subdiv_type = "catclark"After this change, the Gaffer-exported USD was rendered correctly in Maya with subdivision settings.
Is this something that needs to be addressed in the GafferSceneWrite or USDLayerWrite nodes? We would greatly appreciate your assistance in resolving this problem.
Thanks in advance for your support!
- Sudarshan
--
You received this message because you are subscribed to the Google Groups "gaffer-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gaffer-dev+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/gaffer-dev/bc0cf48d-9014-42ec-9aec-52e1d029c128n%40googlegroups.com.
Hi John,
Thank you for your response.
I understand your point. Currently, I’m not aware of any ShuffleAttributes node in Maya, but I’ll double-check and get back to you. I’ll also try your other two suggestions and share my findings in this thread.
Thanks again! :)
Sudarshan
Currently, I’m not aware of any ShuffleAttributes node in Maya, but I’ll double-check and get back to you.