Page MenuHome

Seems that Collada import doesn't handle UVW mapping
Closed, ResolvedPublic

Description

Blender 2.58.0 r37702

Import attached Collada file "Hummer.dae" and switch to Textured Mode
--> there's a visual problem with UVs

I suspect that the Collada import doesn't correctly handle UVW mapping, which appears this way in the collada file:

<source id="geom-lib_15350-map1" name="map1">
<float_array count="21" id="geom-lib_15350-map1-array">0.0 0.0 0.0 -0.85825300216674805 0.0 0.0 ...
</float_array>
<technique_common>
<accessor count="7" source="#geom-lib_15350-map1-array" offset="0" stride="3">
<param type="float" name="S"/>
<param type="float" name="T"/>
<param type="float" name="P"/>
</accessor>
</technique_common>
</source>

Note: this collada file gets correctly imported in Maya with OpenCOLLADA

Event Timeline

Attached patch that seems to fix the issue, taking into account the vertex data stride, and assigning to Nathan.

Applied, tested and committed in r38169. This patch also very nicely fixes UV import for a large cockpit model I have in my test files. Thanks!

Brecht Van Lommel (brecht) changed the task status from Unknown Status to Resolved.Jul 7 2011, 12:29 PM