I'm trying to export a simple object with a material to collada. I created a material with a diffuse texture, and assigned it to the cube. It renders as expected in Blender itself. Export options have all the texture options on. The generated collada file looks as follows:

The material is there, properly linked to the object, and references the right effect. The images are there, but the problem is that the effect does not link the images as surfaces (so they won't be used; how could you find them?)

Which I believe to be the proper way; i.e., it first defines a 'surface' that references an image, it then defines a 'sampler' that references this surface, and finally it sets the diffuse material property to a texture, which references the sampler. My code then parses: texture -> sampler -> surface -> image.

Is it possible to enable this behaviour in Blender, or is it simply not (yet) supported? Is there another way to get textures to be referenced in the materials?

I'm sorry; I've solved it... turns out that if your texture mapping is set to generated it won't export the textures into the effect. You have to use uv mapping coordinates (for future reference if someone finds this), then it works as expected, similar to 3ds.