obj export degenerate mesh #52833
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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-addons#52833
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 7 x64
Blender Version
Broken: 2.79 release and latest master
Short description of error
meshes exported with as obj are sometime degenerated
Exact steps for others to reproduce the error
Open attached file and export as obj, you get this (left is original, right is exported and then imported):
bug obj export.blend
Changed status to: 'Open'
Added subscriber: @bliblubli
just tested, collada export doesn't has this bug
Added subscriber: @VukGardasevic
The error doesn't show up when the faces are triangulated before export.
The mesh is quite messy.
it's the result of boolean modifier on a cube. Bug happen with boolean modifier too (so a simple cube with cubes cutting it). I applied everything and removed some parts for simplification purpose.
Added subscriber: @ideasman42
Changed status from 'Open' to: 'Archived'
The error is in the polygon, not the OBJ import/export
There are some polygons which will display correctly by accident - that is, depending on the first vertex in the face and their exact shape, they may fill correctly or not.
The bug is that the boolean modifier produces a face with a zero area corner.
Could you submit a new report with the boolean used to create this data?
Edit, polygon filling could be made to better support this too, its such a border-line case though and prone to failing.
For example, by using doubles to calculate the area this can be made to work, but rotating the geometry immediately fails to fill properly.
@ideasman42 I'm working on a file for the boolean part. If collada and FBX exporter manage to export the geometry correctly, even with 0 area face, why not make the obj export also work in such cases like the 2 others?
Changed status from 'Archived' to: 'Open'
The boolean in question was applied many month ago already in the project files. Trying to recreate the same object with a modifier, the bug doesn't show up.
Nonetheless, as @VukGardasevic noted, triangulating manually before exporting works, while obj export with triangulate options fail. I see definitely potential here to deduplicate code by making use of Blender's API triangulate operator in the exporter and it would make the exporter to work properly.
Changed status from 'Open' to: 'Resolved'
This issue was referenced by
bfae39e9c1
This issue was referenced by
ce7685695e