I am trying to apply a UV mapped texture to an object and export it in the Collada format. The result is not what I designed in Blender. Here's the simplest procedure that shows what I did.
- Start with the blank file and add a cube mesh.
- Select texture viewport shading.
- Unwrap the cube mesh (Smart UV Project).
- In UV/Image Editor, open random image.
- Position and scale islands so that the image is only on one side of the cube (that's how I want it).
The texture is now repeated on all sides of the cube in the viewport.
From this point on, I have three choices.
Don't assign any material
- Export to Collada.
- Cube is grey when viewed in MeshLab. No material, no texture, nothing. And that's fine.
Assign the material
- Assign a new material to the cube (it did not have a material before).
- Without changing any material properties, export to Collada. Or do make changes, the result is the same.
- Cube is black with texture applied and repeated.
Why is there any texture on the cube when the material doesn't have any textures by itself?
Assign the material and the texture
- Assign new material to the cube.
- Add new texture, set it as image, load the same image as texture as when doing UV mapping.
- Image Mapping > Extension, set to Clip.
- Mapping > Coordinates, set to UV.
- Mapping > Map, set to UVMap (only choice available).
- Observe that none of the changes made make any difference in viewport (in render, however, they do).
- Export to Collada.
- Cube is black with texture applied and repeated (same as before).
Collada model represents what is viewed in the viewport, and none of the changes made in material/texture after making UV mapping get reflected on the exported model. How to get them exported?
Notes
- Using Blender 2.69 with Blender Render.
- When exporting to Collada:
- Include UV Textures is checked.
- Include Material Textures is checked.