Difference between revisions of "Changing textures"
From XStoryPlayer Wiki
Line 25: | Line 25: | ||
<li>After editing the texture save it in the the .dds format. Make sure you also save the alpha channel. Save it in the DXT5 format and generate MIP maps.<br> | <li>After editing the texture save it in the the .dds format. Make sure you also save the alpha channel. Save it in the DXT5 format and generate MIP maps.<br> | ||
<code>We use the DXT5 format for 4 channel textures and DXT3 for 3 channel textures.</code></li> | <code>We use the DXT5 format for 4 channel textures and DXT3 for 3 channel textures.</code></li> | ||
− | <li>To make Saiko somewhat more alien like replace the alien_tex.zip textures (from the ' | + | <li>To make Saiko somewhat more alien like replace the alien_tex.zip textures (from the 'Tutorial Resource Pack') with the current Saiko body textures.<br> |
Both the color texture and the bump texture are changed.</li> | Both the color texture and the bump texture are changed.</li> | ||
<li>To quickly see the result when editing a texture press F4 and reload the scene.<br> | <li>To quickly see the result when editing a texture press F4 and reload the scene.<br> |
Revision as of 15:54, 6 January 2015
The scene textures can be found in the ./pack/pack_dungeon/scenes/textures
directory.
The scene sounds can be found in the ./pack/pack_dungeon/scenes/sounds
directory.
The character sounds can be found in the ./pack/pack_dungeon/ai/speech/default
directory.
Texture format
- XStoryPlayer color textures are in .dds file format.
- XStoryPlayer bump/displacement/normal textures are not in the .dds file format because that results in artifacts due to its normalized nature.
A .dds file is an compressed image format like .png or .jpg.
It contains reduced (mipmapped) versions of the image and it can directly be used as a compressed texture by the graphics card.
Opening a .dds file
- Most image editors have a plugin that allows you to open .dds files. This tutorial assumes you will be using Photoshop.
Download a .dds plugin for photoshop here. - Open the
/scenes/textures/character6/body_all_png.dds
texture.
It is the body skin texture used for Saiko her body. Use "Load Using Default Sizes" in the .dds popup dialog if you get this popup dialog. - You can change the skin texture using Photoshop. This texture also has an alpha channel that contains the reflection parameter for the skin.
As you can see the lips area e.g. is more reflective. - After editing the texture save it in the the .dds format. Make sure you also save the alpha channel. Save it in the DXT5 format and generate MIP maps.
We use the DXT5 format for 4 channel textures and DXT3 for 3 channel textures.
- To make Saiko somewhat more alien like replace the alien_tex.zip textures (from the 'Tutorial Resource Pack') with the current Saiko body textures.
Both the color texture and the bump texture are changed. - To quickly see the result when editing a texture press F4 and reload the scene.
Because you don't have saved files you will see the fastsex Saiko dialog. After pressing Apply it will reload making the changes visible.
You can also do this to quickly reload after editing script code.