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

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved:
              Imported: