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

[3D] Shapes can be very blurry in 3D rotations if not started in the 2D plane

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8u40
    • 8u40
    • javafx
    • None

    Description

      In doing testing on the fix for RT-38948 under a variety of rotations I discovered a deficiency of the Shape node when dealing with 3D transforms. It snapshots the scale of the first non-2D transform it encounters and caches the node at that scale and doesn't invalidate the cache until the geometry of the Shape node changes. If the first 3D rotation it encounters is nearly perpendicular to the screen (Z=0 plane) then it will snapshot a very tiny scale for one or both axes.

      I'm attaching Text3D.java and an example of the output it generates. The UL text is being rotated in the 2D plane, the UR text is rotated about the X axis starting at 0 degrees, and the bottom 2 text objects are being rotated about the X and Y axes starting at close to 90 degrees where they snapshotted a very small X or Y scale.

      Attachments

        1. Text3D.java
          3 kB
        2. Text3D.png
          Text3D.png
          106 kB

        Issue Links

          Activity

            People

              flar Jim Graham
              flar Jim Graham
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: