Status: New
Owner: ----

New issue 184 by lionel.victor: visual artifacts when rendering (node disapearance, ghosts, etc)

I was a great fan of Piccolo... I'm still running a custom version of the original framework from the university of Maryland.

I have tried to switch to Piccolo 2D, but the rendering quality is simply catastrophic to a point where it is not usable at all. The major issues are
- Nodes that disapear without apparent reason and
- Ghosts lines and shapes left on the canvas while moving around.

I have searched in my code without success until I decided to start from scratch again to find where run the samples (kind of like going back to school) This is where I found that even the exemples were not working !

What steps will reproduce the problem?
1. try the OffsetVsTranslateExample (that is only one sample among others)
2. remove all activities. only keep the following code:
        offset.addActivity(new PActivity(-1L) {
                double speed = 3.0d;
            /** {...@inheritdoc} */
            protected void activityStep(final long elapsedTime) {
                offset.offset(speed, 0.0d);
                if (offset.getOffset().getX() >= 282) {
                        speed = 0.01f;
                System.out.println("offset " + offset.getOffset());

What is the expected output? What do you see instead?
I expect to see the node moving from left to right endlessly
What happens is that when offset == 285.0d the node disappears !!!
Plus at the begining of the 'translation' the offset of 3.0d leaves ghosts on the canvas ! (see

What version of the product are you using? On what operating system?
I have just compiled from trunk (rev 1031)
I already had the problem with older versions but I thought it was comming from my coded (being ported from Piccolo to Piccolo2D). Now I know it was not.

Please provide any additional information below.
Linux 2.6.32 x86_64 GNU/Linux
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)

I know that Java 1.6 is not 'supported' but I require it for some drag and drop features. Besides these visual artifacts have never been visible with Piccolo so I'm not sure it comes from the JDK version?

As most examples share the same behaviour/problem, I assume it is a bug.

A quick search on the issues list with keywords like "rendering" "render" "visual artifact", "draw", "paint" etc... did not report anything similar.

am I the only one having the problem ?

        Capture-OffsetVsTranslateExample.png  16.4 KB

Piccolo2D Developers Group:

Reply via email to