elm-3d-scene icon indicating copy to clipboard operation
elm-3d-scene copied to clipboard

Add level of detail handling

Open ianmackenzie opened this issue 4 years ago • 0 comments

Perhaps something like

Drawable.withLevelsOfDetail
    [ { accuracy = millimeters 1, drawable = ... }
    , { accuracy = millimeters 5, drawable = ... }
    , { accuracy = millimeters 10, drawable = ... }
    ]

and then the correct drawable would be chosen based on the current camera position. Note that the near clip distance of the camera can be used as a lower bound for how close the object can be to the viewer, to help determine required accuracy in world units based on desired accuracy in pixels!

ianmackenzie avatar Jul 29 '19 20:07 ianmackenzie