export obj with material metallic will from 0 to 1 #60150
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
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#60150
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 lastest
Graphics card:gtx980ti
Blender Version
blender 2.80.39
export a object with material when metallic set 0, re-import this obj object, metallic will change to 1. but if set 0.01 or something number just not 0 when export and that not going to happened.
Added subscriber: @zhanghua
Added subscriber: @lichtwerk
Confirmed, checking...
Added subscriber: @dfelinto
Please attach a sample file, and please specify the hash of the Blender you used for testing (e.g.,
4d8ed937f2
)output-obj.obj
output-obj.mtl
export-this-cube-to-obj.blend
Hash is today. by the way this bug always have when 2.80 have export obj feature.
Added subscribers: @mont29, @brecht
blender/blender-addons@f9c31589f6 made some changes here.
Since obj materials are "old school" and dont really support PBR we are abusing the
ambient
term for metallicon export:
on import:
It kind of makes sense to have "old school" ambient when metallic is zero, on the other hand this causes described behavior on import.
Without digging real deep I see two solutions:
illum
< 3 [indicates no Reflection] on import and set metallic to zero then [<< this one has my vote...]P881: #60150 snippet
@mont29, @brecht: what do you think?
@lichtwerk Also think solution #2 is better, please add a comment to that line about meaning of
illum < 3
though. ;)And not sure this is the right place/way to do that, would rather add an
else
toif do_reflection:
condition (line 259 currently)?@mont29: generally agree, but putting it in the 259 area will fail if you only have one material, see
(that is a bit worrying actually, I guess some other stuff will fail as well if you only have one material...)
Regarding this report: would prefer to put it like in P881, move on and have a look at the "finalize-mat-not-doing-its-thing-with-only-one-material" later... OK?
@lichtwerk arg! you are right, finalize is not called for last material (not relevant how many mats there are)!!! That I will fix first, then we can put your fix in (new) finalize func, as it should be :)
Done in blender/blender-addons@edc3489136.
This issue was referenced by blender/blender-addons@40340832e3
Changed status from 'Open' to: 'Resolved'