Missing elements from Collada file (import) #48389

Open
opened 2016-05-09 17:09:56 +02:00 by Dalai Felinto · 17 comments

System Information
Windows 10

Blender Version
Broken: Blender 2.77a

Short description of error
Import collada file throws an error, and has missing geometry.

Exact steps for others to reproduce the error
Import Collada: ZINCARB65_ZC_313343_P.zip (unzip the file first)

Result in Blender: collada_blender.jpg

Result in 3D Builder (Windows default .dae opener): 3d_builder.jpg

Reference object (photo): photo.jpg

I get the following message from Blender. Note, I get a similar message with any .dae I try to import from my collection. But this is the only one with missing geometry.

Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: transparent, Attribute: xmlns, Line: 78, Column: 38, Additional:
Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: newparam, Attribute: xmlns, Line: 107, Column: 28, Additional:
Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: newparam, Attribute: xmlns, Line: 113, Column: 28, Additional:
Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: texture, Attribute: xmlns, Line: 123, Column: 46, Additional:
Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: newparam, Attribute: xmlns, Line: 137, Column: 28, Additional:
Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: newparam, Attribute: xmlns, Line: 143, Column: 28, Additional:
Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: texture, Attribute: xmlns, Line: 153, Column: 46, Additional:
Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: newparam, Attribute: xmlns, Line: 170, Column: 28, Additional:
Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: newparam, Attribute: xmlns, Line: 176, Column: 28, Additional:
Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: texture, Attribute: xmlns, Line: 186, Column: 46, Additional:
Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: float, Attribute: xmlns, Line: 191, Column: 31, Additional:
Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: newparam, Attribute: xmlns, Line: 200, Column: 28, Additional:
Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: newparam, Attribute: xmlns, Line: 206, Column: 28, Additional:
Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: texture, Attribute: xmlns, Line: 216, Column: 46, Additional:
Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: transparent, Attribute: xmlns, Line: 224, Column: 38, Additional:
Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: bind_vertex_input, Attribute: xmlns, Line: 10549, Column: 75, Additional:
Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: bind_vertex_input, Attribute: xmlns, Line: 10552, Column: 75, Additional:
Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: bind_vertex_input, Attribute: xmlns, Line: 10582, Column: 75, Additional:
Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: bind_vertex_input, Attribute: xmlns, Line: 10612, Column: 75, Additional:
Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: bind_vertex_input, Attribute: xmlns, Line: 10642, Column: 65, Additional:
Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: bind_vertex_input, Attribute: xmlns, Line: 10643, Column: 65, Additional:
Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: bind_vertex_input, Attribute: xmlns, Line: 10644, Column: 65, Additional:
Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: bind_vertex_input, Attribute: xmlns, Line: 10645, Column: 65, Additional:
Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: library_images, Attribute: xmlns, Line: 10693, Column: 24, Additional:
Writing node id='', name='Render'
Writing node id='', name='Environment'
Writing node id='collidersNode', name='colliders'
Writing node id='Geometry-Mesh_Node', name='Mesh_'
Writing node id='Geometry-ZINCARB65_1_CarrinhoNode', name='ZINCARB65_1_Carrinho'
Writing node id='Geometry-ZINCARB65_2_PlastNode', name='ZINCARB65_2_Plast'
Writing node id='Geometry-ZINCARB65_3_RodNode', name='ZINCARB65_3_Rod'
Writing node id='Geometry-ZINCARB65_S_PisoNode', name='ZINCARB65_S_Piso'
got 2 library nodes to free
**System Information** Windows 10 **Blender Version** Broken: Blender 2.77a **Short description of error** Import collada file throws an error, and has missing geometry. **Exact steps for others to reproduce the error** Import Collada: [ZINCARB65_ZC_313343_P.zip](https://archive.blender.org/developer/F309902/ZINCARB65_ZC_313343_P.zip) (unzip the file first) Result in Blender: ![collada_blender.jpg](https://archive.blender.org/developer/F309903/collada_blender.jpg) Result in 3D Builder (Windows default .dae opener): ![3d_builder.jpg](https://archive.blender.org/developer/F309907/3d_builder.jpg) Reference object (photo): ![photo.jpg](https://archive.blender.org/developer/F309905/photo.jpg) I get the following message from Blender. Note, I get a similar message with any .dae I try to import from my collection. But this is the only one with missing geometry. ``` Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: transparent, Attribute: xmlns, Line: 78, Column: 38, Additional: Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: newparam, Attribute: xmlns, Line: 107, Column: 28, Additional: Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: newparam, Attribute: xmlns, Line: 113, Column: 28, Additional: Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: texture, Attribute: xmlns, Line: 123, Column: 46, Additional: Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: newparam, Attribute: xmlns, Line: 137, Column: 28, Additional: Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: newparam, Attribute: xmlns, Line: 143, Column: 28, Additional: Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: texture, Attribute: xmlns, Line: 153, Column: 46, Additional: Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: newparam, Attribute: xmlns, Line: 170, Column: 28, Additional: Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: newparam, Attribute: xmlns, Line: 176, Column: 28, Additional: Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: texture, Attribute: xmlns, Line: 186, Column: 46, Additional: Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: float, Attribute: xmlns, Line: 191, Column: 31, Additional: Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: newparam, Attribute: xmlns, Line: 200, Column: 28, Additional: Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: newparam, Attribute: xmlns, Line: 206, Column: 28, Additional: Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: texture, Attribute: xmlns, Line: 216, Column: 46, Additional: Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: transparent, Attribute: xmlns, Line: 224, Column: 38, Additional: Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: bind_vertex_input, Attribute: xmlns, Line: 10549, Column: 75, Additional: Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: bind_vertex_input, Attribute: xmlns, Line: 10552, Column: 75, Additional: Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: bind_vertex_input, Attribute: xmlns, Line: 10582, Column: 75, Additional: Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: bind_vertex_input, Attribute: xmlns, Line: 10612, Column: 75, Additional: Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: bind_vertex_input, Attribute: xmlns, Line: 10642, Column: 65, Additional: Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: bind_vertex_input, Attribute: xmlns, Line: 10643, Column: 65, Additional: Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: bind_vertex_input, Attribute: xmlns, Line: 10644, Column: 65, Additional: Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: bind_vertex_input, Attribute: xmlns, Line: 10645, Column: 65, Additional: Schema validation error: Error: ERROR_UNKNOWN_ATTRIBUTE Element: library_images, Attribute: xmlns, Line: 10693, Column: 24, Additional: Writing node id='', name='Render' Writing node id='', name='Environment' Writing node id='collidersNode', name='colliders' Writing node id='Geometry-Mesh_Node', name='Mesh_' Writing node id='Geometry-ZINCARB65_1_CarrinhoNode', name='ZINCARB65_1_Carrinho' Writing node id='Geometry-ZINCARB65_2_PlastNode', name='ZINCARB65_2_Plast' Writing node id='Geometry-ZINCARB65_3_RodNode', name='ZINCARB65_3_Rod' Writing node id='Geometry-ZINCARB65_S_PisoNode', name='ZINCARB65_S_Piso' got 2 library nodes to free ```
Author
Owner

Changed status to: 'Open'

Changed status to: 'Open'
Gaia Clary was assigned by Dalai Felinto 2016-05-09 17:09:56 +02:00
Author
Owner

Added subscriber: @dfelinto

Added subscriber: @dfelinto

Added subscriber: @Sergey

Added subscriber: @Sergey
Member

The Collada importer just reports some minor issues in the collada file. And admitedly it reports its concerns in a somewhat exagerated and misleading way.

Lets look at the first reported error:

  Schema validation error: ERROR_UNKNOWN_ATTRIBUTE Element: 
  transparent, Attribute: xmlns, Line: 78, Column: 38, Additional:

When i inspect the reported line in the collada file then i find this:

  <transparent opaque="A_ONE" xmlns="">

The interpretation of the reported error line is as follows:

  • The parser has found an unknown attribute within the element on line 78
  • The name of the offending attribute is 'xmlns'
  • and the value of the attribute is '' (empty)

This attribute is reported but ignored. We could improve the report by making it less verbose and more precise, for example like:

  WARNING: Schema validation: Line 78:38: Element <transparent>, attribute: xmlns = ""  (ignore)

I am looking at this now and check if the collada parser reporter can be made more user friendly.

The Collada importer just reports some minor issues in the collada file. And admitedly it reports its concerns in a somewhat exagerated and misleading way. Lets look at the first reported error: ``` Schema validation error: ERROR_UNKNOWN_ATTRIBUTE Element: transparent, Attribute: xmlns, Line: 78, Column: 38, Additional: ``` When i inspect the reported line in the collada file then i find this: ``` <transparent opaque="A_ONE" xmlns=""> ``` The interpretation of the reported error line is as follows: * The parser has found an unknown attribute within the element <transparent> on line 78 * The name of the offending attribute is 'xmlns' * and the value of the attribute is '' (empty) This attribute is reported but ignored. We could improve the report by making it less verbose and more precise, for example like: ``` WARNING: Schema validation: Line 78:38: Element <transparent>, attribute: xmlns = "" (ignore) ``` I am looking at this now and check if the collada parser reporter can be made more user friendly.
Author
Owner

As requested, those are simpler sample files: holed_mesh.zip

  • holed_face_tri.dae
  • holed_face_ngons.dae
  • holed_cube_tri.dae
  • holed_cube_ngons.dae

They all import fine on SketchUp (where I generated them), but the non-triangulated ones do not ipmort correctly on Blender or Meshlab.

As requested, those are simpler sample files: [holed_mesh.zip](https://archive.blender.org/developer/F310031/holed_mesh.zip) * holed_face_tri.dae * holed_face_ngons.dae * holed_cube_tri.dae * holed_cube_ngons.dae They all import fine on SketchUp (where I generated them), but the non-triangulated ones do not ipmort correctly on Blender or Meshlab.
Member

As discussed in IRC: The missing geometry happens because the Collada importer discards faces with holes. This is a known issue. I tried to fix this last year but i could not find a good way to solve it.

Campbell mentioned yesterday (in IRC) that the file scanfill.c contains functions which are used by python importers to solve the import of faces with holes. I will look at this next and see if i can solve this issue. However it can take a few days.

As discussed in IRC: The missing geometry happens because the Collada importer discards faces with holes. This is a known issue. I tried to fix this last year but i could not find a good way to solve it. Campbell mentioned yesterday (in IRC) that the file scanfill.c contains functions which are used by python importers to solve the import of faces with holes. I will look at this next and see if i can solve this issue. However it can take a few days.
Author
Owner

Another example of a simple file (manually simplified): WINCAR75.dae
The file opens fine-ish in SketchUp, but in Blender it presents the same problem as the original one.

Another example of a simple file (manually simplified): [WINCAR75.dae](https://archive.blender.org/developer/F310325/WINCAR75.dae) The file opens fine-ish in SketchUp, but in Blender it presents the same problem as the original one.
Author
Owner

In case it helps debugging, this is the original WINCAR75 as well as a triangulated version of its problematic part, and the original .fbx the collada files were exported from.

WINCAR75_all.zip

  • WINCAR75.fbx (original .fbx file, it won't import in Blender because it's ASCII)
  • WINCAR75_ngons.dae (original problematic .dae file)
  • WINCAR75_triangles.dae (triangulated .dae file)
  • ** . ** (textures, ..., ignore them)
In case it helps debugging, this is the original WINCAR75 as well as a triangulated version of its problematic part, and the original .fbx the collada files were exported from. [WINCAR75_all.zip](https://archive.blender.org/developer/F310801/WINCAR75_all.zip) * **WINCAR75.fbx** (original .fbx file, it won't import in Blender because it's ASCII) * **WINCAR75_ngons.dae** (original problematic .dae file) * **WINCAR75_triangles.dae** (triangulated .dae file) * ** *.* ** (textures, ..., ignore them)
Author
Owner

As requested, the top plane only: WINCAR75_top.dae

As requested, the top plane only: [WINCAR75_top.dae](https://archive.blender.org/developer/F310883/WINCAR75_top.dae)
Author
Owner

And at last, a very simple face with a hole: holes.dae

modo_hole.jpg

And at last, a very simple face with a hole: [holes.dae](https://archive.blender.org/developer/F310920/holes.dae) ![modo_hole.jpg](https://archive.blender.org/developer/F310910/modo_hole.jpg)
Member

Collada supports faces with holes by using at least 2 approaches:

  • You can define a face and a set of holes within a element with one subelement

    that contains the polygon (as closed loop of verts) and one or more subelements each containing a hole (also as closed loop of verts).

  • You can define a big loop where the inner holes are connected with the polygon's outer loop via edges : Image2.png where each such an edge is used twice, once to enter the inner loop and once to exit the loop again.

Now the task is to break up the "face with holes" into a set of subfaces that contain no holes and no duplicate edges. (to be continued...)

Collada supports faces with holes by using at least 2 approaches: - You can define a face and a set of holes within a <ph> element with one subelement <p> that contains the polygon (as closed loop of verts) and one or more subelements <h> each containing a hole (also as closed loop of verts). - You can define a big loop where the inner holes are connected with the polygon's outer loop via edges : ![Image2.png](https://archive.blender.org/developer/F310957/Image2.png) where each such an edge is used twice, once to enter the inner loop and once to exit the loop again. Now the task is to break up the "face with holes" into a set of subfaces that contain no holes and no duplicate edges. (to be continued...)
Author
Owner

@GaiaClary now that we have a more clear picture of when the problem happens, how much trouble would be to add a printing warning for those cases? Knowing which of my imported files are broken would help my use case tremendously already.

@GaiaClary now that we have a more clear picture of when the problem happens, how much trouble would be to add a printing warning for those cases? Knowing which of my imported files are broken would help my use case tremendously already.

This issue was referenced by b000a01725

This issue was referenced by b000a01725aff8715ad24b9202ed711a1edffec5
Member

Changed status from 'Open' to: 'Resolved'

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

Changed status from 'Resolved' to: 'Open'

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

Automatic close was wrong. this is work in progress (we still want to support the import of polygons with holes).

Automatic close was wrong. this is work in progress (we still want to support the import of polygons with holes).
Gaia Clary was unassigned by Dalai Felinto 2019-12-23 16:37:08 +01:00
Author
Owner

Added subscriber: @GaiaClary

Added subscriber: @GaiaClary
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
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#48389
No description provided.