Difference between revisions of "Decals"

From FreeSpace Wiki
Jump to: navigation, search
(Add a basic page for the decal system)
 
(Add tables list to match other table pages)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
{{TableVersionGit|2017-11-17|a3651026}}
 
{{TableVersionGit|2017-11-17|a3651026}}
 +
{{Tables}}
  
 
The Decal system in FreeSpaceOpen can be used to create permanent or semi-permanent effects, like impact marks for example.
 
The Decal system in FreeSpaceOpen can be used to create permanent or semi-permanent effects, like impact marks for example.
Line 18: Line 19:
 
*The filename for a diffuse map. This can be an animation.
 
*The filename for a diffuse map. This can be an animation.
 
*Syntax: '''''String''''', filenames should be provided without an extension.
 
*Syntax: '''''String''''', filenames should be provided without an extension.
====+Loop:====
+
=====+Loop:=====
 
*Whether the animation should loop.
 
*Whether the animation should loop.
 
*Syntax: '''''Boolean''''', default is True
 
*Syntax: '''''Boolean''''', default is True
Line 24: Line 25:
 
*The filename for a glow map. This can be an animation.
 
*The filename for a glow map. This can be an animation.
 
*Syntax: '''''String''''', filenames should be provided without an extension.
 
*Syntax: '''''String''''', filenames should be provided without an extension.
====+Loop:====
+
=====+Loop:=====
 
*Whether the animation should loop.
 
*Whether the animation should loop.
 
*Syntax: '''''Boolean''''', default is True
 
*Syntax: '''''Boolean''''', default is True
Line 30: Line 31:
 
*The filename for a normal map. This can be an animation.
 
*The filename for a normal map. This can be an animation.
 
*Syntax: '''''String''''', filenames should be provided without an extension.
 
*Syntax: '''''String''''', filenames should be provided without an extension.
====+Loop:====
+
=====+Loop:=====
 
*Whether the animation should loop.
 
*Whether the animation should loop.
 
*Syntax: '''''Boolean''''', default is True
 
*Syntax: '''''Boolean''''', default is True

Latest revision as of 20:33, 20 April 2022

Revision information.....

FSO Git Commit: Date: 2017-11-17 SHA: a3651026
Note: Please update the revision information when the page is updated. If your edit had nothing to do with new code entries then please do not edit the revision information


List of Tables and related code files
* Notes Modular Tables
** Notes tables which only use modular tables
Ai.tbl* /ai/aicode.cpp
Ai_profiles.tbl* /ai/ai_profiles.cpp
Animation.tbl** /model/modelanimation.cpp
Armor.tbl* /ship/ship.cpp
Asteroid.tbl* /asteroid/asteroid.cpp
Autopilot.tbl* /autopilot/autopilot.cpp
Cheats.tbl* /cheats_table/cheats_table.cpp
Colors.tbl* /globalincs/alphacolors.cpp
Curves.tbl* /math/curves.cpp
Controlconfigdefaults.tbl /controlconfig/controlsconfigcommon.cpp
Credits.tbl* /menuui/credits.cpp
Cutscenes.tbl* /cutscene/cutscenes.cpp
Decals.tbl** /decals/decals.cpp
Fireball.tbl* /fireball/fireballs.cpp
Fonts.tbl* /graphics/font.cpp
Game_settings.tbl* /mod_table/mod_table.cpp
Glowpoints.tbl* /model/modelread.cpp
Help.tbl* /gamehelp/contexthelp.cpp
Hud_gauges.tbl* /hud/hudparse.cpp
Icons.tbl* /mission/missionbriefcommon.cpp
Iff_defs.tbl* /iff_defs/iff_defs.cpp
Lighting_Profiles.tbl* /lighting/lighting_profiles.cpp
Lightning.tbl* /nebula/neblightning.cpp
Mainhall.tbl* /menuui/mainhallmenu.cpp
Medals.tbl* /stats/medals.cpp
Messages.tbl* /mission/missionmessage.cpp
Mflash.tbl* /weapon/muzzleflash.cpp
Music.tbl* /gamesnd/eventmusic.cpp
Nebula.tbl* /nebula/neb.cpp
Objecttypes.tbl* /ship/ship.cpp
Options.tbl* Not In Codebase
Particle effects(-part.tbm)** /particle/effects...
Post_processing.tbl /graphics/gropenglpostprocessing.cpp
Rank.tbl* /stats/scoring.cpp
Scpui.tbl* Not In Codebase
Scripting.tbl* /parse/scripting.cpp
Ships.tbl* /ship/ship.cpp
Sexps.tbl** /parse/sexp/sexp_lookup.cpp
Sounds.tbl* /gamesnd/gamesnd.cpp
Species_defs.tbl* /species_defs/species_defs.cpp
Species.tbl* /menuui/techmenu.cpp
Ssm.tbl* /hud/hudartillery.cpp
Stars.tbl* /starfield/starfield.cpp
Strings.tbl* /localization/localize.cpp
Tips.tbl* /menuui/playermenu.cpp
Traitor.tbl* /stats/scoring.cpp
Tstrings.tbl* /localization/localize.cpp
Virtual_pofs.tbl* /model/modelreplace.cpp
Weapon_expl.tbl* /weapon/weapons.cpp
Weapons.tbl* /weapon/weapons.cpp

The Decal system in FreeSpaceOpen can be used to create permanent or semi-permanent effects, like impact marks for example.

This table is distributed exclusively in tbm format (as *-dcl.tbms).

Note that decals are only usable on systems that support deferred rendering and normal mapping.

General Format

  • This table consists of one section, beginning with #Decals and ending with #End.

Core Table

$Decal:

  • Starts a decal definition. The name chosen here can be referenced elsewhere and should be unique.
  • Syntax: String

+Diffuse:

  • The filename for a diffuse map. This can be an animation.
  • Syntax: String, filenames should be provided without an extension.
+Loop:
  • Whether the animation should loop.
  • Syntax: Boolean, default is True

+Glow:

  • The filename for a glow map. This can be an animation.
  • Syntax: String, filenames should be provided without an extension.
+Loop:
  • Whether the animation should loop.
  • Syntax: Boolean, default is True

+Normal:

  • The filename for a normal map. This can be an animation.
  • Syntax: String, filenames should be provided without an extension.
+Loop:
  • Whether the animation should loop.
  • Syntax: Boolean, default is True