export .obj broke UVs #49865
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#49865
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
win7 64 k2200
Blender Version
Broken: 2.78a
Worked: 2.76
Short description of error
export OBJ corrupt a little bit the uv, no problem with FBX.
Exact steps for others to reproduce the error
open the file, export the monkey in obj format, import again in blender and compare the uvs (by merging the two objects). you can notice a slight difference.
thankyou!
UV_bug.blend
Changed status to: 'Open'
Added subscriber: @MassimilianoPuliero
Added subscriber: @mont29
Changed status from 'Open' to: 'Archived'
Thanks for the report, but that’s not really a bug here, issue is, OBJ being a pure textual format, we have to round float numbers (to the forth decimal currently) to avoid generating insanely big files. This of course involves a small loss of data - that’s why binary formats (like FBX) should be used when in need of full float precision.
Thanks for the reply,
But objects exported with Blender 2.77 or 2.76 doesn't give me the same error.
can you please take a look into it.
thanks again.
I copied the 'io_scene_obj' folder from 2.77 and pasted in 2,78, now Blender export the uvs correctly.
I compared the 2 codes and I see some differences on line 575 and 546
Blender 2.77
fw('vt %.6f %.6f\n' % uv[:])
Blender 2.78
fw('vt %.4f %.4f\n' % uv[:])
thankyou
Changed status from 'Archived' to: 'Open'
Changes comes from
887fad6a01
(fixing blender/blender#39879).That’s the usual trade-of of float precision here actually, too much precision might make UV points actually merged look like split (due to errors introduced during float computation), too low precision will reduce exactness…
Fixing blender/blender#39879 could also be done by using a 'limited-precision comparison' instead of exact comparison, afraid it will makes things slower though… Will investigate further.
Uh, actually, was wrong it’s
c553d7c0eb
the culprit here… Not totally sure why precision was reduced here, so will restore it back to 6 decimals for now.This issue was referenced by
afde50f681
Changed status from 'Open' to: 'Resolved'