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

JavaFX 3d rendering failure for mixed 2d and 3d content when using more than one graphics

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
    • Environment:

      Windows 7

      Description


      The graphics has mode3d state variable, and if it detects a change it calls the context and switches states on context.
      This leads to a problem with multiple graphics.

      For example:
      Let g1 be a graphics on context0
      Let g2 be a graphics on context0
      Lets say that all of the above have mode3d == false, context and graphics

      then root.render(g1) might result in a g1 and context changing into 3d mode
      next
      g2.validate(Graphics.RenderType.RENDER_2D); // Force 2d since draw is a 2d operation.
      g2.draw(texture) // but g2 is already in 2d mode so no change. But the context is still in 3d mode. This result in unpredictable failure.

        Attachments

          Activity

            People

            Assignee:
            ckyang Chien Yang (Inactive)
            Reporter:
            thor Thor Johannesson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: