FBX Importer, transparency of principled is connected to incorrect color (not alpha) output #85234

Closed
opened 2021-01-30 19:36:25 +01:00 by Ralf Schwarz · 7 comments

System Information
Operating system: ubuntu linux 18.04
Graphics card: nvidia gtx 1070 ti

Blender Version
Broken: all versions since 2.79 (or when principled shader was used first in fbx import, also 2.91)

Short description of error
Export and import an object with diffuse texture including transparency. When imported the output of the diffuse texture (color) is plugged into alpha of the principled. Must be alpha to alpha.

Exact steps for others to reproduce the error
see description. Easy to reproduce by exporting and re-importing the object. Normally not a big deal, I guess. I would have fixed it, but I am not familiar with bpy.extras node_shader_utils ..

**System Information** Operating system: ubuntu linux 18.04 Graphics card: nvidia gtx 1070 ti **Blender Version** Broken: all versions since 2.79 (or when principled shader was used first in fbx import, also 2.91) **Short description of error** Export and import an object with diffuse texture including transparency. When imported the output of the diffuse texture (color) is plugged into alpha of the principled. Must be alpha to alpha. **Exact steps for others to reproduce the error** see description. Easy to reproduce by exporting and re-importing the object. Normally not a big deal, I guess. I would have fixed it, but I am not familiar with bpy.extras node_shader_utils ..
Author

Added subscriber: @black-punkduck

Added subscriber: @black-punkduck
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Can confirm the behavior in a 2.90 [it was not strictly a bug since sometimes the color is meant to be used as an alpha].

This changed though in 0696eaa3e8, so now the images Alpha socket should be used (instead of the Color).
And was improved further in ae82410329

Please try a fresh build from https://builder.blender.org/download/ and report back if the issue persists for you even in those fresh builds.

Can confirm the behavior in a 2.90 [it was not strictly a bug since sometimes the color is meant to be used as an alpha]. This changed though in 0696eaa3e8, so now the images `Alpha` socket should be used (instead of the `Color`). And was improved further in ae82410329 Please try a fresh build from https://builder.blender.org/download/ and report back if the issue persists for you even in those fresh builds.
Author

i did not expect the change in the node shader wrapper ... I checked io_scene_fbx for a code change, so no wonder, I searched at wrong place. ;)

The tweak is good and will help, saving and loading blender files as fbx is "more correct" now.
I know that there will be always a difference between fbx and blender materials ... I struggle with unreal engine here and there.

But yes all okay in e.g. the 2.92 beta.

Thank you for your help. Ticket can be closed

i did not expect the change in the node shader wrapper ... I checked io_scene_fbx for a code change, so no wonder, I searched at wrong place. ;) The tweak is good and will help, saving and loading blender files as fbx is "more correct" now. I know that there will be always a difference between fbx and blender materials ... I struggle with unreal engine here and there. But yes all okay in e.g. the 2.92 beta. Thank you for your help. Ticket can be closed
Member

Changed status from 'Needs User Info' to: 'Resolved'

Changed status from 'Needs User Info' to: 'Resolved'
Philipp Oeser self-assigned this 2021-02-01 16:45:34 +01:00
Member

Thx getting back, will close then.

Thx getting back, will close then.
Sign in to join this conversation.
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
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#85234
No description provided.