Collada exporter texcoord-source name error when exporting mesh with multiple uv-maps #37753

Closed
opened 2013-12-09 14:34:32 +01:00 by Mo · 6 comments

System Information
Operating system and graphics card

Linux 3.8.1 32bit

Blender Version

Broken:

  • Blender 2.69.0 r60991
  • Blender 2.68a r58536

Short description of error

when exporting a mesh with multiple uv-maps while the option "only active UV-Layer" is selected, the exporter generates wrong texcoord-source names
if the active uv-map is not the first one.

Exact steps for others to reproduce the error

For example when exporting the default cube from a new scene:

  • create 2 uv-map-slots in the object-data panel

  • uv unwrap it twice to the diffrent slots

  • set the second uv-map to be active/selected

  • now export it as collada with the following options activated:

    • selection only
    • only active uv-layer
    • include uv layers
    • include material textures

In the resulting .dae file, there will be the following mesh in xml:

with a UV-Map source:

...

the source id is "Cube - Mesh-map-0" even though the second uv-map was selected to be active.

but in the geometry's - polylist, the input element will refer to a source-element with id "Cube-mesh-map-1", which isn't exported because we used
the "only active uv-layer" - option when exporting.

``` ``` ...

because of this, importing the refered uv-map will fail.

Based on a (as simple as possible) attached .blend file with minimum amount of steps
cube_2_uv.blend

**System Information** Operating system and graphics card Linux 3.8.1 32bit **Blender Version** Broken: - Blender 2.69.0 r60991 - Blender 2.68a r58536 **Short description of error** when exporting a mesh with multiple uv-maps while the option "only active UV-Layer" is selected, the exporter generates wrong texcoord-source names if the active uv-map is not the first one. **Exact steps for others to reproduce the error** For example when exporting the default cube from a new scene: - create 2 uv-map-slots in the object-data panel - uv unwrap it twice to the diffrent slots - set the second uv-map to be active/selected - now export it as collada with the following options activated: - selection only - only active uv-layer - include uv layers - include material textures In the resulting .dae file, there will be the following mesh in xml: <geometry id="Cube-mesh" name="Cube"> with a UV-Map source: <source id="Cube-mesh-map-0"> ... </source> the source id is "**Cube - Mesh-map-0**" even though the second uv-map was selected to be active. but in the geometry's - polylist, the input element will refer to a source-element with id "**Cube-mesh-map-1**", which isn't exported because we used the "only active uv-layer" - option when exporting. <polylist material="Material-material" count="12"> ``` <input semantic="VERTEX" source="#Cube-mesh-vertices" offset="0"/> <input semantic="NORMAL" source="#Cube-mesh-normals" offset="1"/> <input semantic="TEXCOORD" source="#Cube-mesh-map-1" offset="2" set="1"/> ``` ... </polylist> because of this, importing the refered uv-map will fail. Based on a (as simple as possible) attached .blend file with minimum amount of steps [cube_2_uv.blend](https://archive.blender.org/developer/F37863/cube_2_uv.blend)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @mo-4

Added subscriber: @mo-4
Gaia Clary was assigned by Brecht Van Lommel 2013-12-09 18:07:19 +01:00

This issue was referenced by blender/blender-addons-contrib@fe81ac0e4e

This issue was referenced by blender/blender-addons-contrib@fe81ac0e4e52b2f3cdf05d615a4065c9986d722f

This issue was referenced by fe81ac0e4e

This issue was referenced by fe81ac0e4e52b2f3cdf05d615a4065c9986d722f
Member

Changed status from 'Open' to: 'Resolved'

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

Closed by commit fe81ac0e4e.

Closed by commit fe81ac0e4e.
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#37753
No description provided.