Howto:Create custom splash screens: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(salman2401 doesn't seem to get around to adding this to the wiki: http://flightgear.org/forums/viewtopic.php?f=18&t=8408)
 
m (screenshots)
Line 1: Line 1:
Creating custom FlightGear splash screens is another thing that is very easy to do, just by looking at the documentation or by looking at existing aircraft, for example the default c172p.
Creating custom FlightGear splash screens is another thing that is very easy to do, just by looking at the documentation or by looking at existing aircraft, for example the default c172p.


The splash screen image is configured by the aircraft-set.xml, it supports a "splash-texture" tag in XML (just search for "splash-texture" using your text editor", it should look like this:
The splash screen image is configured by the aircraft-set.xml, where "aircraft" is the name of the aircraft.
You can find these files in each aircraft's directory in the base package.
 
[[Image:C172p-folder-structure.png]]
 
it supports a "splash-texture" tag in XML (just search for "splash-texture" using your text editor", it should look like this:


  <splash-texture>filename.png</splash-texture>
  <splash-texture>filename.png</splash-texture>
Line 10: Line 15:


  <splash-texture>splash.png</splash-texture>
  <splash-texture>splash.png</splash-texture>
[[Image:C172p-splash-screen-tag.png]]


Which would then be found in the top level directory of the corresponding aircraft.
Which would then be found in the top level directory of the corresponding aircraft.

Revision as of 15:22, 29 July 2010

Creating custom FlightGear splash screens is another thing that is very easy to do, just by looking at the documentation or by looking at existing aircraft, for example the default c172p.

The splash screen image is configured by the aircraft-set.xml, where "aircraft" is the name of the aircraft. You can find these files in each aircraft's directory in the base package.

C172p-folder-structure.png

it supports a "splash-texture" tag in XML (just search for "splash-texture" using your text editor", it should look like this:

<splash-texture>filename.png</splash-texture>

Please note that for the time being, aircraft cannot have multiple custom splash screens.

The filename is relative to the aircraft's sub directory and will differ among different aircraft, but often it just refers to "splash.png", see for example the c172p:

<splash-texture>splash.png</splash-texture>

C172p-splash-screen-tag.png


Which would then be found in the top level directory of the corresponding aircraft.

Aircraft that do not have a custom splash-texture specified, will be assigned a randomly chosen aircraft from the global $FG_ROOT/Textures directory:

The ones in data/Textures are (randomly) used when FlightGear cannot not find a aircraft-specific splash screen 
(which should be in the data/Aircraft/.../ directory). So editing these screens will affect all planes without custom ones.

The easiest thing for you to get started now, would be to simply load an existing splash screen image in an image editor (i.e. GIMP or Photoshop) and then start modifying it.

If you want to modify the splash screen of one particular aircraft, there is no reason to modify ANY splash screens outside your aircraft folder, just add a splash screen to your aircraft folder (i.e. by copying a png or rgb file from another aircraft), add it to your aircraft-set.xml file and then modify the splash screen in GIMP.

Also note that the image dimensions must be powers of two, but as long as you really just edited existing splash screens, that should not be a problem.

For example, texture sizes like 256x256 or 512x512 would be usable.

Once you are finished, you can save the file to the directory where your custom aircraft is located, using a filename such as "splash.png" - in the aircraft-set.xml you will want to change the splash tag then, to refer to this image (case sensitive).

You may also want to take a look at: http://wiki.flightgear.org/index.php/Howto:_Make_an_aircraft

And specifically: http://wiki.flightgear.org/index.php/Howto:_Make_an_aircraft#.3Csplash-texture.3E.3C.2Fsplash-texture.3E