My artist give me a box in FBX format, and I put it in unity and see it looks OK,
but when I load the FBX file using FBXLoader, the box shows all black like this: https://imgur.com/pgilfe1
I don’t know much about FBX format, but in unity, the material is reference a 01.psd picture, which is beside the fbx file, so maybe three.js does not suporte .psd format file ?
Another thing I want to know is , when I loaded the fbx model, then I call object.geometry.computeBoundingBox(), and then scene.add(object) , the model whill disappear
if I remove the computeBoundingBox() line, everyting works fine, but I could not get my model size this way
thanks
But I found the boundingBox 's size is not changed when I scale the mesh, with your code, before or after I set mesh scale, the result is the same, so, am I lost something ?
The bounding box for the geometry will not change as the scale changes. You would need to multiply your bounding box by your scale in order to get the new value.
It sounds like what you really want is a BoxHelper, which you add your base object to and it calculates the box around the object and it’s children, taking the transforms into account: https://threejs.org/docs/#api/helpers/BoxHelper