The 3D object created by assetcontainer. Addalltoscene() can be displayed completely, while the 3D object created by assetcontainer. Instantiatemodelstoscene() cannot be displayed if the angle is not right. I compared the difference between the two and found some rules,this is a 3D object created by addalltoscene(). Its area is like this:
,I use my own debugging tools, using this: [enable/disable bounding box mode],By the way, what does the 3d blue box in this debugging tool represent?This is the project file:demo.zip (3.0 MB) ,Looking forward to your answer!
Unfortunately I can only answer part of your question
This is a bounding box gizmo used to rotate or scale the selected model.
In your first image you have selected the _root_ node for the imported model, whereas in the second you have selected the bot_root_0 node, hence the gizmo is in different positions. Both of these are parents to further nodes which you can view and select using the + next to them.
Using the Inspector you can clearly find the difference between the two. My problem now is that I do n’t know why the two are different. This may cause the model I copied can only see a part of it at a certain angle. Thank you for replying and looking forward to your answer. .
@Deltakosh to me it looks like a rotation is not applied (or applied 2 times) when instantiateModelsToScene is called. Can you please point me where the transform datas are copied?
It looks like if the first node to clone and instanciate is not a mesh, the bounding box is not computed correctly. It’s skipped and BVH is not correct. Still investigating…