FBX/OBJ Import - Show Backfaces makes object look wrong and is ON by default. #89630
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
11 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#89630
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.19041-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 466.11
Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-06-20 22:39, hash:
6afafc46f6
Worked: never
Short description of error
When importing an fbx (especially from external programs), which has a texture connected to the alpha channel, blender automatically does two things:
This in turn always looks like something is wrong with the mesh (see #86661 (Material setting "show_transparent_back" (Show Backface) gives weird results)) and you have to disable "Show Backface" option manually
for all materials every time you import something that uses textures
Exact steps for others to reproduce the error
See video for example ILOTlJyCf9.mp4
Added subscriber: @Limarest
#97588 was marked as duplicate of this issue
blender/blender-addons#88955 was marked as duplicate of this issue
#94966 was marked as duplicate of this issue
#91206 was marked as duplicate of this issue
Added subscriber: @scurest
Added subscriber: @HDMaster84
Don't you usually get transparent textures on models like grass etc? There is would be indeed correct to use alpha blend and show backfaces. The problem with rendering the transparent objects with solid geometry is that the faces in an object are not ordered back to front. You can change the order by using Randomize for example or using Sort Elements > View Z Axis to get correct order for rendering.
The default could also be changed to Alpha Hashed, because that mode does not have the same issues (but other issues like noise). Show Backfaces should be probably kept though, because of the grass example.
Transparent textures are used for everything, and there are times when you export something from other softwares and Blender just connects default texture's alpha by default.
I am not talking about removing the setting, but adjusting defaults so artists wouldn't need to change them manually. Be it Alpha Blend with Show Backfaces turned off or Alpha Hashed by default is not for me to decide, both work for me.
I asked Clement before in Blender Chat, if they are any reasons for these defaults. He told me that Show Backfaces turned on by default was to keep compatibility with Blender Internal, but that's not a deal breaker
Since we got rid of Blender Internal ages ago and it is time for 3.0, it should be fine to adjust defaults
Added subscriber: @zanqdo
Alpha hashed, even if reliable, is incredibly noisy. I'd suggest copying what the GLTF IO does.
GLTF will leave it as Alpha Opaque if unused or Alpha Blend if used.
What could work is an importer option to set the type of Alpha
Added subscriber: @lichtwerk
For reference, that drawing behavior is also reported in #86661 (Material setting "show_transparent_back" (Show Backface) gives weird results)
Added subscriber: @mrlooi
Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Dont think this can be called a bug.
Note there has been some discussion in blender/blender-addons#83749 /
ae82410329
.Note also that expectations regarding used / unused Alpha might differ (some might expect this to be hooked up by default, some may not).
Same for
Show Backfaces
(some might want this ON, some might want this OFF).Personally, I wouldnt mind having options for these, but still, we'd need to define what the defaults should be.
This probably just needs a design decission.
Added subscribers: @vuttywrld, @Alaska, @Jeroen-Bakker, @fclem
Any traction regarding this behavior? It's the same for OBJ as we now know.
As Jeroen mentioned in a linked closed task, "Show Backfaces" being ON by default means that Eevee and Cycles also look more different by default, which should be something to avoid.
I think we really need a new import setting for handling alpha in textures.
To add insult to injury, you can't use ALT+Click or "Copy To Selected" to turn "Show Backfaces" off or change Blend mode for all selected objects.
This means that unless user is willing to dabble into scripting, this behavior makes unnecessary assumptions that result in tedious monkey-work of fixing the imported models one-by one.
Added subscriber: @HRbna
FBX Import - Show Backfaces makes object look wrong and is on by default.to FBX/OBJ Import - Show Backfaces makes object look wrong and is ON by default.Added subscribers: @wingdi, @PratikPB2123, @aras_p
This is still a problem. After importing anything that uses textures, I need to launch a script that would unset Blend Mode of all objects back to Opaque, because most of them don't need alpha.
I would really prefer to not have addons make guesses about textures alphas, or at least have a dropdown for disabling this behaviour
Added subscriber: @Clemens
Until this issue gets fixed here is a python one-liner to turn off the
show_transparent_back
for all materials.just open a python console inside blender and hit enter twice
Bildschirmaufnahme 2022-06-14 um 11.41.26.mov
Added subscriber: @ChrisMac
I hit this issue while importing some old meshes archived in trueSpace COB files. Managed to get a correct export to import in OBJ but the materials were inside out.
Each of these meshes had around 500-1000 materials, I sure wasn't going toggle this setting one at a time.
The python one liner is much appreciated but this really needs to be fixed or addressed in some way. Most users who hit this issue probably won't find this easy to deal with.
Hmm, looks like I also lost time investigating and filing the duplicate issue listed above today.
I guess there's two issues here?
Item 1 may be unavoidable if the scene description doesn't convey the actual material parameters correctly. Unsure if FBX and co. support something as fine-grained like that.
As for 2, this yields incorrect results and goes against what's documented in the manual: https://docs.blender.org/manual/en/dev/render/eevee/materials/settings.html#blend-mode
So we're kind of stuck. As long as it uses the 'BLEND' method, the results will likely be incorrect.
The fix in question is a 1-liner in the Blender-provided
node_shader_utils.py
script:can you create a pull request. solution seems fine.
I made PR #105585 which addresses the mentioned python script as well as the new OBJ importer. USD has the same "bug" but is being worked on as part of a different PR still under discussion.
I don't have many "real" assets here myself to try so I left the PR as a WIP. I'd appreciate any and all testing folks can do with their own files to see if this is good and safe.
That solves the most important case, which is when the alpha texture is all 1 so the material is morally opaque, which happens a lot with OBJ/FBX.
The downside is there are times when multiple layers are supposed to be visible. For example:
The other alternative, Alpha Hashed, always gives (an approximation to) the correct result. The downside is it's noisy.