Page 1 of 1

[B32] Ubuntu: Game cursor looks weird

Posted: Tue Sep 06, 2011 12:00 am
by marvalis
When loading the game in Ubuntu the game cursor looks weird. When I try to take a screenshot it shows the system cursor instead of the actual cursor. That is why I cannot upload a picture. Enabling the system cursor in the video menu is a good workaround for this bug.

The cursor is rendered in a white square instead of a nice clean arrow, suggesting the invisibility layer is not being processed properly.

Re: [B32] Ubuntu: Game cursor looks weird

Posted: Tue Sep 06, 2011 12:50 am
by marvalis
I messed around with the GIMP a bit, copy pasted the cursor.png file in the GIMP and that proved that there is a problem with the current image. Making a new .png image with transparency in the GIMP does not cause any problems. The glow effect around the cursor seems to be a part of the problem.

If I load the cursor.png image in the GIMP and save it without saving the background image color (one of the options in GIMP for saving png files), then only the glow around the cursor is weird (white, not transparent).

Re: [B32] Ubuntu: Game cursor looks weird

Posted: Wed Oct 17, 2012 10:36 am
by SCO
This is happening to me on svn (git mirror actually). Built 42

Re: [B32] Ubuntu: Game cursor looks weird

Posted: Fri Oct 26, 2012 1:54 pm
by darkgod
Yeah some cards just cant handle real transparency on the mosue cursor :<

Re: [B32] Ubuntu: Game cursor looks weird

Posted: Mon Mar 10, 2014 4:36 pm
by Akien
This bug is still valid with T-engine4 1.1.5, on Mageia 5 x6_64.

I played a bit with the cursor.png and cursor-down.png files, and noticed that I could fix the issue with adding a 5% opacity black layer around the cursor edges. See the attached files.
It does alter the quality of the fading edges a bit, but it's way better for the systems on which the display was broken.

This hints that the transparent edges of the cursor are just *too* transparent for some configurations. Maybe a compromise could be found between gorgeous-looking edges and something working on all configurations? I'm not sure this is hardware related, since I have the same results both with my Intel graphical chipset and my Nvidia GTX 670MX GPU. I think it would more likely be a libpng issue (or SDL2, or anything, but probably something software-related). I'm running with libpng 1.6.9 here.

Re: [B32] Ubuntu: Game cursor looks weird

Posted: Tue Jun 03, 2014 7:14 pm
by Akien
Akien wrote:This bug is still valid with T-engine4 1.1.5, on Mageia 5 x6_64.

I played a bit with the cursor.png and cursor-down.png files, and noticed that I could fix the issue with adding a 5% opacity black layer around the cursor edges. See the attached files.
It does alter the quality of the fading edges a bit, but it's way better for the systems on which the display was broken.

This hints that the transparent edges of the cursor are just *too* transparent for some configurations. Maybe a compromise could be found between gorgeous-looking edges and something working on all configurations? I'm not sure this is hardware related, since I have the same results both with my Intel graphical chipset and my Nvidia GTX 670MX GPU. I think it would more likely be a libpng issue (or SDL2, or anything, but probably something software-related). I'm running with libpng 1.6.9 here.
Still valid with t-engine4 1.2.0. I'll use my quick workaround for Mageia's package, but a better upstream fix would be great :-)

Re: [B32] Ubuntu: Game cursor looks weird

Posted: Tue Jun 03, 2014 7:16 pm
by darkgod
Damn I thought I had; the problem disappeared for me with updated libs :/

Re: [B32] Ubuntu: Game cursor looks weird

Posted: Fri Jun 06, 2014 11:58 pm
by Requia
If anything its worse, went from no problem in 1.15 to having the problem in 1.21.

Re: [B32] Ubuntu: Game cursor looks weird

Posted: Thu Oct 30, 2014 11:55 am
by Akien
This is still valid in t-engine4 1.2.4 on Mageia 5 Beta1, 64bit.
It's a development version of Mageia so it has relatively recent libraries:
- libpng 1.6.13
- SDL2_image 2.0.0
- mesa 10.3.2

Re: [B32] Ubuntu: Game cursor looks weird

Posted: Thu Apr 23, 2015 8:25 am
by Akien
This is still valid in t-engine4 1.3.1 on Mageia 5 RC, 64bit, with:
- libpng 1.6.17
- SDL2_image 2.0.0
- mesa 10.4.7

The issue is not driver-related AFAICT since I can reproduce it with both my Intel GPU using the latest open source intel driver, and with my Nvidia GPU using the proprietary driver version 346.59.
In case it might be WM-dependent, I'm using KWin.

As previously, I can't really take a screenshot to show the issue because the cursor is not included in the screenshot (if I force ksnapshot to include the cursor in the screenshot, I get the system cursor). I've even tried to record the desktop to get a screenshot of the cursor, but then it looks even worse (see attached screenshot). When playing the cursor has more a white layer all around, as if the alpha gradient were converted to white.

As I stated a couple of years ago, editing the PNG a little bit just to make the transparency less absolute does the trick, it then displays fine. It would be really nice to get this fixed in a later release.

Re: [B32] Ubuntu: Game cursor looks weird

Posted: Thu Apr 23, 2015 8:45 am
by Akien
Note that the reports above where with TE4 built from the source tarball.
I've tried the Steam version and the official Linux64 binary from te4.org on the same system, same issue (even though those seem to use libpng 1.2.x instead of libpng 1.6.x).