Missing elements from Collada file (import) #48389
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#48389
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
Result in 3D Builder (Windows default .dae opener):
Reference object (photo):
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.
Changed status to: 'Open'
Added subscriber: @dfelinto
Added subscriber: @Sergey
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:
When i inspect the reported line in the collada file then i find this:
The interpretation of the reported error line is as follows:
This attribute is reported but ignored. We could improve the report by making it less verbose and more precise, for example like:
I am looking at this now and check if the collada parser reporter can be made more user friendly.
As requested, those are simpler sample files: holed_mesh.zip
They all import fine on SketchUp (where I generated them), but the non-triangulated ones do not ipmort correctly on Blender or Meshlab.
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.
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.
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
As requested, the top plane only: WINCAR75_top.dae
And at last, a very simple face with a hole: holes.dae
Collada supports faces with holes by using at least 2 approaches:
that contains the polygon (as closed loop of verts) and one or more subelements each containing a hole (also as closed loop of verts).
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...)
@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
Changed status from 'Open' to: 'Resolved'
Changed status from 'Resolved' to: 'Open'
Automatic close was wrong. this is work in progress (we still want to support the import of polygons with holes).
Added subscriber: @GaiaClary