USDForUnity icon indicating copy to clipboard operation
USDForUnity copied to clipboard

Alembic file doesn't show mesh

Open JakobRasmussen opened this issue 8 years ago • 5 comments

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?

JakobRasmussen avatar Jan 26 '17 08:01 JakobRasmussen

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-saint avatar Jan 26 '17 08:01 i-saint

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?

0xb1dd1e avatar Feb 07 '17 04:02 0xb1dd1e

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.

0xb1dd1e avatar Feb 07 '17 04:02 0xb1dd1e

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..

i-saint avatar Feb 07 '17 14:02 i-saint

The build instructions on this page are reliable for Windows: https://github.com/vfxpro99/usd-build-club/wiki/USD-on-Windows

meshula avatar Feb 08 '17 06:02 meshula