I pushed a small improvement to this example, also used TCastleScene.Cache
= true
to optimize loading (the TCastleScene.Cache
is a feature independent from LOD – it’s useful when many TCastleScene
refer to the same URL but for some reason one cannot use TCastleTransformReference
, e.g. here TCastleTransformReference
would prevent LOD being different in each scene).
Committed to castle-engine/examples/viewport_and_scenes/level_of_detail_demo at master · castle-engine/castle-engine · GitHub , attaching also here for convenience.
level_of_detail_demo-0.1-src.zip (776.7 KB)