Bug 356086 - Double-sized ghost of previous frame when moving a layer with the onion skin enabled
Summary: Double-sized ghost of previous frame when moving a layer with the onion skin ...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Animation (show other bugs)
Version: 2.9.9
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-29 16:53 UTC by Ilya V. Portnov
Modified: 2016-04-19 09:24 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot of that ghost (448.93 KB, image/png)
2015-11-29 16:54 UTC, Ilya V. Portnov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya V. Portnov 2015-11-29 16:53:52 UTC
Looks pretty weird.

Reproducible: Always

Steps to Reproduce:
1. Enable onion skin
2. Draw a frame
3. Use "copy frame" to draw several more frames
4. Use "transform tool" to move layer on last frame


Actual Results:  
 The double-sized ghost of previous layer appears at the random (?) place at the canvas

Expected Results:  
No ghosts

This is krita built from git://anongit.kde.org/calligra.git branch krita-animation-pentikainen  today
Comment 1 Ilya V. Portnov 2015-11-29 16:54:23 UTC
Created attachment 95807 [details]
Screenshot of that ghost
Comment 2 Dmitry Kazakov 2016-04-18 15:15:38 UTC
Ok, in the current version of Krita it draws the scaled copy of the onin scin, and then hides it back. Weird bug, but confirmed :)
Comment 3 Dmitry Kazakov 2016-04-19 09:24:39 UTC
Git commit 3ad36d024d4c22952ca3b3699c0e3b987a6da07c by Dmitry Kazakov.
Committed on 19/04/2016 at 09:11.
Pushed by dkazakov into branch 'master'.

Fix painting onion skins in LoD mode

This patch adds a special cache object that renders all the
onion skins on a separate device and activated LoD on it.

That cache not only fixes ghost strokes appearing on the canvas,
but also reduces the amount of work that have to be done when
rendering the onion skins. So it the end, painting speed with
onion skins should become higher.

Fixes T1141

M  +1    -0    libs/image/CMakeLists.txt
A  +122  -0    libs/image/kis_onion_skin_cache.cpp     [License: GPL (v2+)]
C  +13   -22   libs/image/kis_onion_skin_cache.h [from: libs/image/kis_onion_skin_compositor.h - 053% similarity]
M  +10   -3    libs/image/kis_onion_skin_compositor.cpp
M  +2    -0    libs/image/kis_onion_skin_compositor.h
M  +27   -2    libs/image/kis_paint_layer.cc
M  +2    -0    libs/image/kis_paint_layer.h

http://commits.kde.org/krita/3ad36d024d4c22952ca3b3699c0e3b987a6da07c