codeLabs-summer2021 / 3D-Model-World

A real world environment to place, view, and share all your 3D models.
https://3d-model-world.netlify.app/
2 stars 0 forks source link

Models only load at a certain distance from camera #15

Open OmarShehata opened 3 years ago

OmarShehata commented 3 years ago

The Feature

At a certain distance the loading/unloading of the models should trigger.

Why?

The scalability of the app is very important. We don't want to load any assets that we don't have to. This will allow thousands of models to be in part of the map without having to load all of them at the same time. Only the once at a certain visible range of the camera.

Solution(s)

When the models are not loaded the markers from #67 will show instead. The distance the model unloads should be the same as the distance the marker appears.

Additional context

There could be a template "placeholder object" that is quickly placed where the model should be while the actual model loads in. This could be helpful if the user zooms in faster than the model can load.