Custom Decals: Difference between revisions

From Wolfire Games Wiki
Jump to navigationJump to search
Conner36 (talk | contribs)
mNo edit summary
Mng (talk | contribs)
Added basic layout; Removed "{{stub}} Tutorial on how to create and import custom decals into Overgrowth: * http://forums.wolfire.com/viewtopic.php?f=13&t=5064&p=82123&hilit=custom+texture#p82123"
Line 1: Line 1:
{{stub}}
Decals are textures which can be mapped to environment objects & terrain in Edit Mode. Their main use is adding detail to the scenary; bloodsplats, [[Lighting#Shadow_decals|shadows]] and footprints use them too.


Tutorial on how to create and import custom decals into Overgrowth:
=Files=
* http://forums.wolfire.com/viewtopic.php?f=13&t=5064&p=82123&hilit=custom+texture#p82123
To create a custom decal, the following files are needed:
 
* '''[[#XML_File|XML File]]''' - What you select when loading the decal
** '''[[#Normal_Map_Image_File|Color Map File]]''' - The texture for  the decal
** '''[[#Texture_File|Normal Map File]]''' - Has normal information for the decal '''TODO: is this necessary or are there fallback files?'''
 
===XML File===
 
<pre style="white-space: pre-wrap;"><?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>
</pre>
 
<span style="color:#399c25">'''ColorMap'''</span><br/>
Path to the texture file.
 
<span style="color:#399c25">'''NormalMap'''</span><br/>
Path to the Normal map image file.
 
===Texture File===
Can be created with any image manipulation program. Has to be quadratic. '''TODO: is this True?'''
The following file formats are supported:
* *.tga
* *.png
* *.jpeg '''TODO: is this True?'''
'''TODO: add the rest.'''
 
===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?'''


[[Category: Tutorials]]
[[Category: Tutorials]]
[[Category: Modding]]
[[Category: Modding]]
[[Category: Overgrowth]]
[[Category: Overgrowth]]

Revision as of 07:30, 9 March 2018

Decals are textures which can be mapped to environment objects & terrain in Edit Mode. Their main use is adding detail to the scenary; bloodsplats, 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

<?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.

Texture File

Can be created with any image manipulation program. Has to be quadratic. TODO: is this True? The following file formats are supported:

  • *.tga
  • *.png
  • *.jpeg TODO: is this True?

TODO: add the rest.

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?