Collada import and texture paths #28887

Closed
opened 2011-10-12 11:37:42 +02:00 by Dusan Maliarik · 5 comments

%%%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.%%%

%%%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.%%%
Author

Changed status to: 'Open'

Changed status to: 'Open'

%%%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.%%%

%%%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.%%%
Author

%%%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.%%%

%%%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.%%%

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

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#28887
No description provided.