Difference between revisions of "Graphic Files"

From FreeSpace Wiki
Jump to: navigation, search
(TGA and JPEG sections. Added first sentence.)
(fixed several errors)
Line 18: Line 18:
 
==JPG==
 
==JPG==
  
JPG (or JPEG) files are compressed images that can be opened in virtually all popular graphic utilities, including Microsoft Paint. They are one of the most efficient file types in terms of RAM usage, but DDS is just as fast. The compression in JPG files can be very noticeable, which is why they are almost never used by FreeSpace modders.
+
JPG (or JPEG) files are compressed images that can be opened in virtually all popular graphic utilities, including Microsoft Paint. They use same amount of graphics memory as 24 bit TGA images do, but they often have lots of compression artefacts. The compression in JPG files can be very noticeable, which is why they are almost never used by FreeSpace modders. Only potential benefit from using JPG images would be to save the actual image file size but as this happens at considerable cost in image quality and without any degree lower graphics memory usage as TGA images it is often avoided.
  
 
==PCX==
 
==PCX==
Line 28: Line 28:
  
 
==TGA==
 
==TGA==
 
Some older video cards are unable to display DDS textures; if you have this problem, use a program like [http://www.dsabstraction.com/dds_converter.htm DDS Converter] to convert the offending DDS files into a useable format. This is a minor hassle and it will cause slowdowns, as DDS is the most efficient of all the texture formats. Rather than use TGA files, try to convert them to PCX or JPG.
 
  
 
The FreeSpace 2 retail source code contained unimplemented support for TGA textures. FreeSpace 2 Open, however, fully supports these textures. The old [[Lightspeed's Nebula Pack]] is a common background add-on that uses large TGAs, so you may want to convert the Lightspeed files to a more efficient format before using them.
 
The FreeSpace 2 retail source code contained unimplemented support for TGA textures. FreeSpace 2 Open, however, fully supports these textures. The old [[Lightspeed's Nebula Pack]] is a common background add-on that uses large TGAs, so you may want to convert the Lightspeed files to a more efficient format before using them.
  
 
[[Category:File Types]]
 
[[Category:File Types]]

Revision as of 19:46, 25 September 2007

Retail FreeSpace 2 only supports the PCX format for non-animated graphics. However, FreeSpace 2 Open is able to use several different graphic file formats. These include the .PCX file format which was originally supported by the retail FreeSpace 2. In addition to this the game is able to make use of several other graphic file formats which are .JPG, .TGA and more recently .DDS file formats. Of these the .DDS file format is the most often used with FreeSpace 2 Open modifications.

For animated effects and textures see Multimedia Files.

DDS

DDS is a compressed texture format that is supported by FreeSpace SCP. Any modeler should use DDS for their textures as much as possible, as it is 1/2 the size of a PCX and 1/8 the size of a TGA image.

Background

The DDS File format was created by Microsoft for its DirectX graphics API, however, it has become a general format for textures and is supported by OpenGL (the graphics API the FS2 SCP uses). The official description of DDS is "The Microsoft DirectDraw Surface (DDS) file format is used to store textures and cubic environment maps, both with and without mipmap levels. This format can store uncompressed and compressed pixel formats, and is the preferred file format for storing DXTn compressed data."

Tools

Several tools exist for working with this format, besides any tools created by the FS2 SCP team. These tools are detailed at the nVidia website and should be useful.

Usage of DDS

The primary note to any texturer using the DDS file format is that even if DDS enables you to have twice the texture size, doesn't mean you should use all the available memory.


JPG

JPG (or JPEG) files are compressed images that can be opened in virtually all popular graphic utilities, including Microsoft Paint. They use same amount of graphics memory as 24 bit TGA images do, but they often have lots of compression artefacts. The compression in JPG files can be very noticeable, which is why they are almost never used by FreeSpace modders. Only potential benefit from using JPG images would be to save the actual image file size but as this happens at considerable cost in image quality and without any degree lower graphics memory usage as TGA images it is often avoided.

PCX

PCX were the first of the graphic files introduced to FreeSpace. Generally speaking, these files are among the largest graphic files used in FreeSpace. However, a lot of modders still use PCXs since it is the most compatible graphic file known inside FreeSpace. Earlier the TGA and JPG format files caused some graphical issues in game as it needed the command line option -jpgtga (see Command-Line_Reference) to work. However this command line option is no longer in use and game loads TGA and JPG format files automatically.

Tools

PCX is a image format that is less well supported in the standard imaging editing software such as Microsoft Paint. However, advanced image editing programs such as Photoshop or the GIMP can easily save PCX files.

TGA

The FreeSpace 2 retail source code contained unimplemented support for TGA textures. FreeSpace 2 Open, however, fully supports these textures. The old Lightspeed's Nebula Pack is a common background add-on that uses large TGAs, so you may want to convert the Lightspeed files to a more efficient format before using them.