Page MenuHome

Collada import and texture paths
Closed, ArchivedPublic

Description

Blender 2.59, 2.60RC and trunk, all have the same issue in Linux32 version. Strange is that on OS X it seems to work.

Textures aren't loaded. COLLADA's init_from value is just a filename (ie. blender should look for it in the same directory/path/URL as the original document). ON the console "Cannot create image." is printed. I found it here http://projects.blender.org/scm/viewvc.php/trunk/blender/source/blender/collada/DocumentImporter.cpp?view=markup&root=bf-blender with a comment that could be related to the issue.

I assume the expected behavior should be: if it's an URI, use URI access/open functions, if it's not, handle both relative and absolute paths.

Details

Type
To Do

Event Timeline

Sorry for the late reply, but this report doesn't seem to contain enough information to redo the bug. We need an example collada file that fails to import. Also, I'm not really familiar with collada, but probably a generic URI just would not be supported at the moment, only relative/absolute paths to files on disk.

Hi Brecht, I discussed COLLADA IO with Nathan at the conference, and he agreed that OpenCOLLADA/C++ importer is a dead end. Therefore the work began on new, Python / pycollada ( https://github.com/skrat/bpycollada ). Once we have the features of current IO, it should replace the current addon. As you see even a simple URI handling is a problem.

Ok, well it seems this is then some feature of collada that is not supported, marking as todo.

Brecht Van Lommel (brecht) closed this task as Archived.Dec 5 2011, 3:12 PM