.x files

From EU3 Wiki

Jump to: navigation, search

.x files are Direct-X files. More precisely, they are 3D model files.


In Europa Universalis III the .x files contain things like:

  • All 3D models on the map.
  • All buildings in the city view.


If you want to edit a .x file, then you need a 3D model editor that can open it. Blender is a freeware program on the same level as 3D Studio Max.


Blender

To open the .x files with Blender, you have to press "Files", in the top left corner, press import and then .x files. Now when it's opened it's just easy to model.

If you have problems, this wiki book about modelling might help.


Bugfixing

If your 3D model shows up completely white, then read the following thing.

Your problem is that Blender, or the program you use to do the modelling, didn't write a link to your texture file.

When done with modelling open the .x file with notepad, or any other text editor.

Look for something like:

   Material capital_1 {
   0.256200; 0.256200; 0.256200;1.0;;
   0.500000;
   1.000000; 1.000000; 1.000000;;
   0.0; 0.0; 0.0;;
 }  //End of Material
   }  //End of MeshMaterialLis 

now change it to this:

   Material capital_1 {
   0.256200; 0.256200; 0.256200;1.0;;
   0.500000;
   1.000000; 1.000000; 1.000000;;
   0.0; 0.0; 0.0;;
    TextureFilename {
     "capital.tga";
    }
 }  //End of Material
   }  //End of MeshMaterialList

In my case it was capital.tga that was the texture file, but this is just the file that you use as texture file.

Material capital_1 is just the figure or part that gets the texture.

Those two names will change depending on which file you open.

Personal tools