How do I have my obj loaded properly centered at 0,0,0 and scaled?

If you have an app where you don’t know which object will come in, and in what condition, or even which format it is, you could utilize boundingBox of the object.

Specifically, you would calculate bounding box from every mesh in the scene, and you will find the center point of the object/structure or whatever.

I already explained the process in some of the previous threads with playground example.

Hopefully it helps you out.

2 Likes