Autodesk / maya-usd

A common USD (Universal Scene Description) plugin for Autodesk Maya
772 stars 201 forks source link

Export USDZ with subdivision disabled, and tessellation enabled? #1591

Open AndrewSB opened 3 years ago

AndrewSB commented 3 years ago

I'm working with a model that I'm exporting to USDZ using Maya. OpenSubdiv is having issues rendering the model, so I wanted to try turning off subdivision, and only using GPU tessellation.

I was originally using the default subdivision option (-defaultMeshScheme catmullClark) which has both subdivision & tessellation enabled for the model. I tried switching my export to -defaultMeshScheme none, which seems to have disabled both subdivision and tessellation. I also tried loop and bilinear but they both enable subdivision & tessellation.

Is there a set of options I can pass when I export to only disable subdivision, but leave tessellation enabled?

santosg87 commented 3 years ago

@andrewbutts we currently don't have full support for opensubdiv on Maya, are you having problems rendering the model in maya or outside of it? this might be a problem on the import side, instead,

are you able to share a sample file with us, so we can try to investigate a bit deeper?

thank you!

AndrewSB commented 3 years ago

thanks for looking into this @santosg87! can i email you a fbx file, and the resulting usdz? i don't have a sample file that i can share publicly

AndrewSB commented 3 years ago

i'm having issues rendering the file in SceneKit, loaded through Apple's ModelIO, my temporary workaround has been to set the subdivisionLevel on the geometry to 0 inside SceneKit

santosg87 commented 3 years ago

hi @andrewbutts an FBX file would be great! if you can email that to me, i will dig a bit deeper. I am looking into SceneKit as well to see if i can reproduce it on my side. :)

AndrewSB commented 3 years ago

just emailed!

santosg87 commented 3 years ago

@andrewbutts thank you for the files! we are investigating what are better ways to handle this. at the moment, this is due to lack of support on mayaUSD indeed. :)