Page MenuHome

Eevee does not respect Alpha Transparent setting in Rendered Viewport shading mode with an Environment Texture (HDRI) as the background
Closed, ResolvedPublic

Description

System Information
Operating system: Windows 10 64 bit
Graphics card: GTX 1070

Blender Version
Broken: 2.80.55, 14884cda1ff5, 2019-04-13
Worked: Unknown

Short description of error
Eevee does not respect Alpha Transparent setting in Rendered Viewport shading mode with an Environment Texture (HDRI) as the background. Works when an individual render is made but not in 3D Viewport.

Exact steps for others to reproduce the error

  1. Start with a new .blend file
  2. Add an Environment Texture to the background (HDRI)
  3. Select Eevee as the render engine
  4. Under Sampling -> Film tab select Alpha Transparent
  5. Set Viewport shading mode to Rendered
  6. Note that Viewport still shows the HDRI in the background{F6944875}

  1. Click Render Image, note that rendered image background is transparent as it should be

Event Timeline

Philipp Oeser (lichtwerk) lowered the priority of this task from 90 to 50.Apr 15 2019, 10:14 AM

Can confirm, will have a quick look...

This seems to be on purpose [dont know the reason for this though...]

bool DRW_state_draw_background(void)
{
	if (DRW_state_is_image_render() == false) {
		return true;
	}
	return DST.options.draw_background;
}

@Clément Foucault (fclem): is this by design? seems wrong to me, but there might be a reason for this...

This is in order to save memory and performance. Having a full 16bit per channel textures is very heavy for the post process chain.

I might consider adding this if we agree on a setting to turn it off. Like Show Alpha In 3D View.

Clément Foucault (fclem) changed the task status from Unknown Status to Resolved.May 1 2019, 12:33 PM

Was implemented by rBb581f1929287