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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • javafx
    • Windows 7


      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.

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

              Created:
              Updated:
              Resolved:
              Imported: