Jump to content

texturas terreno


Recommended Posts

re bonjour es merci à vou pour vôtre investissement à 0AD. je vaussoin je comprendre comment agute de nouvelles texture pour colorié la map  car je sui entrain de créer de texture de roche,Gaston,est otre.... je se pas si il faux code le texture pour que el aparres don le menuet point terrain texture merci à vou est à bientôt 

Link to comment
Share on other sites

Hello,

To be able to add new textures to the game you need to create a mod.  You can see wiki:ModdingGuide for reference.

Then you need to create the following directory structure

art/terrains/{your_biome_name}/

This folder will contain all the terrain types. You need a file called terrains.xml in that folder. Here is an example.

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE Terrains SYSTEM "/art/textures/terrain/types/terrains.dtd">
<Terrains>
  <Terrain groups="{your_biome_name}" />
</Terrains>

Here is an example of a terrain file

<?xml version="1.0" encoding="utf-8"?>
<terrain>
  <textures>
    <texture name="baseTex" file="types/{your_biome_name}/{your_texture_name}.png"/>
    <texture name="normTex" file="types/{your_biome_name}/{your_texture_name}_norm.png"/>
    <texture name="specTex" file="types/{your_biome_name}/{your_texture_name}_spec.png"/>
  </textures>
  <material>terrain_norm_spec.xml</material>
</terrain>

Then you need to create the following folder

art/textures/terrain/types/{your_biome_name}/

and put your textures in them. In the end you should have something like:

art/terrains/{your_biome_name}/{your_biome_name}_{your_terrain_name}.xml
art/terrains/{your_biome_name}/terrains.xml
art/textures/terrain/types/{your_biome_name}/{your_texture_name}.png
art/textures/terrain/types/{your_biome_name}/{your_texture_name}_norm.png
art/textures/terrain/types/{your_biome_name}/{your_texture_name}_spec.png
mod.json

 

IMPORTANT: The name of your XML file must be unique, or it will conflict with existing textures.

 

  • Thanks 1
Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...