View Full Version : Snow Plugin
mikedee
December 14th, 2006, 08:30 PM
Just in time for christmas :)
This thread is really just a restart of this thread
http://forum.go-compiz.org/viewtopic.php?t=169
This version is from version 1744. I have included the coz's_BerylFlakes directory (it is copied to your ~/.compiz/images directory). I have renamed them and put them in one directory. The new names roughly reflect the original directory.
In theory it would be possible to modify this so that it can load svg's as well (if you have the svg plugin), but that would depend on a git version of compiz, so I havent done it for now.
http://www.anykeysoftware.co.uk/compiz/plugins/snow.tar.gz
Plugin originally from corner on beryl.
mcz
December 16th, 2006, 08:21 AM
Hi mikedee,
I get this error:
compiling : snow.c -> build/libsnow.losnow.c:166: error: expected specifier-qualifier-list before 'DrawWindowProc'
snow.c: In function 'stepSnowPositions':
snow.c:211: error: 'SnowScreen' has no member named 'allSnowFlakes'
snow.c: In function 'setupDisplayList':
snow.c:277: error: 'SnowScreen' has no member named 'displayList'
snow.c:279: error: 'SnowScreen' has no member named 'displayList'
snow.c: In function 'beginRendering':
snow.c:315: error: 'SnowScreen' has no member named 'snowTexturesLoaded'
snow.c:319: error: 'SnowScreen' has no member named 'snowTexturesLoaded'
snow.c:321: error: 'SnowScreen' has no member named 'snowTex'
snow.c:326: error: 'SnowScreen' has no member named 'allSnowFlakes'
snow.c:326: error: 'SnowScreen' has no member named 'snowTex'
...
mikedee
December 16th, 2006, 08:01 PM
Thats a strange error, its probably related to your gcc version.
I have just uploaded a slightly different version, can you try again and let me know if it works.
mcz
December 16th, 2006, 08:35 PM
Thank you,
but I get always the same error:
compiling : snow.c -> build/libsnow.losnow.c:161: error: expected specifier-qualifier-list before 'DrawWindowProc'
snow.c: In function 'stepSnowPositions':
snow.c:202: error: 'SnowScreen' has no member named 'allSnowFlakes'
snow.c: In function 'setupDisplayList':
snow.c:268: error: 'SnowScreen' has no member named 'displayList'
snow.c:270: error: 'SnowScreen' has no member named 'displayList'
snow.c: In function 'beginRendering':
snow.c:306: error: 'SnowScreen' has no member named 'snowTexturesLoaded'
snow.c:310: error: 'SnowScreen' has no member
named 'snowTexturesLoaded'
snow.c:312: error: 'SnowScreen' has no member named 'snowTex'
snow.c:317: error: 'SnowScreen' has no member named 'allSnowFlakes'
....
snow.c: In function 'snowInitScreen':
snow.c:506: error: 'SnowScreen' has no member named 'allSnowFlakes'
snow.c:507: error: 'SnowScreen' has no member named 'allSnowFlakes'
snow.c: In function 'snowFiniScreen':
snow.c:537: error: 'SnowScreen' has no member named 'snowTexturesLoaded'
snow.c:539: error: 'SnowScreen' has no member named 'snowTex'
snow.c:540: error: 'SnowScreen' has no member named 'snowTex'
snow.c:542: error: 'SnowScreen' has no member named 'snowTexturesLoaded'
snow.c:543: error: 'SnowScreen' has no member named 'snowTex'
make: *** [build/libsnow.lo] Error 1
The same error is also in the
Ubuntu Forum (http://forum.ubuntu-it.org/index.php?topic=51095.msg281332#msg281332)
Haisen
December 16th, 2006, 09:58 PM
Same error on openSUSE 10.2.
mikedee
December 17th, 2006, 01:14 AM
I can reproduce the error on my Ubuntu box now, Ill see if I can fix it.
mikedee
December 17th, 2006, 04:38 AM
Try now :)
mcz
December 17th, 2006, 09:50 AM
Thank you mikedee,
now the plugin compile, but I can't see any snow.
I put the plugin before 'cube' but nothing happens.
I tried with F3 and super+F3 but nothing.
watkin5
December 17th, 2006, 11:45 AM
snow is mainly working for me, except that i've got squares not flakes
[Snow]: Texture not found : /home/watkin5/.compiz/imagessnowflake2.png
i copied and renamed all the snowflake images and now get[Snow]: Loaded Texture /home/watkin5/.compiz/imagessnowflake2.png
but, i still get squares not flakes.
[please excuse my case, but my shift key isn't working.]
mikedee
December 17th, 2006, 03:57 PM
Try entering the snowflake images like this
/home/watkin5/.compiz/images/snowflake_1.png
/home/watkin5/.compiz/images/snowflake_2.png
The snowflake2.png is an old file, there should be lots in your ~/.compiz/images folder.
watkin5
December 17th, 2006, 06:32 PM
I entered the images as you suggested into
/apps/compiz/plugins/snow/allscreens/options/snow_textures
and
it's snowing :D
compiz is still complaining though;[Snow]: Texture not found : /home/boberty/.compiz/imagessnowflake2.png
[Snow]: Loaded Texture /home/boberty/.compiz/images/snowflake_0.png
[Snow]: Loaded Texture /home/boberty/.compiz/images/snowflake_1.png
Thanks for you help, and the port.
mikedee
December 17th, 2006, 07:00 PM
compiz is still complaining though;[Snow]: Texture not found : /home/boberty/.compiz/imagessnowflake2.png
[Snow]: Loaded Texture /home/boberty/.compiz/images/snowflake_0.png
[Snow]: Loaded Texture /home/boberty/.compiz/images/snowflake_1.png
Try not to think of this as complaining, its more a helpful developer letting you know whats happening :).
If you still have /home/boberty/.compiz/imagessnowflake2.png in the images config then remove that one and it should be OK.
mcz
December 17th, 2006, 08:45 PM
Sorry mikedee,
now the plugin works.
But not with the wallpaper plugin.
It's possible to make the snow working also with the wallpaper plugin (without kdesktop)?
[/i]
watkin5
December 17th, 2006, 08:56 PM
But not with the wallpaper plugin.
It works with wallpaper for me if I tick, in gconf-editor;
/apps/compiz/plugins/snow/allscreens/options/snow_over_windows
mcz
December 17th, 2006, 09:34 PM
Hi watkin5,
I have only these options:
Max Frames
Num Snowflakes
Screen Boxing
Screen Depth
Snow Size
Snow Speed
Snow Texture
mcz
December 17th, 2006, 10:04 PM
Hi,
I had the old schema installed.
Now it works, but sometimes the cube and the snow are not fluid.
zachtib
December 18th, 2006, 08:30 PM
Here's what i get when i make install
[: 1: ==: unexpected operator
compiling : snow.c -> build/libsnow.lo.lo-e
linking : build/libsnow.lo -> build/libsnow.la.la-e
install : /home/zach/.compiz/plugins/libsnow.so.so-e
and no option for the snow shows up in gconf-editor, even after i've loaded the plugin (or tried to) and i see no snow.
mikedee
December 18th, 2006, 09:43 PM
You need to type this, sorry Ill include it in the makefile soon
gconftool-2 --install-schema-file=snow.schema
zachtib
December 18th, 2006, 09:52 PM
You need to type this, sorry Ill include it in the makefile soon
gconftool-2 --install-schema-file=snow.schema
That fixed everything, thanks a lot.
now I can have snow+compiz :D
amgeex
December 18th, 2006, 11:45 PM
I have snow, plus flowers, ubuntu logos, hearts, and several other things falling down my desktop!!! I loaded all the snow textures though. :D :P
stjepan
December 20th, 2006, 09:12 PM
I set textures, but it always says it can't found the images!
[Snow]: Texture not found : /home/stjepan/.compiz/images/snowflake_2.png
Huh... why is this? :(
mikedee
December 20th, 2006, 09:14 PM
Do you have the png plugin loaded?
Load it after gconf
stjepan
December 20th, 2006, 09:38 PM
Thanks, works now.
stjepan
December 22nd, 2006, 06:06 PM
0.2.0 released! http://cornergraf.net/projects/xglsnow/
When will this be updated?
mikedee
December 22nd, 2006, 06:39 PM
I am working on a final christmas release very soon
Christmas shopping has put a bit of a dent in the timeframe :)
mikedee
December 23rd, 2006, 01:28 AM
I have just checked a diff of 0.2.0 against my version and my version is the same except it has rotating snowflakes. They must have been removed at some point because I was sure the last version I ported was 0.2.0.
Please let me know if you see something different :)
stjepan
December 23rd, 2006, 08:03 AM
For me the snow plugin is quite buggy. It works nicely for some time, but then I see only white squares until I restart compiz.
I hope this is fixed in 0.2.0
mikedee
December 23rd, 2006, 04:05 PM
As far as I know you HAVE 0.2.0 - in fact your version is a more advanced 0.2.0 than the one on their site.
lagorgy
December 23rd, 2006, 06:11 PM
how do i know i have png plugin installed? and if i dont where can i download it?
iznogood
December 23rd, 2006, 06:16 PM
its easy, just open gconf-editor and check apps/compiz/general/allscreens/options/active_plugins
There you can see all active plugins.If png is not there just add it by double clicking on the list(put it just after gconf)
Png plugin comes with compiz core so if you have the correct version then you should have it(you can check for libpng.so in /usr/lib/compiz)
lagorgy
December 23rd, 2006, 06:20 PM
its easy, just open gconf-editor and check apps/compiz/general/allscreens/options/active_plugins
There you can see all active plugins.If png is not there just add it by double clicking on the list(put it just after gconf)
Png plugin comes with compiz core so if you have the correct version then you should have it(you can check for libpng.so in /usr/lib/compiz)
thx for ur help.
I loaded png plugin right after gconf, and still snow plugin doesnt seem to be loading the textures... any idea?
iznogood
December 23rd, 2006, 06:30 PM
ok, just a couple of things...
First make sure you have the textures somewhere.Mine are in ~/.compiz/images
Second you must tell snow plugin where to get them, so open gconf-editor and goto apps/compiz/plugins/snow/allscreens/options and in snow_textures list put the textures you want snow to use(can be more than one) but with full path like /home/<username>/.compiz/images/snowflake_0.png
If it does not work after that, then...
lagorgy
December 23rd, 2006, 07:09 PM
ok, just a couple of things...
First make sure you have the textures somewhere.Mine are in ~/.compiz/images
Second you must tell snow plugin where to get them, so open gconf-editor and goto apps/compiz/plugins/snow/allscreens/options and in snow_textures list put the textures you want snow to use(can be more than one) but with full path like /home/<username>/.compiz/images/snowflake_0.png
If it does not work after that, then...
hehe, i had already done that and didnt work, did it again and now is working
thx for ur help ;)
cortex
January 19th, 2007, 04:21 PM
I have snow with super+F3
But on snow in app/compiz/plugins
So I can not change the square snow to other snow.png. How do I get snow in app/compiz/plugins ?
mikedee
January 19th, 2007, 06:54 PM
So I can not change the square snow to other snow.png. How do I get snow in app/compiz/plugins ?
in the snow folder type this
gconftool-2 --install-schema-file=snow.schema
Then restart gconf-editor and you should have the options
cortex
January 20th, 2007, 07:09 AM
Mikedee
Thanks !!! Worked perfect.
mikedee
January 22nd, 2007, 12:59 AM
I have just updated this to a new version, there are a few bug fixes.
sagara
August 25th, 2007, 06:26 AM
I have snow, plus flowers, ubuntu logos, hearts, and several other things falling down my desktop!!! I loaded all the snow textures though. :D :P
Where can i get the flowers, ubuntu logos and hearts textures?
giancarlo
October 30th, 2007, 03:31 PM
Hi, mikedee, can you please instruct me how to install the snow plugin? I really love that plugin :D but it is not working with my machine.i'm using opensuse 10.2. compiz fusion is working fine i think(except i have to type emerald --replace everytime..)i save the snow tar at
/home/gian/compiz-0.4.0/plugins/snow
i dont know where to compile it, etc.
Im sorry for my newbie question, and thanks in advance :)
SmSpillaz
October 30th, 2007, 10:34 PM
The one that mikedee offers is not up-to-date with core changes. You'll have to use the one in plugins unsupported.
Make sure you have installed compiz-fusion-devel and bcop, and just issue ./autogen.sh make and make install
saxin
October 31st, 2007, 10:57 AM
Will this work with CF that comes pre-installed with Ubuntu 7.10 too?
giancarlo
November 9th, 2007, 04:55 PM
i have an error while installing snow plugin
libtool: command not found
make: *** [build/libsnow.lo] Error 127
can someone help me please, i realy want this plugin
thanks in advance :)
matt_evans
November 9th, 2007, 08:40 PM
i downloaded the tar.gz file to my desktop, and when i run the tar -xvzf snow.tar.gz command the terminal responds:
tar: snow.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
I pretty much just started using linux so any directory manipulation would have to be explained to me. Thanks.
adamk
November 9th, 2007, 08:58 PM
i have an error while installing snow plugin
libtool: command not found
make: *** [build/libsnow.lo] Error 127
can someone help me please, i realy want this plugin
thanks in advance :)
Install libtool :-)
Adam
shame
November 10th, 2007, 11:32 PM
I really wish the mouse/screen edge bindings for snow would come back.
I used it quite often before, when I could clisk at the edge of the screen but when I have to press a key combo I just can't be bothered.
rezonence
November 13th, 2007, 09:21 AM
Hi! I'm having some problem with the snow plugin... I'm using Suse 10.3 and i've installed via YaST compiz-fusion-kde , the main and extra plugins and it all works just fine. But then I tried to install the Unsupported plugins and although they appear in the Settings Manger, I can't enable any of them [mswitch, snow, tile] - that is - i can check them but they dont remain checked. And another thing, at the snow plugin there are no options to initiate it.
I've tried to download the .tar.gz snow plugin and compile it but it gives some errors....
If you have any ideas please share them with me.
Thanks!
SmSpillaz
November 13th, 2007, 09:22 AM
What output do you get when starting compiz and trying to enable the plugin?
rezonence
November 13th, 2007, 10:50 AM
"Attempted to unregister path (path[0] = org path[1] = freedesktop) which isn't registered
Attempted to unregister path (path[0] = org path[1] = freedesktop) which isn't registered
Attempted to unregister path (path[0] = org path[1] = freedesktop) which isn't registered
compiz (core) - Error: Can't load plugin 'snow' because it is built for ABI version 20070915 and actual version is 20070815
compiz (core) - Error: Couldn't activate plugin 'snow'
A handler is already registered for the path starting with path[0] = "org"
A handler is already registered for the path starting with path[0] = "org"
A handler is already registered for the path starting with path[0] = "org"
"
[the last line is repeated several times]
It would seem like there's a problem with the ABI version... but I dont really know what ABI is and how to get a newer version... will do some searching though...
Later edit:
Did a compiz-all-related uninstall and reinstall of compiz-fusion-kde, installed the unsupported plugins and it works now! :)
dsvilko
November 13th, 2007, 12:37 PM
Would it be possible to add a snowflake rotation in the other two axis?
gord
December 7th, 2007, 01:30 PM
I can't remember where i got this version of the snow plugin, but i put in a few hacks anyway, full axis rotation instead of just on the z and fixed a bug regarding snow rotating around a corner rather than rotating around its center. compiles for me with the ubuntu gutsy compiz fusion, don't know about anything else.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.