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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...