Custom Decals: Difference between revisions
From Wolfire Games Wiki
Jump to navigationJump to search
m →Top: Added Image Decal_blood.jpg |
Silverfish (talk | contribs) Many small changes |
||
| Line 1: | Line 1: | ||
[[Category: Tutorials]] | |||
[[Category: Modding]] | |||
[[Category: Overgrowth]] | |||
[[File:Decal blood.jpg|thumb|alt=Decal blood plats|Decal blood splats]] | [[File:Decal blood.jpg|thumb|alt=Decal blood plats|Decal blood splats]] | ||
Decals are textures which can be mapped to environment objects & terrain | Decals are textures which can be mapped to environment objects & terrain. Their main use is adding detail and variation to the scenery. Blood splats, [[Lighting#Shadow_decals|ambient shadows]] and footprints use them too. | ||
=Files= | == Files == | ||
To create a custom decal, the following files are needed: | To create a custom decal, the following files are needed: | ||
* '''[[#XML_File|XML File]]''' - What you select when loading the decal | * '''[[#XML_File|XML File]]''' - What you select when loading the decal | ||
** '''[[# | ** '''[[#Texture_File|Color Map File]]''' - The texture for the decal | ||
** '''[[# | ** '''[[#Normal_Map_Image_File|Normal Map File]]''' - Has normal information for the decal '''TODO: is this necessary or are there fallback files?''' | ||
===XML File=== | === XML File === | ||
This file is what you load in the engine to make the decal show up. It links to a color texture and a normal texture that make up the decal. | |||
<pre style="white-space: pre-wrap;"><?xml version="2.0" ?> | <pre style="white-space: pre-wrap;"> | ||
<?xml version="2.0" ?> | |||
<Type>generic</Type> | <Type>generic</Type> | ||
<DecalObject> | <DecalObject> | ||
<ColorMap>Data/Textures/Decals/Rocky/black_dust_c.tga</ColorMap> | |||
<NormalMap>Data/Textures/diffusebump.tga</NormalMap> | |||
<ShaderName>decal</ShaderName> | |||
</DecalObject> | </DecalObject> | ||
</pre> | </pre> | ||
| Line 26: | Line 32: | ||
Path to the Normal map image file. | Path to the Normal map image file. | ||
=== | === ColorMap === | ||
Can be created with any image manipulation program. | Can be created with any image manipulation program. | ||
The following file formats are supported: | The following file formats are supported: | ||
* *.tga | * *.tga | ||
* *.png | * *.png | ||
===Normal Map Image File=== | === Normal Map Image File === | ||
Can be created with any image manipulation program. Must have the same dimensions as the texture file. '''TODO: is this True?''' | Can be created with any image manipulation program. Must have the same dimensions as the texture file. '''TODO: is this True?''' | ||
Revision as of 23:40, 9 March 2018

Decals are textures which can be mapped to environment objects & terrain. Their main use is adding detail and variation to the scenery. Blood splats, ambient shadows and footprints use them too.
Files
To create a custom decal, the following files are needed:
- XML File - What you select when loading the decal
- Color Map File - The texture for the decal
- Normal Map File - Has normal information for the decal TODO: is this necessary or are there fallback files?
XML File
This file is what you load in the engine to make the decal show up. It links to a color texture and a normal texture that make up the decal.
<?xml version="2.0" ?>
<Type>generic</Type>
<DecalObject>
<ColorMap>Data/Textures/Decals/Rocky/black_dust_c.tga</ColorMap>
<NormalMap>Data/Textures/diffusebump.tga</NormalMap>
<ShaderName>decal</ShaderName>
</DecalObject>
ColorMap
Path to the texture file.
NormalMap
Path to the Normal map image file.
ColorMap
Can be created with any image manipulation program. The following file formats are supported:
- *.tga
- *.png
Normal Map Image File
Can be created with any image manipulation program. Must have the same dimensions as the texture file. TODO: is this True?