Object Importer Error #67889
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#67889
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-10.0.17134 64 Bits
Graphics card: Intel(R) HD Graphics 620 Intel 4.5.0 - Build 23.20.16.4973
Blender Version
Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-24 14:22, hash:
blender/blender@507ffee6e1
Worked: (optional)
Short description of error
Certain Obj files will not import and throws an error
Traceback (most recent call last):
ValueError: math domain error
location: :-1
Exact steps for others to reproduce the error
Use Release candidate 3 and just use the Object:
3DS - The Legend of Zelda Ocarina of Time 3D - Gerudo Mask.zip
Added subscriber: @ConsUme
Added subscriber: @lichtwerk
Confirmed, checking...
Added subscriber: @mont29
Looks like the material file specifies a negative specular exponent... [this should not be allowed imho]
I guess we should just clamp this to min 0.0, but will check with others...
Also: seeing this has actually been exported from blender: checked, and we actually allow negative specular exponent [if roughness is above 1.0 -- which we seem to allow as well...] to be exported [should not be allowed I guess, see above...]
Not sure if this could/should be clamped in our material (node) system, or on export, will check with others as well...
CC @mont29
Added subscriber: @dr.sybren
This code can only produce negative specularity if the roughness is a complex number. Squaring the number using
spec *= spec
makes it absolute, hence nonnegative.IMO we should handle out-of-range values gracefully, either rejecting the material altogether or clamping the values.
oops, true, wasnt paying attention that it gets squared... I wonder how this got exported from blender then (I mean how it got negative)?
Exported from Blender 2.75.... That's an old geezer, who knows what it was doing at that time? ;)
Seriously, yes, we should clamp those values on import to a valid range, just safer. Probably even in the material wrapper thingy, such that all IO scripts could benefit from it.
This issue was referenced by
27381001d7
Changed status from 'Open' to: 'Resolved'