Animated version of the skydome/cube plugin for compiz
It’s true. It exists. It has a strange genesis. About three weeks ago, when I initially started with the skydome-extension to the cube-plugin for compiz, I had the skydome animated right from the start. But I had the feeling it was to heavy on the eyes and would annoy people with “to much polygons in your face”. Therefore I didn’t include it in the first patch I sent to David Reveman. But this one reply by bobmitch from the ubuntu-forums made me dust of the old code. After foolishly underestimating the issues of ABIs, I beat the patch into a little better shape and sent it to the ubuntu-forums (David also received this one). DeeZiD made a tarball of a new set of .debs for Dapper-users within an hour or so and people could try out the visual “crack”. There are currently two small cosmetic issues pending, which I will fix and offer in an updated patch to David as well.
Some remarks about using it to clarify things. Skydome is not a seperate plugin for compiz, but an addition to the normal cube-plugin for compiz. Thus you don’t need to load a “libskydome.so” explicitly, the normal “libcube.so” will do. In contrast to the very first version I did (I only blogged about it, but never made it publicly available), the current version only a accepts PNG-images as textures. You should be able to load images with arbitrary dimensions. This means that there is no need to scale the image to have power-of-2 width and height (e.g. 1024×1024 will work, but 1000×932 should too). Although some people reported to have problems with non-power-of-2 textures. The reason for this I currently don’t know. At the moment the best guess is that some cards may have a limit of 1024×1024 to be the maximum texture-size supported. Modern cards like e.g. a GeForce 5×00/6×00/7×00 for sure have a maximum texture-size limit of 4096×4096. Here’s a little tip for you… try this in a shell:
$ glxinfo -l | grep GL_MAX_TEXTURE_SIZE |
Here I would like to offer you a screencapture of the animated skydome in action, but gvidcap just isn’t made for grabbing fast moving stuff under Xgl. It drops too many frames. I tried it and the resulting video is acid to the eyes. The least I can present you is a screenshot of the new option available via the gconf-editor.
@DeeZiD: Das ist ja mal albern… Du wohnst hier ja fast direkt um die Ecke *g*
March 6th, 2006 at 7:32 pm
Nice write-up MacSlow. Feels good to have been part of adding functionality to cutting-edge desktop paradigm’s - even if it was just begging for new features…
Keep up the good work!
March 8th, 2006 at 6:53 pm
This looks very pretty, I would like to get it installed on gentoo. If I understand it right, this is simply a patch to the cube? If so would it be possible to get a hold of the patch file? Please email me back
March 8th, 2006 at 8:19 pm
Hi there toyo!
No need to, the patch is already applied to compiz’ CVS. Just grab it from here.
Best regards…
MacSlow
March 9th, 2006 at 4:03 am
Hello,
I can’t get skydome to work
I have latest glproto, mesa, glitz, xgl, cairo and compiz from CVS. I can set skydome in gconf-editor (and I see default gradient), but when I set some image it displays only blue or green screen (it looks like it grabs colors from image, strange!). I have tried PNG and JPG images, small and big ones, power-of-2 and not power-of-2, but it is still same
Do you know what I can do to get it working?
March 9th, 2006 at 4:18 am
Oh, sorry, now it works! Only one dimension of image was power-of-two. If both width and height is power-of-two, then it works.
Btw. is it posible to make non-power-of-two images working? And even more important are JPG images which also doesn’t work.
Thank you for tyour great work! Skydome is really wonderfull.
It would be also great if one can use different PNG and JPG images also on top AND bottom of the cube (not only SVG vector images on top of the cube). But I don’t have coding skills in C/C++
March 25th, 2006 at 7:48 pm
noob here !
I have mandriva 2006.0 and xgl works well together !
how do I apply th patch file to cube
thanks !
March 25th, 2006 at 11:09 pm
Greetings temis!
You don’t have to. The skydome-patch for the compiz-plugin "cube" was injected into CVS two weeks ago. Just grab the newest compiz sources from CVS, compile and install them.
Best regards…
MacSlow
May 27th, 2006 at 9:40 am
What I whould really like to see is and HDR image loaded as skydome to cast hdr light on the cube!
One day maybe….!?!?