Difference between revisions of "Flag (Image)"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (+NASA, ESA flags)
(Properties)
 
(6 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 +
{{Outdated|
 +
* Flag images are now provided (and accepted) in a higher resolution (512x256px), while still being displayed in a 5:8 ratio. Using the old 256x160px format is still possible, but can lead to visible artefacts.
 +
* Transparent backgrounds in flag images now work correctly.
 +
* Besides the Flags directory, there are now FlagsAgency and FlagsOrganization directories, which can be added on by mods. Flags put there will appear in the respective categories in game.
 +
* The flag parts from 1.10 are not mentioned. They allow to decorate a craft with multiple different flags and give you a choice over the background.
 +
}}
 +
 
[[File:Flag on Mun.png|thumb|A flag on the [[Mun]] with a custom made flag (the flag of the [[w:File:Flag of the United Federation of Planets.svg|United Federation of Planets]] in this case)]]
 
[[File:Flag on Mun.png|thumb|A flag on the [[Mun]] with a custom made flag (the flag of the [[w:File:Flag of the United Federation of Planets.svg|United Federation of Planets]] in this case)]]
 
A '''flag''' is the image on the flags appearing at various places. There are two [[flagpole]]s, flags in the [[VAB]] and [[SPH]], [[Extend-o-matic Series A1 Deployable Flag]]s, and with [[0.23.5]] flags can be shown on parts. By default, there are 26 available flags, counting the Minimalist flag. These flags are:
 
A '''flag''' is the image on the flags appearing at various places. There are two [[flagpole]]s, flags in the [[VAB]] and [[SPH]], [[Extend-o-matic Series A1 Deployable Flag]]s, and with [[0.23.5]] flags can be shown on parts. By default, there are 26 available flags, counting the Minimalist flag. These flags are:
Line 10: Line 17:
  
 
== Properties ==
 
== Properties ==
[[File:Flag dimensions.svg|thumb|left|Flag dimensions]]
+
[[File:Flag texture formats compared.png|thumb|left|The new (top) and old (bottom) flag texture format in game. Open the full view to see artefacts introduced by scaling and texture compression in the bottom flag.]]
A flag is a PNG image with a width of 256 pixels and a height of 160 pixels. While the image format does allow for partial and full transparency, this will not show up in the game; rather, partial transparency will appear as a solid color and full transparency will appear white. As a result, all flags must be the standard shape and for example, the [[w:Flag of Nepal|Nepalese flag]] or the squared [[w:Flag of Switzerland|flag of Switzerland]] could not be used in the game without adding white space.
+
A flag is an image with a width to height ratio of 8:5. While older versions of the game used to provide and use flag images in the 256x160px format, they now use 512x256px images which can be directly mapped to textures on the GPU. Note that because the new files have a ratio of 2:1, they will be slightly squeezed in game and appear stretched out of game. To avoid quality loss, most flags use the PNG format, which also supports an alpha channel for transparency.
  
 
== Minimalistic ==
 
== Minimalistic ==
Line 19: Line 26:
 
== Gallery of the default flags ==
 
== Gallery of the default flags ==
 
<gallery>
 
<gallery>
File:NASA.png|NASA
 
 
File:09.png|09 <ref group="Note" name="IYA">Based on the posters from the 2009 International Year of Astronomy</ref>
 
File:09.png|09 <ref group="Note" name="IYA">Based on the posters from the 2009 International Year of Astronomy</ref>
 +
File:B612_Foundation_flag.png|B612 Foundation
 
File:Blorbs.png|Blorbs <ref group="Note" name="IYA" />
 
File:Blorbs.png|Blorbs <ref group="Note" name="IYA" />
 
File:Bullseye.png|Bullseye
 
File:Bullseye.png|Bullseye
Line 26: Line 33:
 
File:Circles.png|Circles <ref group="Note" name="IYA" />
 
File:Circles.png|Circles <ref group="Note" name="IYA" />
 
File:Default.png|Default
 
File:Default.png|Default
File:Esa black.png|ESA <ref group="Note">Five variant is available: black, dark blue, gray, white and negative</ref>
+
File:Esa black.png|ESA <ref group="Note">Five variants are of the ESA logo available: black, dark blue, gray, white and negative</ref>
 
File:Hexagon.png|Hexagon
 
File:Hexagon.png|Hexagon
 
File:HexagonCircles.png|Hexagon Circles <ref group="Note" name="IYA" />
 
File:HexagonCircles.png|Hexagon Circles <ref group="Note" name="IYA" />
File:Kerbal1.png|Kerbal 1
+
File:120px-Kerbal1(flag).png|Kerbal 1
 
File:Kerbal2.png|Kerbal 2
 
File:Kerbal2.png|Kerbal 2
 
File:Kerbinflag.png|[[Kerbin]]
 
File:Kerbinflag.png|[[Kerbin]]
 
File:Kerbinmunflag.png|Kerbin-[[Mun]] Flag
 
File:Kerbinmunflag.png|Kerbin-[[Mun]] Flag
 
File:Line.png|Line
 
File:Line.png|Line
File:Minimalistic.png|Minimalistic.
+
File:Minimalistic.png|Minimalistic
 +
File:NASA.png|NASA
 
File:Orbitflag.png|Orbit <ref group="Note" name="IYA" />
 
File:Orbitflag.png|Orbit <ref group="Note" name="IYA" />
 
File:Orbs.png|Orbs
 
File:Orbs.png|Orbs
Line 41: Line 49:
 
File:RocketScience.png|Rocket Science
 
File:RocketScience.png|Rocket Science
 
File:Satellite.png|Satellite
 
File:Satellite.png|Satellite
 +
File:Sentinel_Flag.png|Sentinel
 
File:Spheres.png|Spheres <ref group="Note" name="IYA" />
 
File:Spheres.png|Spheres <ref group="Note" name="IYA" />
 
File:SquadLogoflag.png|Squad Logo 1
 
File:SquadLogoflag.png|Squad Logo 1
Line 47: Line 56:
 
File:Trees.png|Trees
 
File:Trees.png|Trees
 
File:Trippy.png|Trippy
 
File:Trippy.png|Trippy
 +
File:Uk_space_agency.png|UK Space Agency
 
</gallery>
 
</gallery>
  

Latest revision as of 18:50, 11 March 2021

A flag on the Mun with a custom made flag (the flag of the United Federation of Planets in this case)

A flag is the image on the flags appearing at various places. There are two flagpoles, flags in the VAB and SPH, Extend-o-matic Series A1 Deployable Flags, and with 0.23.5 flags can be shown on parts. By default, there are 26 available flags, counting the Minimalist flag. These flags are:

09, Blorbs, Bullseye, Capsule, Circles, Default, Hexagon, Hexagon Circles, Kerbal 1, Kerbal 2, Kerbin, Kerbin-Mun Flag, Line, Minimalistic, Orbit, Orbs, Retro, Rings, Rocket Science, Satellite, Spheres, Squad Logo 1, Squad Logo 2, Stripes, Trees, and Trippy.

All default flags are located in GameData/Squad/Flags although other mods can add their own images in their own directory (GameData/<mod>/Flags). New flags can be added and used if it is placed in this or similar folder. A flag filename can have spaces; underscores are not required to separate words.

Some of the images are based on posters from the 2009 International Year of Astronomy, while one is based Signalnoise's unofficial mission patches and another flags are based on animator and director David O'Reilly.[1]

The manufacturer's logos are also available as flags, starting from version 0.24.[2]

Properties

The new (top) and old (bottom) flag texture format in game. Open the full view to see artefacts introduced by scaling and texture compression in the bottom flag.

A flag is an image with a width to height ratio of 8:5. While older versions of the game used to provide and use flag images in the 256x160px format, they now use 512x256px images which can be directly mapped to textures on the GPU. Note that because the new files have a ratio of 2:1, they will be slightly squeezed in game and appear stretched out of game. To avoid quality loss, most flags use the PNG format, which also supports an alpha channel for transparency.

Minimalistic

Although the original image was the Retro style, it shows the wrinkled pattern similar to this flag

The Minimalist flag, while it can be selected, appears as the default flag when planted. Some people say that the minimalist flag is overlaid onto non-default flags for realism, and while all non-default flags do bear wrinkles in the same pattern, changing this file won't change the appearance of the other flags. Most likely the game holds a similar image to this flag somewhere internally with integrated alpha channel to combine both flags. Oddly enough, the default flag does not have this overlay; rather, it is already part of the flag's .png image. This suggests that a flag named default.png will be left untouched; as a result, players can exploit this in order to have solid colors.

Gallery of the default flags

  1. 1.0 1.1 1.2 1.3 1.4 1.5 1.6 Based on the posters from the 2009 International Year of Astronomy
  2. Five variants are of the ESA logo available: black, dark blue, gray, white and negative
  3. Based on “Unofficial NASA mission patches” by Signalnoise

Gallery of the manufacturer logos

See also

Notes

  1. Flags” blog entry by danRosas
  2. Kerbal Space Program - Early Access Look At Update v0.24” by Scott Manley released on July 14, 2014