Collada import and export wrongly handle skin morphs. #42197

Open
opened 2014-10-12 19:10:39 +02:00 by Carlo Wood · 11 comments

Blender Version
Broken: 2.72 / 95182d1
probably all versions.

Short description of error
The collada specs require a morphed skin to use a source for the skin that is the output of a morph,
that is, the controller that has a skin uses as source the id of a controller with a morph.
However, blender skips the morph on export: it uses the id of the base mesh (geometry) as source
for the skin and doesn't refer to the morph controller at all. On other hand, when importing it applies
all morphs to skins that both use the same base mesh. This is not how it is supposed to be.

Exact steps for others to reproduce the error

  1. Open blender (compiled with collada support), load factory settings, clear the scene.

  2. Import the skin_and_morph_example.dae example from http://collada.org/mediawiki/index.php/Skin_and_morph
    Observe that this fails. Correct would be to get the result that you will get in point 4).

  3. Edit the .dae and change

    <skin source="#pCylinderShape1-morph">

into

    <skin source="#pCylinderShape1">

that is, skipping the morph controller and just refer directly to the base mesh.

  1. Import the changed .dae - and observe that now the import succeeds and the morph is still applied (it shouldn't be).

For your convience, I have included the skin_and_morph_example.dae file from collada.org,
as well as the changed case that "works" under blender, called skin_and_morph_example_blender.dae.

skin_and_morph_example.dae
skin_and_morph_example_blender.dae

**Blender Version** Broken: 2.72 / 95182d1 probably all versions. **Short description of error** The collada specs require a morphed skin to use a source for the skin that is the output of a morph, that is, the controller that has a skin uses as source the id of a controller with a morph. However, blender skips the morph on export: it uses the id of the base mesh (geometry) as source for the skin and doesn't refer to the morph controller at all. On other hand, when importing it applies all morphs to skins that both use the same base mesh. This is not how it is supposed to be. **Exact steps for others to reproduce the error** 1) Open blender (compiled with collada support), load factory settings, clear the scene. 2) Import the skin_and_morph_example.dae example from http://collada.org/mediawiki/index.php/Skin_and_morph Observe that this fails. Correct would be to get the result that you will get in point 4). 3) Edit the .dae and change ``` <skin source="#pCylinderShape1-morph"> ``` into ``` <skin source="#pCylinderShape1"> ``` that is, skipping the morph controller and just refer directly to the base mesh. 4) Import the changed .dae - and observe that now the import succeeds and the morph is still applied (it shouldn't be). For your convience, I have included the skin_and_morph_example.dae file from collada.org, as well as the changed case that "works" under blender, called skin_and_morph_example_blender.dae. [skin_and_morph_example.dae](https://archive.blender.org/developer/F116142/skin_and_morph_example.dae) [skin_and_morph_example_blender.dae](https://archive.blender.org/developer/F116144/skin_and_morph_example_blender.dae)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @Aleric

Added subscriber: @Aleric
Gaia Clary was assigned by Bastien Montagne 2014-10-12 19:58:01 +02:00

Added subscriber: @mont29

Added subscriber: @mont29

Gaia, do you still maintain Collada?

Gaia, do you still maintain Collada?
Member

yes, i do still maintain Collada. Please give me a few days.

yes, i do still maintain Collada. Please give me a few days.
Author

A few months have passed. Anything yet?

A few months have passed. Anything yet?
Member

Closed as duplicate of #43298

Closed as duplicate of #43298

Changed status from 'Duplicate' to: 'Open'

Changed status from 'Duplicate' to: 'Open'

Added subscriber: @0nelight

Added subscriber: @0nelight

any Update here?

any Update here?
Member

Old dragons waking up again.
So sorry for having forgotten about this one.

This may be related to #50807. Maybe we can fix both issues in one go.

Old dragons waking up again. So sorry for having forgotten about this one. This may be related to #50807. Maybe we can fix both issues in one go.
Gaia Clary was unassigned by Dalai Felinto 2019-12-23 16:38:01 +01:00
Philipp Oeser removed the
Interest
Pipeline, Assets & IO
label 2023-02-10 08:54:25 +01:00
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
6 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#42197
No description provided.