Collada import of skeleton has no rotation animations #36370

Closed
opened 2013-08-04 07:21:49 +02:00 by Clinton Reese · 8 comments

%%%--- Operating System, Graphics card ---
win7 64bit, GeForce gt 230m

- Blender version with error, and version that worked ---

2.68a 64 and 32 bit, don't know if it ever worked

- Short description of error ---

import skeleton with rotation animation on joints, but get no motion. Graph editor in pose mode shows quaternion keyframes.
I got the Blender source from svn and made 2 changes to get it to work and it shows as euler keframes after the change. It looks like the animation class for rotations is not being reported properly. In AnimationImporter.cpp file I changed the checks for animation class

AnimationImporter::evaluate_animation
changed :
//if (animclass != COLLADAFW::AnimationList::ANGLE) {
if (animclass != COLLADAFW::AnimationList::UNKNOWN_CLASS) {
report_class_type_unsupported(path, animclass, type);
return false;
}

AnimationImporter:: Assign_transform_animations
changed:
//case COLLADAFW::AnimationList::ANGLE:
case COLLADAFW::AnimationList::UNKNOWN_CLASS:

- Steps for others to reproduce the error (preferably based on attached .blend file) ---

load the attached dae files

dae.dae is from lightwave
swimskeleton.dae is from truespace

%%%

%%%--- Operating System, Graphics card --- win7 64bit, GeForce gt 230m - Blender version with error, and version that worked --- 2.68a 64 and 32 bit, don't know if it ever worked - Short description of error --- import skeleton with rotation animation on joints, but get no motion. Graph editor in pose mode shows quaternion keyframes. I got the Blender source from svn and made 2 changes to get it to work and it shows as euler keframes after the change. It looks like the animation class for rotations is not being reported properly. In AnimationImporter.cpp file I changed the checks for animation class AnimationImporter::evaluate_animation changed : //if (animclass != COLLADAFW::AnimationList::ANGLE) { if (animclass != COLLADAFW::AnimationList::UNKNOWN_CLASS) { report_class_type_unsupported(path, animclass, type); return false; } AnimationImporter:: Assign_transform_animations changed: //case COLLADAFW::AnimationList::ANGLE: case COLLADAFW::AnimationList::UNKNOWN_CLASS: - Steps for others to reproduce the error (preferably based on attached .blend file) --- load the attached dae files dae.dae is from lightwave swimskeleton.dae is from truespace %%%
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

%%%Did some more tests and it looks like collada animations that have separate channels for translation x,y,z or separate channels for rotation x,y,z don't have imported animations. 2 more attachments show this.
dae2.dae from lightwave has separate channels in both translation and rotation. It does not have any motion imported to blender
torus.dae from truespace has combined translation channels and separate rotation channels. It translates, but does not rotate.%%%

%%%Did some more tests and it looks like collada animations that have separate channels for translation x,y,z or separate channels for rotation x,y,z don't have imported animations. 2 more attachments show this. dae2.dae from lightwave has separate channels in both translation and rotation. It does not have any motion imported to blender torus.dae from truespace has combined translation channels and separate rotation channels. It translates, but does not rotate.%%%
Member

%%% %%%

%%% %%%
Author

%%%Tested Torus and dae2 files on 32bit linux build 2.68a with the same result.
Ubuntu 13.04
32 bit
GeForce Go 6800
Dell Inspiron 9300%%%

%%%Tested Torus and dae2 files on 32bit linux build 2.68a with the same result. Ubuntu 13.04 32 bit GeForce Go 6800 Dell Inspiron 9300%%%
Author

%%%I found the reason for the failures. The sample files from trueSpace and Lightwave use arbitrary values for some of the accessor name properties. "VALUE" is used as name instead of "X","Y","Z" and "ANGLE". Technically, I think it should be able to read it, no matter what the names. At this point it makes more sense to adjust the output of these programs to match Blender. It would be more work to adjust OpenCollada since it depends on the names matching up.%%%

%%%I found the reason for the failures. The sample files from trueSpace and Lightwave use arbitrary values for some of the accessor name properties. "VALUE" is used as name instead of "X","Y","Z" and "ANGLE". Technically, I think it should be able to read it, no matter what the names. At this point it makes more sense to adjust the output of these programs to match Blender. It would be more work to adjust OpenCollada since it depends on the names matching up.%%%

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

Added subscriber: @mont29

Added subscriber: @mont29

We are sorry, but we currently have no maintainer for Collada area, and there is no point in keeping opened reports that no one will tackle any time soon.

We only intend to maintain basic support for SecondLife export, but it is very unlikely to get any more real work done here (even the OpenCollada library we use in Blender is a rather… quite project since some time now).

We are sorry, but we currently have no maintainer for Collada area, and there is no point in keeping opened reports that no one will tackle any time soon. We only intend to maintain basic support for SecondLife export, but it is very unlikely to get any more real work done here (even the OpenCollada library we use in Blender is a rather… quite project since some time now).
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
3 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#36370
No description provided.