Quantcast
Channel: Bugs Latest Topics
Viewing all articles
Browse latest Browse all 760

GLTF Loader not setting BoundingInfo

$
0
0

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?


Viewing all articles
Browse latest Browse all 760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>