Add support for opencollada >= 1.6.65 #58568

Closed
opened 2018-12-03 00:57:46 +01:00 by Shane Ambler · 11 comments

The 1.6.65 release (12 Oct) of opencollada includes a new method writeAnimationClip. As this is a pure virtual method, Blender fails to build with recent opencollada libs.

While the following patch fixes the build, a TODO should be made to implement the import and export of relevant data.

diff --git a/source/blender/collada/DocumentImporter.h b/source/blender/collada/DocumentImporter.h
index 17e61326032..1c204f3e799 100644
--- a/source/blender/collada/DocumentImporter.h
+++ b/source/blender/collada/DocumentImporter.h
@@ -107,6 +107,8 @@ public:
        bool writeAnimation(const COLLADAFW::Animation*);
 
        bool writeAnimationList(const COLLADAFW::AnimationList*);
+       
+       bool writeAnimationClip(const COLLADAFW::AnimationClip*);
 
        bool writeGeometry(const COLLADAFW::Geometry*);
 
diff --git a/source/blender/collada/DocumentImporter.cpp b/source/blender/collada/DocumentImporter.cpp
index 67fd9d648c7..d68b5ceaf80 100644
--- a/source/blender/collada/DocumentImporter.cpp
+++ b/source/blender/collada/DocumentImporter.cpp
@@ -1349,6 +1349,13 @@ bool DocumentImporter::writeAnimationList(const COLLADAFW::AnimationList *animat
        return anim_importer.write_animation_list(animationList);
 }
 
+/** When this method is called, the writer must write the AnimationClip.
+ * /return The writer should return true, if writing succeeded, false otherwise.*/
+bool DocumentImporter::writeAnimationClip(const COLLADAFW::AnimationClip *AnimationClip)
+{
+       return true;
+}
+
 /** When this method is called, the writer must write the skin controller data.
  * \return The writer should return true, if writing succeeded, false otherwise.*/
 bool DocumentImporter::writeSkinControllerData(const COLLADAFW::SkinControllerData *skin)
The 1.6.65 release (12 Oct) of opencollada includes a new method `writeAnimationClip`. As this is a pure virtual method, Blender fails to build with recent opencollada libs. While the following patch fixes the build, a TODO should be made to implement the import and export of relevant data. ``` diff --git a/source/blender/collada/DocumentImporter.h b/source/blender/collada/DocumentImporter.h index 17e61326032..1c204f3e799 100644 --- a/source/blender/collada/DocumentImporter.h +++ b/source/blender/collada/DocumentImporter.h @@ -107,6 +107,8 @@ public: bool writeAnimation(const COLLADAFW::Animation*); bool writeAnimationList(const COLLADAFW::AnimationList*); + + bool writeAnimationClip(const COLLADAFW::AnimationClip*); bool writeGeometry(const COLLADAFW::Geometry*); diff --git a/source/blender/collada/DocumentImporter.cpp b/source/blender/collada/DocumentImporter.cpp index 67fd9d648c7..d68b5ceaf80 100644 --- a/source/blender/collada/DocumentImporter.cpp +++ b/source/blender/collada/DocumentImporter.cpp @@ -1349,6 +1349,13 @@ bool DocumentImporter::writeAnimationList(const COLLADAFW::AnimationList *animat return anim_importer.write_animation_list(animationList); } +/** When this method is called, the writer must write the AnimationClip. + * /return The writer should return true, if writing succeeded, false otherwise.*/ +bool DocumentImporter::writeAnimationClip(const COLLADAFW::AnimationClip *AnimationClip) +{ + return true; +} + /** When this method is called, the writer must write the skin controller data. * \return The writer should return true, if writing succeeded, false otherwise.*/ bool DocumentImporter::writeSkinControllerData(const COLLADAFW::SkinControllerData *skin) ```
Author

Added subscriber: @sambler

Added subscriber: @sambler
Gaia Clary was assigned by Brecht Van Lommel 2018-12-03 01:01:57 +01:00
Member

Hi, Shane

The support for action clips has already been prepared in the Blender Collada module since march 2018, but discarded because actually i was waiting for https://github.com/KhronosGroup/OpenCOLLADA/issues/565

You can expect to see this becoming live in Blender 2.8. I will prepare a request for updating the Collada libraries in the next days.

cheers,
Gaia

Hi, Shane The support for action clips has already been prepared in the Blender Collada module since march 2018, but discarded because actually i was waiting for https://github.com/KhronosGroup/OpenCOLLADA/issues/565 You can expect to see this becoming live in Blender 2.8. I will prepare a request for updating the Collada libraries in the next days. cheers, Gaia

Added subscriber: @brecht

Added subscriber: @brecht

If this patch is required to build with new opencollada libraries, it should be committed to master & blender2.8 before the libraries are upgraded.

If this patch is required to build with new opencollada libraries, it should be committed to master & blender2.8 before the libraries are upgraded.
Member

I could not find an easy way to get the library version number. So i asked in the opencollada project:

https://github.com/KhronosGroup/OpenCOLLADA/issues/604

waiting for response.

I could not find an easy way to get the library version number. So i asked in the opencollada project: https://github.com/KhronosGroup/OpenCOLLADA/issues/604 waiting for response.

In the worst case we can check for the existence of a COLLADAFWAnimationClip.h file in CMake, but would be nice if OpenCollada had version defines.

In the worst case we can check for the existence of a `COLLADAFWAnimationClip.h` file in CMake, but would be nice if OpenCollada had version defines.

This issue was referenced by 10c50d7dbf

This issue was referenced by 10c50d7dbf7578b35b3bf19a1948f556f9eb203b
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Member

Hi, @sambler

While adding the fix, i found that the related definition files are available only since Collada 1.6.68 So this fix will only work for Collada 1.6.68 or newer.

If the problem also appears on the versions 1.6.65/66/67 then i am not sure how to fix that.

Hi, @sambler While adding the fix, i found that the related definition files are available only since Collada 1.6.68 So this fix will only work for Collada 1.6.68 or newer. If the problem also appears on the versions 1.6.65/66/67 then i am not sure how to fix that.

This issue was referenced by 22bba02bc8

This issue was referenced by 22bba02bc8109f392fce50a24a4825390bca1bda
Author

@GaiaClary Seeing that the collada releases from 1.6.64 to 1.6.68 were all tagged in less than two months I would just make 1.6.68 the required version. If anyone is updating from 1.6.63 there is really no reason to build any version before 1.6.68.

@GaiaClary Seeing that the collada releases from 1.6.64 to 1.6.68 were all tagged in less than two months I would just make 1.6.68 the required version. If anyone is updating from 1.6.63 there is really no reason to build any version before 1.6.68.
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
4 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#58568
No description provided.