Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8119099

FX 8 3D: LOD helper needs to do near and far culling test in the same coordinate system

    XMLWordPrintable

    Details

      Description

      This found by Kevin while reviewing the code:

      The following code culls geometry outside the front / back clipping plane:

      + if (isPerspective && (bounds.getMinZ() > camera.getFarClip()
      + || bounds.getMaxZ() < camera.getNearClip())) {
      + return 0;
      + }


      The idea is right, but it compares the bounds in the local coordinates of the particular node in question with a clip distance that is in eye coordinates. They need to be in the same coordinate system before they can be compared.

        Attachments

          Activity

            People

            Assignee:
            yaow Yao Wang (Inactive)
            Reporter:
            ckyang Chien Yang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: