wrld3d / unity-api

Issue tracking for the WRLD Unity SDK
28 stars 8 forks source link

How to do terrain loading no matter where the camera looks? #70

Closed batomot closed 6 years ago

batomot commented 6 years ago

Hello, I'm not a programmer, but how to make the loading area (LOD) that does not depend on where the camera looks ? Well, I mean that the area was uniformly absorbed regardless of where the camera looks like chunks around the camera. If you can do that, how ?

johnbell84 commented 6 years ago

Hi Batomot,

Due to memory and performance concerns, the SDK only loads visible areas into memory. The SDK considers an area "visible" if it intersects with the camera supplied to the SDK. In Unity, you can use one camera for rendering and a different camera for loading WRLD resources. This will allow you to have greater control of the streamed and memory resident data.

There is documentation for this here https://wrld3d.com/unity/latest/docs/examples/using-your-own-camera-controls/, and discussions at https://github.com/wrld3d/unity-api/issues/7 and https://github.com/wrld3d/unity-api/issues/44. You may also be able to adapt the "Separate Streaming and Rendering" example in the Wrld/Demo/Examples.unity scene.

I hope this helps.

Kind regards,

John