AutoMovie API
    Preparing search index...

    Function measureAutoMovieCameraNearClip

    • Measure how far a required subject's drawn surface reaches in front of the delivery near plane inside the delivered frame.

      The GPU clips every triangle against the near plane, so any part of the subject's surface that lies inside the four side planes and on the camera side of the near plane is cut out of the delivered picture: the camera has entered the subject. Each drawn triangle is clipped to the four side planes (Sutherland-Hodgman); signed distance to the near plane is linear over the remaining convex polygon, so its deepest point is a polygon vertex.

      Parameters

      • props: IProps

        Delivery camera, admitted subject meshes and the triangle budget.

      Returns measureAutoMovieCameraNearClip.IResult

      clear when no drawn surface crosses, clipped with the deepest intrusion in metres, its world surface point and the near-plane point at the same delivered pixel, over-budget when the triangles to examine exceed the budget, or unmeasured with the reason the subject cannot be checked.