Actor Level of Detail Lab

What's Happening

The Web Driver performs a level of detail (LOD) algorithm on each WTActor when it renders them.  As of Web Driver 2.1 you now have greater control over the curve at which triangles are removed.  As you can see in the example, the actor has an approximate triangle count of 5857 at it's initial position, rotation, scale, and camera field of view.  By rotating the Actor around you can see how the algorithm performs real time calculations.  By changing the sliders for LOD Max and LOD Quality, you can see the triangle count increase or decrease.

LODMax controls the high end of the scale representing a percentage of removable triangles from the original Actor to display at highest Quality.  LODQuality controls the speed at which the actor becomes less detailed (i.e the speed at which triangles are removed) within the LODMax range.

You'll be able to notice changes in the Actor's mesh; most notably the curved surfaces will flatten out.  Performance results of setLODQuality and setLODMax will vary depending on the geometry in the WTActor to which you're applying the changes to, and the number of materials that actor uses.

Key Methods Used

WTActor::setLODMax, WTActor::setLODQuality

Points to Remember