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

localToScene doesn't work in 3D

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • fx2.0
    • fx2.0
    • javafx
    • Product: javafx-2.0beta
      Platform: windows-i586
      Build-Number: 2421
      Build-ID: 2011-07-14_16-18-57

      To produce predictable results of placing 3D objects into 2D scene and 2D objects developer needs coordinates conversion API.

      It looks like the existing localToScene and sceneToLocal methods doesn't take PerspectiveCamera into account and doesn't provide correct position of 3D point onto 2D scene coordinate space.

      Run the attached sample that illustrates it - green rectangle suppose to follow red one as to obtains its coordinates using localToScene method. However, they meet only when z=0.

            ckyang Chien Yang (Inactive)
            mrkam Alexander Kuznetcov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:

                Estimated:
                Original Estimate - 2 days
                2d
                Remaining:
                Remaining Estimate - 2 days
                2d
                Logged:
                Time Spent - Not Specified
                Not Specified