Obj import will error if texture coordinates do not have 2 values #68249
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#68249
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
Operating system: Windows 10 version 1803
Graphics card: NVIDIA GeForce GTX1060 3GB
Blender Version
Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: f6cb5f54494e
Worked:
According to the OBJ spec, a texture coordinate is defined by the following:
vt u v w
It also says that v and w are optional, and have a default value of 0.
064c9f30c1/Specs/obj_spec.txt (L330-L348)
I've encountered an OBJ export library that will omit v and w if they are 0. When attempting to import files created by this exporter into blender, the importer throws a python error.
Traceback (most recent call last):
RuntimeError: internal error setting the array
Personally, I don't like that this library will omit the second coordinate, but I can't fault the developer for creating a file that technically follows the spec.
Exact steps for others to reproduce the error
cube.obj
I cheated a little bit with this file, as I actually exported it from blender, then changed it to match what the other exporter does. It throws the same error.
Added subscriber: @Jcw87
Obj import will error if vertex coordinates do not have 2 valuesto Obj import will error if texture coordinates do not have 2 valuesAdded subscribers: @mont29, @lichtwerk
Confirmed, should be supported I guess...
@mont29: mind checking?
This issue was referenced by
19166e3172
Changed status from 'Open' to: 'Resolved'