[B32] Ubuntu: Game cursor looks weird

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
marvalis
Uruivellas
Posts: 683
Joined: Sun Sep 05, 2010 5:11 am

[B32] Ubuntu: Game cursor looks weird

#1 Post 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.

marvalis
Uruivellas
Posts: 683
Joined: Sun Sep 05, 2010 5:11 am

Re: [B32] Ubuntu: Game cursor looks weird

#2 Post 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).

SCO
Cornac
Posts: 30
Joined: Sun Mar 11, 2012 1:58 am

Re: [B32] Ubuntu: Game cursor looks weird

#3 Post by SCO »

This is happening to me on svn (git mirror actually). Built 42

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: [B32] Ubuntu: Game cursor looks weird

#4 Post by darkgod »

Yeah some cards just cant handle real transparency on the mosue cursor :<
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Akien
Low Yeek
Posts: 9
Joined: Fri Nov 22, 2013 8:41 pm

Re: [B32] Ubuntu: Game cursor looks weird

#5 Post 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.
Attachments
Mouse-down img with 5% opacity black layer under the cursor
Mouse-down img with 5% opacity black layer under the cursor
mouse-down.png (3.72 KiB) Viewed 3033 times
Mouse img with 5% opacity black layer under the cursor
Mouse img with 5% opacity black layer under the cursor
mouse.png (4.32 KiB) Viewed 3033 times

Akien
Low Yeek
Posts: 9
Joined: Fri Nov 22, 2013 8:41 pm

Re: [B32] Ubuntu: Game cursor looks weird

#6 Post 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 :-)

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: [B32] Ubuntu: Game cursor looks weird

#7 Post by darkgod »

Damn I thought I had; the problem disappeared for me with updated libs :/
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Requia
Cornac
Posts: 41
Joined: Sat Jan 25, 2014 5:07 am

Re: [B32] Ubuntu: Game cursor looks weird

#8 Post by Requia »

If anything its worse, went from no problem in 1.15 to having the problem in 1.21.
Failed saving throw against terrible idea and opened the wrong door. Again.

Akien
Low Yeek
Posts: 9
Joined: Fri Nov 22, 2013 8:41 pm

Re: [B32] Ubuntu: Game cursor looks weird

#9 Post 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

Akien
Low Yeek
Posts: 9
Joined: Fri Nov 22, 2013 8:41 pm

Re: [B32] Ubuntu: Game cursor looks weird

#10 Post 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.
Attachments
Game cursor when doing a screen recording
Game cursor when doing a screen recording
tome.jpg (3.66 KiB) Viewed 2634 times

Akien
Low Yeek
Posts: 9
Joined: Fri Nov 22, 2013 8:41 pm

Re: [B32] Ubuntu: Game cursor looks weird

#11 Post 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).

Post Reply