PDA

View Full Version : Reflection-fusion


coz
July 28th, 2007, 02:21 PM
hello all,
I generally don't do this sort of thing but here goes
There are just a few steps to get reflections on window borders working correctly.
First the images;
You can use any resolution image from 1024x1024 to 256x256. It is possible that they can be larger or smaller as well but anything larger has the potential of bogging fusion down, and anything smaller is just to darn difficult to work with.
The images I use are all 256x256. This is an easily manageable size, BUT the best looking images are of 1024x1024 for clarity , sharpness, and a nicer looking design.

Once you have an image created, and I have a package with about 15 images ready to go, the first thing you have to do is open emerald , go to the theme you are using ... hit the Edit Themes tab...then the Frame/Shadows tab and move all four sliders down , actually I believe all you need to do is move the Oapcaity slider down but I figure while I am there I'll move them all :)
The reason for the above is , if the shadows are enabled with the Reflections plugin, it will spill over onto to shadow of the window, etc, and look rather gloopy, and fuzzy , basically unattractive.
With the shadow turned off, the reflection texture is held within the boundaries of the window frames.
Also be sure that the theme you are using has a transparent window border, or just set some transparency in the edit themes tab of emerald.

Now all you have to do is go to the Reflection plugin... browse to your reflection image and load it. Now enable the refection plugin. You can add or change the image on the fly with the plugin enabled first. I have seen no problems with this.

You will notice that there are three tick boxes in the plugin; "Reflection for Windows"... "Reflection for Decorations"... and "Moving refection".

The "Reflection for Windows" will add the reflection to the terminal, for example, if it is slightly transparent but will also add it to your screenlets shadows and transparent clock faces, etc, and that is not always attractive. you be the judge for that tick box.

The "Reflection for Decorations", of course, is for the window borders and you probably want this one enabled.

The "Moving reflection" tick box is similar to the animated skydome in the sense that it allows the texture to animate slightly. On some textures, however, the difference with this enabled or disabled is difficult to see.

There is also the "Alpha Dependence Threshold", what a name!. Essentially this will make your image transparent if moved down and more opaque if moved up! :)

That's it ! :)
Oh , by the way, if you are using nvidia card with this enabled , the chances of black window bug is very high, so go easy on it !")
Also if you contact me on irc #beryl or #compiz-fusion, I can upload the package of reflection images. These can get you started without the hassle of creating an image.

djdoo
July 29th, 2007, 07:24 AM
For Black Window Bug the answer is not go easy but go indirect!!! :D And read my guide too!

Great work coz!! 8-)
I had difficullties in how to setup reflections at start too...

BTW where can we found the images for window reflections you packaged?? :?

revertex
August 4th, 2007, 01:38 AM
do you mind to post some screenshots, maybe a little video?

coz
August 11th, 2007, 05:41 AM
Here are a few screenshots of the reflection plugin with some of my reflection images

TualatriX
August 11th, 2007, 02:54 PM
I'm using the GMA950 video card, the reflection effect can't come out.
Is this my video card's problem?

Deciare
August 11th, 2007, 03:11 PM
If you start Compiz on a command line, do you receive any messages about a missing GL_ARB_fragment_program? Your hardware needs to support it in order for the Blur and Reflection plugins to work.

TualatriX
August 12th, 2007, 02:48 AM
Thank you, Deciare.
I did the step,but after I start Blur plugin,I haven't seen any effect. And I haven't received anything about GL_ARB_fragment_program.
Only when I start Blur, I received "/usr/bin/compiz.real (blur) - Warn: No stencil buffer. Region based blur disabled"
And nomatter my "compiz decoration blur type" sitting of Emerald is "titlebar only" or "All decoration", it can't work.

When I use Beryl ,I can use Blur plugin well.
Is this the Compiz Fusion's problem?

Deciare
August 12th, 2007, 09:55 PM
I did some more research, and the GMA950 using the i810 video driver does support GL_ARB_fragment_program. Not having a stencil buffer may cause your drop shadows to look glitchy when blur is enabled (reference (http://lists.freedesktop.org/archives/compiz/2007-March/001706.html)), but it shouldn't interfere with your ability to see a blur or reflection at all.

What happens if you enable the option at ccsm->Blur windows->Focus Blur? If blur is working at all for you, you should see every window except for your current window look blurry. If that doesn't work for you, we may be looking at a misconfiguration or bug.

It seems that, in the past, people have been able to make blur work with the Intel GMA950, but usually kept it disabled for performance reasons.

TualatriX
August 13th, 2007, 12:30 PM
Yeah, When I start Compiz Fusion with fusion-icon, I finally saw the message of GL_ARB_fragment_program.
It seems that I can't enjoy the Blur and Reflection with my GMA950.
At last, Thank you very much~

I think there's nothing serious without the two plugins,haha..

onestone
August 13th, 2007, 02:24 PM
There is a problem with the Intel driver/Xserver and the compiz fragment interface. Some parameters are not correctly set by the driver, but it should work in Xgl.

SmSpillaz
August 14th, 2007, 10:13 AM
There is a problem with the Intel driver/Xserver and the compiz fragment interface. Some parameters are not correctly set by the driver, but it should work in Xgl.

Hi. I have Intel running with Xgl and can confirm a few things.

Yes, pixel shaders (fragment_program) works fine on intel. I have made a list below of what does work and what doesnt.

Intel with AiGLX

What works :


- colorfilter
- neg
- fakeargb
- Water without the distortion effect
- Direct OpenGL Rendering, but rendered to the framebuffer, causing flickering. There is a fix coming out for this soon - see this (http://hoegsberg.blogspot.com/2007/08/redirected-direct-rendering.html)
- Accelerated, but not properly redirected XVideo. Change outputs from Xv to X11/XShm/XImage


Intel with Xgl

What works:


- colorfilter
- neg
- fakeargb
- Water with the distortion effect
- Somewhat of blur
-- Gaussian won't work because of the lack of FrameBuffer_Objects
-- 4xBilinear works for focus blur, but not for alpha blur (Partial blur, but weird distortion
-- Mipmap seems to crash compiz
- Reflections work fine
- Redirected, but not accelerated OpenGL
- Redirected, but not accelerated Xvideo


Just a note, because these are driver and DRI problems, we can't fix them. Hopefully this will be done in the next revision of the intel driver.

Hope that helped.

-SmSpillaz

mukiex
October 15th, 2007, 01:44 PM
So I can't simultaneously use shadows with reflection?

Saxywolf
October 17th, 2007, 03:00 AM
I's like shadows and reflection, but not reflection in my shadows. From reading this thread, it seems this isn't possible...

So, request?