NinjaMark Posted January 10, 2017 Share Posted January 10, 2017 Hi, I'm having an issue getting the method getBoundingInfo() working with the GLTF Loader plugin. Using other formats this data would be automatically set when using ImportMesh, for instance with the skull.babylon example: 1. BoundingInfo 1. _isLocked:false 2. boundingBox:BoundingBox 3. boundingSphere:BoundingSphere 4. isLocked:false 5. maximum:Vector3 1. x:23.7722 2. y:30.4701 3. z:29.0242 6. minimum:Vector3 1. x:-23.7722 2. y:-30.4938 3. z:-29.0169 Using the same code but replacing skull.babylon with duck.gltf : 1. BoundingInfo 1. _isLocked:false 2. boundingBox:BoundingBox 3. boundingSphere:BoundingSphere 4. isLocked:(...) 5. maximum:Vector3 1. x:0 2. y:0 3. z:0 6. minimum:Vector3 1. x:0 2. y:0 3. z:0 All values get set to 0, including those on boundingBox and boundingSphere. I'm seeing the same result with other GLTF models I've tried. Is this a bug in the GLTF loader, or is there something else I need to do to set the bounding info for these meshes? Quote Link to comment Share on other sites More sharing options...
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.