dr3d Posted October 4, 2015 Share Posted October 4, 2015 It appears InstancedMesh positions, rotations, and scaling are serialized as objects but deserialized as Arrays? contrast line 725 of babylon sceneSerializer.ts with line 863 of babylon.babylonFileLoader.ts Once I changed serializer to send those things as Arrays my scene would load properly Quote Link to comment Share on other sites More sharing options...
RaananW Posted October 5, 2015 Share Posted October 5, 2015 They should be arrays. I'll look into that. The fix should be rather simple Quote Link to comment Share on other sites More sharing options...
RaananW Posted October 5, 2015 Share Posted October 5, 2015 Fixed - https://github.com/BabylonJS/Babylon.js/pull/726 . Coming soon to Babylon near you! Quote Link to comment Share on other sites More sharing options...
dr3d Posted October 6, 2015 Author Share Posted October 6, 2015 Thanks for change - one tiny issue remains. If Instance has no rotationQuaternion, then I get an error at line 727 in babylon.sceneSerializer.ts. And I think the same check might need to be added for rotation field as well Quote Link to comment Share on other sites More sharing options...
RaananW Posted October 7, 2015 Share Posted October 7, 2015 Yep, got it. Expect a fix Fixed. Wingnut 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.