I don’t quite understand how textures work in collada.
I’m sure it’s something to do with materials and effects that I don’t get.
This is what I have in my file, but I’m not sure how to make use of the uv coordinates I have to actually texture the object.
I’m importing into blender and I definitely have materials, I just don’t know how to associate a texture with the material.
Any help is appreciated.
I would upload the entire file, but it’s a rip from a dark souls model and this is my attempt at exporting to collada, thus it would be copyrighted information.
Uploading of pictures of the model in blender also failed repeatedly.
<effect id="texture_0_effect">
<profile_COMMON>
<image name="texture_0">
<init_from>./test_texture.jpg</init_from>
</image>
<newparam sid="texture_0_param">
<sampler2D>
<source>texture_0</source>
</sampler2D>
</newparam>
<technique sid="texture_0_technique">
<lambert>
<emission><param ref="texture_0_param"/></emission>
</lambert>
</technique>
</profile_COMMON>
</effect>
...
<material id="material_0" name="material_0">
<instance_effect url="#texture_0_effect"/>
</material>
...
<node id="mesh_0_instance" name="mesh_0" type="NODE">
<matrix sid="transform">
1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1
</matrix>
<instance_geometry url="#mesh_0">
<bind_material>
<technique_common>
<instance_material symbol="material_0" target="#material_0"/>
</technique_common>
</bind_material>
</instance_geometry>
</node>