How do I export a .x model with texture?

I am very new to blender, and just trying to getting to know some of the features, so this question might seem quite stupid to many of you.
When I export a model with a texture applied to it, it seems as if the texture is not exported with the model. I try to import the .x file in Blender - no texture shows up. I try to import the .x file in my test Direct3D application, which works with all other .x models - but not mine.

Here is what I do:

  1. Create a new Blender document
  2. Select the default cube.
  3. Press F6 to enter the texture buttons.
  4. In the Texture Type drop-down box I select Image.
  5. Load the image (in this case a .jpg, but I tried with .png and .tga too).
  6. Press F5 and select UV in the map input tab to get the texture to appear on all sides of the cube.

What is wrong here??

Thanks in advance.

You haven’t created any UV co-ords for the texture. In step 6 you’re setting the mapping to UV but you haven’t actually done any mapping. There are many tutorials for UV mapping in the tutorial sub-forum.


http://www.digital-air.co.uk/

Thanks a lot :slight_smile: but I find UV mapping to be a quite slow process…isn’t there a faster way to have Blender export a model with textures rather than having to UV map every single face?

Exporting to a “game” format always requires UV mapped textures, that’s the nature of models for use in game engines, they must be UV mapped. It’s a matter of optimisation, video card ram usage etc.

Once you practice it a few times it’s quite quick. You could also consider baking Blender materials to a texture and have Blender UV map it automatically. Look for tutorials on “Texture Baking”.


http://www.digital-air.co.uk/

Okay thanks a lot for your help :slight_smile: I’ll try this “texture baking” you talked about.