Commit graph

33 commits

Author SHA1 Message Date
Lucas Murray
29484aa5fb Allow snow flakes to completely exit the screen before removing them.
Also create the flakes off-screen as well.
BUG: 182561

svn path=/trunk/KDE/kdebase/workspace/; revision=919039
2009-01-31 11:47:21 +00:00
Martin Gräßlin
3150cb2631 Implement clipping of snow flakes in fragment shader. This fixes painting the flakes several times in multi screen setup as well as during active desktop grid effect. Also honour translations and scaling of the desktop and re-enabling snow during active full screen effect.
BUG: 176489

svn path=/trunk/KDE/kdebase/workspace/; revision=892202
2008-12-03 19:46:20 +00:00
Martin Gräßlin
e1d4d50cd6 Some more optimizations to snow effect:
* move position updates of flakes to shader
* remove the for-loop which updates the flakes. This is handled in the loop for painting the flakes
* Don't test in each frame if a flake is on the screen. Precalculate the number of frames when then flake is on the screen and count the flakes.
* Set PAINT_SCREEN_TRANSFORMED
* Remove all unneeded code (like a QTime object when we already get the time in the method)

Now it takes ~ 17 % of CPU usage on my system. Seems to be the maximum of what is possible.

svn path=/trunk/KDE/kdebase/workspace/; revision=884305
2008-11-14 16:18:34 +00:00
Martin Gräßlin
8ecaefebcc Adding optional shader to snow effect. Shader is used when hardware support is available.
Using shader reduces CPU load from approximately 50 % to less than 20 % on my system.

svn path=/trunk/KDE/kdebase/workspace/; revision=883348
2008-11-12 18:38:36 +00:00
Urs Wolfer
4503d628a6 optimizegraphics: Losslessly optimized PNG and SVGZ files with "optipng -o5" and "advdef -z -4".
Reduced disk space: 3384KB (3MB)

svn path=/trunk/KDE/kdebase/workspace/; revision=876104

The following changes were in SVN, but were removed from git:

M	wallpapers/Blue_Curl/contents/screenshot.png
M	wallpapers/Flower_drops/contents/screenshot.png
M	wallpapers/Vector_Sunset/contents/screenshot.png
2008-10-26 14:11:34 +00:00
Lucas Murray
912d458110 Fix cylinder and sphere fragment shader. Opacities are already pre-multiplied.
svn path=/trunk/KDE/kdebase/workspace/; revision=867666
2008-10-04 06:20:22 +00:00
Lucas Murray
9a52d3c709 Added feature to only invert the colours of selected windows
Fixed shader alpha blending
CCMAIL: kwin@kde.org

svn path=/trunk/KDE/kdebase/workspace/; revision=853224
2008-08-27 12:20:34 +00:00
Martin Gräßlin
6ba3e9fac4 Initial import of new sphere effect. This effect uses a shader to transform the cube into a sphere. Caps are not yet working and are disabled. Fragment shader is shared with cylinder effect.
svn path=/trunk/KDE/kdebase/workspace/; revision=843611
2008-08-07 12:54:16 +00:00
Martin Gräßlin
1880dcf2eb Adapt cube and cylinder effect to new API. It is not required any longer to define an own projection matrix and RotationData is used to rotate the desktops.
svn path=/trunk/KDE/kdebase/workspace/; revision=842023
2008-08-04 14:12:58 +00:00
Martin Gräßlin
fc777afc8f Now we are able to display an image on the cube caps.
svn path=/trunk/KDE/kdebase/workspace/; revision=834710
2008-07-19 13:43:13 +00:00
Martin Gräßlin
89c2ad7c4b Move Cube effect to trunk
svn path=/trunk/KDE/kdebase/workspace/; revision=832912
2008-07-15 19:21:50 +00:00
Urs Wolfer
5b9980c4f2 Losslessly optimized PNG and SVGZ files with "optipng -o5" and "advdef -z -4".
Reduced disk space: 5128KB (5MB)

svn path=/trunk/KDE/kdebase/workspace/; revision=820008
2008-06-12 21:07:49 +00:00
Rivo Laks
9fa1b86285 Make shadow's color configurable and use color scheme for finding
the default value.
Patch by Louai Al-Khanji

svn path=/trunk/KDE/kdebase/workspace/; revision=784969
2008-03-12 22:12:55 +00:00
Luboš Luňák
a6fbe3d13e Snow effect from Martin Graesslin <ubuntu@martin-graesslin.com>.
svn path=/trunk/KDE/kdebase/workspace/; revision=758626
2008-01-08 15:47:31 +00:00
Urs Wolfer
0608747ab4 Optimize PNG files again.
Last optimization has been done almost two years ago. There a lot of new files in trunk (e.g all Oxygen stuff).
It's not the correct time to do that again (before the release).

This run saves again around 10MB of diskspace without any restrictions.

svn path=/trunk/KDE/kdebase/workspace/; revision=755647

The following changes were in SVN, but were removed from git:

M	wallpapers/plasma-default.png
2008-01-02 00:10:07 +00:00
Rivo Laks
213833fc7f Finally make the bloody blur effect work properly.
This fixes the artefacts appearing when only part of the screen is updated.
This version also brings ton of optimizations which might well increase performance
  2 or 3 times on slower cards:
- Windows are not drawn twice anymore. Now they're drawn only to render target and
  later changed parts of the render target are copied back onto screen.
- Shaders have been optimized. Some calculations moved from pixel shader to vertex shader.
- For ARGB windows, if window's opacity is 0 then it will stay transparent instead of being
  replaced by blurred background.
- Blur effect should now play nicer with other effects, e.g. shadows.

svn path=/trunk/KDE/kdebase/workspace/; revision=748502
2007-12-14 16:57:38 +00:00
Rivo Laks
33e34940f5 Those moved, too
svn path=/trunk/KDE/kdebase/workspace/; revision=732056
2007-11-02 17:29:54 +00:00
Rivo Laks
5bb6ed0b1a Use new shadow texture by pinotree. It uses gaussian blur instead of linear falloff
and thus looks better.
Also change default shadow settings to look better with the new texture.

svn path=/trunk/KDE/kdebase/workspace/; revision=732038
2007-11-02 15:33:46 +00:00
Rivo Laks
3afcb6eb04 Make blur work with ARGB windows
svn path=/trunk/KDE/kdebase/workspace/; revision=713247
2007-09-16 20:01:13 +00:00
Rivo Laks
cc2600100c Add a method to render round box with a dark edge and use it for alt-tab's frame.
Now the frame has a slight edge/border around it which makes it look much better IMHO.

svn path=/trunk/KDE/kdebase/workspace/; revision=704310
2007-08-24 15:44:52 +00:00
Rivo Laks
11cff2c158 Add LookingGlass, a fancier-looking magnifier.
svn path=/trunk/KDE/kdebase/workspace/; revision=687380
2007-07-13 13:22:09 +00:00
Rivo Laks
42a4d364c2 Add a generic function to render a box with rounded corners.
Algorithm is basically same as for shadow, perhaps even shadow will use it.

svn path=/trunk/KDE/kdebase/workspace/; revision=683514
2007-07-04 20:33:35 +00:00
Rivo Laks
bad6237218 - Implement textured shadows.
The default texture gives you nice rounded corners, but it can be changed to do something more fancy ;-)
- Fix a shadow transformation/rendering problem

svn path=/trunk/KDE/kdebase/workspace/; revision=683210
2007-07-04 11:39:30 +00:00
Rivo Laks
5af2cb8dda Add sharpen effect which does some basic sharpening.
Also requires shaders and shortcut is Ctrl+F7 for now.

svn path=/trunk/KDE/kdebase/workspace/; revision=683165
2007-07-04 10:01:04 +00:00
Rivo Laks
f69139e825 Add invert effect which inverts aka negates desktop's colors.
Shortcut is Ctrl+F6 for now.
  Requires shaders.

svn path=/trunk/KDE/kdebase/workspace/; revision=683162
2007-07-04 09:59:07 +00:00
Luboš Luňák
f52b8e48cd branches/work/kwin_composite becomes new trunk kwin.
svn path=/trunk/KDE/kdebase/workspace/; revision=659202
2007-04-29 17:35:43 +00:00
Luboš Luňák
2b7e1f4993 Remove kwin, kwin_composite will become new trunk kwin, missing merges
from trunk will be merged in.


svn path=/trunk/KDE/kdebase/workspace/; revision=659200
2007-04-29 17:34:49 +00:00
Rivo Laks
91f795922d Make Liquid effect work without NPOT textures as well.
svn path=/branches/work/kwin_composite/; revision=659161
2007-04-29 15:53:56 +00:00
Rivo Laks
49a56dc905 Make blur effect work even when NPOT textures are not supported by using a larger power-of-two
texture. It wastes some memory but at least it works.

svn path=/branches/work/kwin_composite/; revision=659159
2007-04-29 15:42:19 +00:00
Rivo Laks
72f2d412c1 Add blur effect.
Blur effects blurs out background of translucent windows, thus improving e.g. readability of text in
  such windows.
I'll send a mail with couple of screenshots and more details to kwin list soon.

svn path=/branches/work/kwin_composite/; revision=658817
2007-04-28 15:13:28 +00:00
Rivo Laks
e979de43fb Another demo effect which uses shader and render target to turn your screen into a liquid, wavy surface.
Soon we'll have more silly effects than Beryl/Compiz ;-)

svn path=/branches/work/kwin_composite/; revision=655575
2007-04-18 19:44:49 +00:00
Luboš Luňák
67fdfa03e7 Add effect that highlights the mouse when one
presses left and right mouse button. There needs to be
found a better way of activating this though :-/.


svn path=/branches/work/kwin_composite/; revision=654750
2007-04-16 21:15:15 +00:00
Rivo Laks
aae967c5f9 Make your windows explode!
Add ExplosionEffect which makes the windows blow up into small pieces when they're closed.
  In the future this could be used only when user kills (an unresponsive) window.

svn path=/branches/work/kwin_composite/; revision=643135
2007-03-16 13:02:47 +00:00