Closed nicholscrawford closed 1 year ago
onComplete( result.scene );
OBJLoader returns an Object3D - not an object with a "scene" field. See the OBJLoader docs. I would make sure you're using the mesh loader correctly by using some log statements first.
Oh thank you!
Resolved by removing .scene. Thanks for the tips, I'm new to js.
Trying to load an iiwa URDF, with .obj files. It seems like I need to provide my own loader callback, which I did like this:
And otherwise everything else is basically copied exactly from the example. The only other thing I noticed that was weird was the bounding box seems to have infinite lengths, but even setting the robot position to 0,0,0 didn't seem to fix it. That seems to suggest the geometry is not loading, but I'm not getting any errors. Is this a proper callback? Is .obj built in?