Project

General

Profile

Bug #10078

Flag rendering on some parts, issues with png layer transparency

Added by Gaarst almost 8 years ago. Updated almost 8 years ago.

Status:
Confirmed
Severity:
Low
Assignee:
-
Category:
Buildings
Target version:
-
Start date:
07/01/2016
% Done:

10%

Version:
Platform:
Windows
Expansion:
Language:
English (US)
Mod Related:
No
Votes:
Arrow u r green
Arrow d r red

Description

So I made a quick flag for the Asteroid Day thingy, and made it with transparent background. As it is a png, it uses transparency and some of the text and image (grey part) is semi-transparent.

Now, when using the flag in the game it works fine, except when using it on the Mk2 Cockpit and on the Boar booster (the issue might appear on some other parts, but I did not notice it).

When editing the flag after seeing this, I could replicate the look of it by tweaking opacity of the png layer. (Flag is the same, and it doesn't seem to depend on colour or curvature of the flag as it works well on a lot of other parts).
So this made me think that there might be an issue with the way that these two parts (Mk2 Cockpit and Boar) handle transparency.

I made a thread describing the issue in the forums (http://forum.kerbalspaceprogram.com/index.php?/topic/142873-flags-opacity-and-transparency-thresholds/) and was told that the issue might be caused by different type of shaders used in the part models, one that handles transparency properly and another one that does not.

(First bug report here, so if anything is missing, please tell me and I'll be happy to add it)

Asteroid Day.png (11.2 KB) Asteroid Day.png Flag used Gaarst, 07/01/2016 03:10 PM
screenshot0.png (557 KB) screenshot0.png Screenshot showing the issue with the flag appearing differently on two parts Gaarst, 07/01/2016 03:10 PM
testflag.png (521 Bytes) testflag.png Flag with transparency gradient used to test the bug Gaarst, 07/17/2016 01:21 PM
screenshot1.png (660 KB) screenshot1.png Screenshot using the test flag Gaarst, 07/17/2016 01:22 PM
color_gradients_test.zip (2.61 MB) color_gradients_test.zip Zip containing coloured test flags and the result in game Gaarst, 07/17/2016 01:32 PM
19059
19060
19136
19137

History

#1 Updated by Gaarst almost 8 years ago

According to NecroBones (on the forums), there was a bug affecting a translucent shader model after 1.1, and parts were changed to a "Alpha Cutoff" shader that doesn't handle transparency. After the bug was fixed in 1.1.3, these parts seem to have been forgotten and kept the Alpha cutoff shader. (This needs to be confirmed)

#2 Updated by TriggerAu almost 8 years ago

  • Status changed from New to Updated
  • % Done changed from 0 to 10

Setting updated for confirmation during cleanup

#3 Updated by Gaarst almost 8 years ago

19136
19137

Bug confirmed on a clean and new install.

Tried with a test flag with different levels of transparency showing the problem very obviously. I also included a zip containing the same flag but coloured in red, green and blue showing that the same issue affects colours transparency too.

#4 Updated by TriggerAu almost 8 years ago

Thanks Gaarst

Also available in: Atom PDF