USDForUnity
USDForUnity copied to clipboard
Alembic file doesn't show mesh
When importing an Alembic file in a scene in Unity using the importer (Assets -> Import USD or Alembic) no mesh is showing in Unity. The .abc file is placed in the StreamingAssets folder.
The file plays fine in Houdini and using the importer of this project: https://github.com/unity3d-jp/AlembicImporter
Do we manually need to add additional components or are we missing something?
there is a known issue that loading Alembic sometimes fails. it is not so often on my environment but it seems that it happens quite often on some environments.. (its highly likely a Windows specific bug on Pixar's UsdAbc) I'm trying to fix it right now and I'll include its fix on next release.
I'm in the same state as @JakobRasmussen
ABC files that do load with your AlembicImporter fail in USDforUnity running under Windows (Unity 5.6.0b6)
A game object is created with name of the ABC file, and it does have a 'Usd Stream' component, but this is just a root object with no children nodes (no Usd Xforms, no Usd Meshes)
Any suggestions on things to check first before I start to dig into the source?
So after I sent that message I went back and did another clean build of the Debug target, set a bunch of breakpoints in c++ and c# code, loaded my scene and prepared myself to so some tracing. Of course it worked without a hitch.
Rebuild the 'Master' target, take out the breakpoints, go back and try again, and its still working.
So I'm up and running, but let me know if you need help tracking this down. I'd blame myself for improper setup if you hadn't said it sometimes fails.
UsdStage::CreateNew() in Context::createStage() return invalid stage when you encountered the problem. as I mentioned, its highly likely a Windows specific bug on Pixar's UsdAbc. that means you have to build USD by yourself if you want to track down the problem. it is not trivial task..
The build instructions on this page are reliable for Windows: https://github.com/vfxpro99/usd-build-club/wiki/USD-on-Windows