When exporting models, global transformation matrix is automatically applied, with no option to change it. #75903
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#75903
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 436.02
Blender Version
Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-12-04 11:32, hash:
blender/blender@f1aa4d18d4
Worked: (optional)
Addon Information
Name: Wavefront OBJ format (3, 7, 0)
Author: Campbell Barton, Bastien Montagne
Short description of error
When you export a .obj file using this plugin, the vertices are exported in world coordinates instead of local coordinates, which causes issues when importing into other applications. There is no option to change this, so it is the only way you can export any models.
Exact steps for others to reproduce the error
Simply move a cube to any location other than the origin, then export as .obj with all the default settings. The cubes exported file contains vertex information that is in world coordinates instead of local coordinates. I have added an option in my local version of this file, but I think you should add it to the actual program.
In init.py line 313 I added
and at line 354 I added
Then in export_obj.py I added the options in the export functions called:
Then, I added a simple if statement around the global transformation application around line 365:
Please consider adding this option to the plugin, I have laid out all the necessary steps, albeit I may have missed some, but it's not that complicated and will hopefully help future developers from being misled about the contents of their exported OBJ files.
Added subscriber: @ambrosiogabe
Added subscriber: @ankitm
If that is working correctly, you may submit a patch at https://developer.blender.org/differential/diff/create/. Also read the links given at the top for guidance.