Materials with transparency not properly rendered in viewport in Material Render mode (cycles) #45789

Closed
opened 2015-08-13 17:48:19 +02:00 by Dolphin Dream · 9 comments
Member

System Information
OS: Ubuntu 14.04 (64 bit)
RAM : 7.8 GiB
CPU: Intel® Core™ i5-2400 CPU @ 3.10GHz × 4
GFX: GeForce GT 520/PCIe/SSE2

Blender Version
2.75 (hash: 65c3207)

Short description of error
Using cycles engine.. materials with transparency are not properly rendered in viewport in Material Render mode. The objects having these transparent materials render correctly in Rendered mode.

Exact steps for others to reproduce the error
See the attached blend file and screenshots. Basically create a background object (sphere).. create a quad and place it in front of the background object. Add a material to the quad with a combination of emission and transparency shader modulated by some image (a black and white masking image). Enable Rendered mode in the viewport (this works fine, showing transparency) .. then enable the Material render mode (this does not render the transparent parts properly.. the transparent parts are opaque).

A solution I found for this (though this is a HACK in my opinion) is to switch to Game Engine, change the Alpha Blend mode from opaque to Alpha Blend, then switch back to Cycle engine. After this both the Material and the Rendered preview modes show the transparent parts properly in the viewport. I would think that the preview rendering should work as expected in the Material render mode without jumping through hoops.. or at least give the option to change the alpha blend modes directly in the UI available under cycles engine. In general having settings "hidden" under other engine modes (e.g. game engine) that affect the way things render under cycles engine is weird.. bad.. unacceptable.. (add your own adjective here) :)

The 3 screenshots show the viewport preview in Rendered mode.. in Material mode (before game engine/alpha blend switch) .. and in Material mode (after game engine/alpha blend switch).
materialRenderViewportBug.blend
Screenshot from 2015-08-13 11:18:00.png
Screenshot from 2015-08-13 11:18:16.png
Screenshot from 2015-08-13 11:18:34.png

**System Information** OS: Ubuntu 14.04 (64 bit) RAM : 7.8 GiB CPU: Intel® Core™ i5-2400 CPU @ 3.10GHz × 4 GFX: GeForce GT 520/PCIe/SSE2 **Blender Version** 2.75 (hash: 65c3207) **Short description of error** Using cycles engine.. materials with transparency are not properly rendered in viewport in Material Render mode. The objects having these transparent materials render correctly in Rendered mode. **Exact steps for others to reproduce the error** See the attached blend file and screenshots. Basically create a background object (sphere).. create a quad and place it in front of the background object. Add a material to the quad with a combination of emission and transparency shader modulated by some image (a black and white masking image). Enable Rendered mode in the viewport (this works fine, showing transparency) .. then enable the Material render mode (this does not render the transparent parts properly.. the transparent parts are opaque). A solution I found for this (though this is a HACK in my opinion) is to switch to Game Engine, change the Alpha Blend mode from opaque to Alpha Blend, then switch back to Cycle engine. After this both the Material and the Rendered preview modes show the transparent parts properly in the viewport. I would think that the preview rendering should work as expected in the Material render mode without jumping through hoops.. or at least give the option to change the alpha blend modes directly in the UI available under cycles engine. In general having settings "hidden" under other engine modes (e.g. game engine) that affect the way things render under cycles engine is weird.. bad.. unacceptable.. (add your own adjective here) :) The 3 screenshots show the viewport preview in Rendered mode.. in Material mode (before game engine/alpha blend switch) .. and in Material mode (after game engine/alpha blend switch). [materialRenderViewportBug.blend](https://archive.blender.org/developer/F223974/materialRenderViewportBug.blend) ![Screenshot from 2015-08-13 11:18:00.png](https://archive.blender.org/developer/F223977/Screenshot_from_2015-08-13_11_18_00.png) ![Screenshot from 2015-08-13 11:18:16.png](https://archive.blender.org/developer/F223976/Screenshot_from_2015-08-13_11_18_16.png) ![Screenshot from 2015-08-13 11:18:34.png](https://archive.blender.org/developer/F223975/Screenshot_from_2015-08-13_11_18_34.png)
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @MariusGiurgi

Added subscriber: @MariusGiurgi

Added subscriber: @mont29

Added subscriber: @mont29
Sergey Sharybin was assigned by Bastien Montagne 2015-08-13 17:58:06 +02:00

Sounds bad indeed…

Sounds bad indeed…

Added subscribers: @Psy-Fi, @dfelinto

Added subscribers: @Psy-Fi, @dfelinto

This is something where @dfelinto and @Psy-Fi might me interested as well. Seems we just need to ignore game.alpha_blend for new shading system?

This is something where @dfelinto and @Psy-Fi might me interested as well. Seems we just need to ignore game.alpha_blend for new shading system?

This issue was referenced by ad0c2d6cbb

This issue was referenced by ad0c2d6cbb99aa70ae30b072ac6724a151debe85

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

This issue was referenced by blender/cycles@76c168fa66

This issue was referenced by blender/cycles@76c168fa66417c9dde98bcc4c60073fa9cfccdf6
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
4 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#45789
No description provided.