LOD in Blitz3D?

Blitz3D Forums/Blitz3D Beginners Area/LOD in Blitz3D?

Hi all,

In Blitz3D, do we need to write codes to implement LOD (level of detail) or Blitz3D automatically deal with LOD for us?

Thanks in advance.
Sammy

For blitz terrains, LOD is done for you - although not brilliantly from what I've seen. For anything else, you have to do it yourself.

You need to write the code. It's not too tough as long as you keep all your loaded data organized (eg. in a type/types.) Just use EntityDistance to see how far and object is from the camera and then swap between models based on that; usually you'll want to load all levels-of-detail at the same time at the beginning and then use HideEntity/ShowEntity to do the swapping, but there may be situations were you'll want to load LOD models on the fly.

Also look into the command EntityAutoFade. That can help hide the transition between LOD swaps.