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

ghost image artifact when animating via binding to translate property

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Incomplete
    • Affects Version/s: 7u6
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:
      None
    • Environment:

      Java 7u4, Win 7, Netbeans 2.2, JFX 2.2 beta 10.

      Description

      In my current project I have a class called Projectile that extends Group. I use two methods to move projectiles along the screen:

      1) Use a Rotate and Translate transform on the projectile. Set the angle of the Rotate and use a Timeline to bind the Yproperty on the Translate from 0 to the distance of the shot.
      2) Use a Rotate and the projectile's X and Y translate properties. Set the angle of the Rotate and use a Timeline to bind to the projectile's X and Y properties.

      The problem that I am experiencing is that as the objects animate through the screen they leave ghost images of themselves along their path. Usually a projectile will leave only 1 ghost image but sometimes they'll leave a few. This seems to happen at specific points in my application when many other animated objects are coming onto the screen. The more objects coming onto screen the more prominent the problem is. Once the other objects are all on the screen (no more new objects coming onto the screen) then the problem subsides. Could the problem by initiated when all these other objects are having their animations started? Or maybe its related to these other animated objects being added to their respective parents?

      thanks
      jose

        Attachments

          Activity

            People

            • Assignee:
              kcr Kevin Rushforth
              Reporter:
              jmartinezjfx Jose Martinez (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: