After my model was loaded successfully, there was always a problem in the coordinate section, and she could not execute normally
They’re not aligned
We need a repro in the playground to help
This problem has been solved. Now the problem is that all my models are about 30,000, which is beyond the scope of my skybox. I want to know which camera can set the position near the model position and skybox can set the size of about 30,000
'm using a rotatory camera now, and I’ve set the target to about thirty thousand, but it doesn’t work very well
My current model position has been assigned, because it is more than 30,000 coordinates, out of my skybox, but it seems that skybox cannot set such a large position, and, I pulled the camera nearby to have a look, the model seems to be still messy, I do not know whether it is because of the world coordinates or local coordinates
If all your models have no parents the world and local coordinates are the same.
Without a playground the best we can suggest to find out what is happening is to experiment with some or all of the following using some or all of your models.
- When loaded set position of all models to BABYLON.Vector3(0, 0, 0). Can you see all the models even if they overlap each other?
- Use scaling on the models if needed.
- Using your knowledge of the models relative positioning set one model to have position BABYLON.Vector3(0, 0, 0) and set the other models to their correct position directly using BABYLON.Vector3(x, y, z) with number values - do not try to assign these with loaded code just try direct values
- If you do not know what the relative position of the models are do 2 with trial and error for the x, y, z values of BABYLON.Vector3(x, y, z)
- Open the inspector Display and Use the Inspector - Babylon.js Documentation, Introduction to the Inspector - video series - Babylon.js Documentation to find the actual positions of the models, this will then give you the relative position of the models
- In the inspector edit positional values.