This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Wrong Shading Color with OpenGL

Tags: None
(comma "," separated)
HackaN
Registered Member
Posts
3
Karma
0

Wrong Shading Color with OpenGL

Wed Jan 08, 2014 5:21 pm

I have Kubuntu 13.04 running on a PowerBook G4 and it is working fairly well. I have for the longest time been using Raster but recently I switched over to OpenGL in order to enjoy a bit of animations and cool effects, working pretty well considering my old hardware.

There's an issue however regarding the color of shades on some elements. The windows are using my black shade but panels and pop ups and tooltips have a blue shade.
Obviously I am not sure of why this is (thus I am not even sure I tagged this post right) and it only happens with OpenGL.

If I have Qt Graphics System set to Raster then I lose the titlebar of windows (using QtCurve as theme engine) and all shades are blue.

The only idea I have so far is that it somehow picks the root colors, just like some root programs picks the default white mouse...

Is there some log file I can check or something like that or does anybody have any other ideas?
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS

Re: Wrong Shading Color with OpenGL

Wed Jan 08, 2014 6:10 pm
I can't tell you for sure, but things like this are sometimes graphics driver bugs. Some nvidia drivers for example are known for swapping the red and the blue channel when playing flash videos sometimes.

Of course it could also be a KDE software bug.

Greetings,
Sven


I'm working on the KDevelop IDE.
luebking
Karma
0

Re: Wrong Shading Color with OpenGL

Wed Jan 08, 2014 10:35 pm
It's a byteorder swap - G4 is a PowerPC, using a Big-Endian byteorder (as compared to the X86 Little-Endian byteorder) what means that blue is swapped with alpha and red with green (if you don't map this correctly)

Can you please clarify the "raster" -> OpenGL" transition (notice that "native" is NOT opengl), the system (X11 or Quartz?) and also provide a screenshot of the particular troublesome item(s)?
HackaN
Registered Member
Posts
3
Karma
0

Re: Wrong Shading Color with OpenGL

Thu Jan 09, 2014 11:13 am

Thanks guys for your answers.

I have taken two fresh screenshots, one with OpenGL/Native and one with OpenGL/Raster, they show the blue shades and how pretty dramatic it becomes with the Raster Qt Graphics System. I am having the settings panel open in the screenshots so you can see my settings. Links at the bottom.

I suppose it is a Quartz system since it's Qt.

I do have DRIconf installed, read on the PowerPC FAQ that it could enable HyperZ which is supposed to be nice for 3D graphics

The only other tweaks/settings I have is a Xorg.conf file:

Section "Module"
Load "radeon"
Load "glx"
Load "dri"
EndSection

Section "Device"
Identifier "ATI RV350/M10 [Mobility Radeon 9600 PRO Turbo]"
Driver "radeon"
BusID "PCI:0:16:0"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
Option "DPMS"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "ATI RV350/M10 [Mobility Radeon 9600 PRO Turbo]"
Monitor "Configured Monitor"
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
EndSection

Section "DRI"
Mode 0666
EndSection

Section "Extensions"
Option "Composite" "Enable"
EndSection



... and a couple of yaboot flags:
append="quiet splash video=offb:off video=radeonfb:off video=1280x854-24@60 radeon.agpmode=2"


Really appreciate your help guys.

Regards / Krille

OpenGL Native: http://ubuntuone.com/1uu690tkq13nYLNW7Bj0MD
OpenGL Raster: http://ubuntuone.com/1iCvaFpT9X83D8a6mXjm2q
luebking
Karma
0

Re: Wrong Shading Color with OpenGL

Thu Jan 09, 2014 1:24 pm
It's X11 (Quartz is the OSX displayserver, ie. if you were running KDE application on OSX)
The setting in the screenshot does *only* control the Compositor in KWin. Native is X11 and XRender - not OpenGL.
Using the raster graphicssystem is preferred (and Qt does that by default "inside windows", allowing the native graphicssystem was mostly required for the XRender compositing backend)

Affected seem only the WM decoration and the compositor driven shadows.
The translucent panels themselve (milky white) seem fine, confirmed?
What's the output of "kwin --version"?
HackaN
Registered Member
Posts
3
Karma
0

Re: Wrong Shading Color with OpenGL

Sat Jan 11, 2014 12:16 pm
Ah I see, learned something new today, haha.

Yes, transparency and blur is working just fine.

The output of kwin --version is:
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Qt: 4.8.4
KDE Development Platform: 4.10.5
KWin: 4.10.5

/Krille
luebking
Karma
0

Re: Wrong Shading Color with OpenGL

Sun Jan 12, 2014 10:22 pm
That is probably a remaining bug (you should file it at bugs.kde.org)
Can you compile a patched version to test the result? (Only very few ppl. will have a BigEndian architecture available for testing)


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar