Difference between revisions of "Stars.tbl"
From FreeSpace Wiki
(Please revise) |
|||
Line 26: | Line 26: | ||
===Stars=== | ===Stars=== | ||
− | *Stars are defined with several different parameters | + | *Stars are defined with several different parameters. |
**'''$Sun:''' | **'''$Sun:''' | ||
***Defines the name of the used star | ***Defines the name of the used star | ||
***Syntax: ''Name'' | ***Syntax: ''Name'' | ||
**'''$SunGlow:''' | **'''$SunGlow:''' | ||
− | ***Defines the | + | ***Defines the bitmap or animation used as a glow for the star |
***Syntax: ''Name'' | ***Syntax: ''Name'' | ||
**'''$SunRGBI:''' | **'''$SunRGBI:''' | ||
***Defines the color of the sun as well as it's intensity | ***Defines the color of the sun as well as it's intensity | ||
− | ***Syntax: ''Value Value Value Value'', (red, green, blue and intensity respectively) | + | ***Syntax: ''Value Value Value Value'', (red, green, blue and intensity respectively)<font color=red> |
+ | **'''$SunSpecularRGB:''' | ||
+ | ***Defines the color of the sun specuular lighting if it is to be different from '''$SunRGBI:''' values | ||
+ | ***Syntax: ''Value Value Value'', (red, green and blue respectively) | ||
+ | **'''$Flare:''' | ||
+ | ***Defines lens flare effect. | ||
+ | ***'''+FlareCount:''' | ||
+ | ****Defines number of lens flare effects attached yo the sun, if the value is omitted then 1 is used as a default number of flare effects. | ||
+ | ****Syntax: ''Value'' | ||
+ | ***'''$FlareTexture''N'':''' | ||
+ | ****Defines the name of the bitmap used for the particular ( N ) lens flare texture. | ||
+ | ****Syntax: ''Name'' | ||
+ | ***For each (defined in '''+FlareCount:''') lens flare effect | ||
+ | ****'''$FlareGlow''X'':''' | ||
+ | *****Defines the Xth lens flare effect. | ||
+ | *****'''+FlareTexture:''' | ||
+ | ******Defines the texture used for the lens flare effect. | ||
+ | ******Syntax: ''Value'', number of the texture defines in '''$FlareTexture''X'':'''. | ||
+ | *****'''+FlarePos:''' | ||
+ | ******Defines the position of the lens flare effect, relative value | ||
+ | ******Syntax: ''Value'' | ||
+ | *****'''+FlareScale:''' | ||
+ | ******Defines the scaling factor used for the lens flare effect. | ||
+ | ******Syntax: ''Value'' | ||
+ | **'''$NoGlare:''' | ||
+ | ***Defines ???? | ||
+ | </font> | ||
===Non-nebula debris=== | ===Non-nebula debris=== |
Revision as of 17:57, 13 March 2006
Stars.tbl is used to define available background graphics, all the stars or suns that create colored light for the game and used debris animations.
Contents
General Format
- Stars.tbl consist of several sections
- Between different sections #End must be used
- Background graphics
- Defines the available background graphics (nebulas, planets, etc.)
- Stars
- Defines the stars
- Non-nebula debris
- Defines animation for non-nebula mode
- Nebula debris
- Defines animation for nebula mode
- #End
- Must be included to the end of the stars.tbl
Background graphics
- Background graphics use the names of their respective graphic files
- Background graphics can be defined in to different forms:
- $Bitmap:
- This entry type is used for transparent objects such as background nebulas
- Syntax: Name
- $BitmapX:
- This entry type is used for non transparent objects such as planets
- Syntax: Name
- $Bitmap:
Stars
- Stars are defined with several different parameters.
- $Sun:
- Defines the name of the used star
- Syntax: Name
- $SunGlow:
- Defines the bitmap or animation used as a glow for the star
- Syntax: Name
- $SunRGBI:
- Defines the color of the sun as well as it's intensity
- Syntax: Value Value Value Value, (red, green, blue and intensity respectively)
- $SunSpecularRGB:
- Defines the color of the sun specuular lighting if it is to be different from $SunRGBI: values
- Syntax: Value Value Value, (red, green and blue respectively)
- $Flare:
- Defines lens flare effect.
- +FlareCount:
- Defines number of lens flare effects attached yo the sun, if the value is omitted then 1 is used as a default number of flare effects.
- Syntax: Value
- $FlareTextureN:
- Defines the name of the bitmap used for the particular ( N ) lens flare texture.
- Syntax: Name
- For each (defined in +FlareCount:) lens flare effect
- $FlareGlowX:
- Defines the Xth lens flare effect.
- +FlareTexture:
- Defines the texture used for the lens flare effect.
- Syntax: Value, number of the texture defines in $FlareTextureX:.
- +FlarePos:
- Defines the position of the lens flare effect, relative value
- Syntax: Value
- +FlareScale:
- Defines the scaling factor used for the lens flare effect.
- Syntax: Value
- $FlareGlowX:
- $NoGlare:
- Defines ????
- $Sun:
Non-nebula debris
- There must always be four (4) of these
- $Debris:
- Defines the animations used for the debris
- Syntax: Name
- $Debris:
Nebula debris
- There must always be four (4) of these
- $DebrisNeb:
- Defines the animations used for the debris
- Syntax: Name
- $DebrisNeb:
Sample
$Bitmap: dneb01 #end $Sun: SunWhite $Sunglow: Sunglow01 $SunRGBI: 1.0 1.0 1.0 1.0 #end $Debris: debris01 $Debris: debris02 $Debris: debris03 $Debris: debris04 #end $DebrisNeb: gas $DebrisNeb: gas $DebrisNeb: gas $DebrisNeb: gas #end #end