Variance shadow maps (VSM) work incorrectly in the BGE #43984

Closed
opened 2015-03-13 14:43:55 +01:00 by Sybren A. Stüvel · 9 comments

System Information
Ubuntu 14.10, GeForce GTS 450

Blender Version
Broken: tested on 2.69, 2.71 and 2.74-RC1, and self-built 61eab743f1, and all are broken
Worked: haven't seen it working

Short description of error
Spot lamps with shadow type set to Variance result in a darker scene than in the viewport. It looks like the shadows are rendered correctly, but the non-shadow parts of the scene are rendered too dark:

snapshot8.png

Exact steps for others to reproduce the error

  • open bge_variance_shadow_test.blend
  • observe the lighting of the scene, it should match the left side of the above screenshot.
  • press - to start the BGE
  • observe the lighting of the scene, it should match the left side of the above screenshot, but it matches the right side.

Confirmed by @JorgeBernalMartinez as mentioned in #bgecoders:

13:51  lordloki> sybren: it seems that when we are in bge the shadow color is mixed with light color
13:52  lordloki> only occurs when variance shadow is selected
13:52  lordloki> it seems a bug
**System Information** Ubuntu 14.10, GeForce GTS 450 **Blender Version** Broken: tested on 2.69, 2.71 and 2.74-RC1, and self-built 61eab743f1377fdfcf44f2e4928290a3fc4ccfea, and all are broken Worked: haven't seen it working **Short description of error** Spot lamps with shadow type set to Variance result in a darker scene than in the viewport. It looks like the shadows are rendered correctly, but the non-shadow parts of the scene are rendered too dark: ![snapshot8.png](https://archive.blender.org/developer/F150544/snapshot8.png) **Exact steps for others to reproduce the error** - open [bge_variance_shadow_test.blend](https://archive.blender.org/developer/F150546/bge_variance_shadow_test.blend) - observe the lighting of the scene, it should match the left side of the above screenshot. - press - [x] to start the BGE - observe the lighting of the scene, it *should* match the left side of the above screenshot, but it matches the right side. Confirmed by @JorgeBernalMartinez as mentioned in #bgecoders: ``` 13:51 lordloki> sybren: it seems that when we are in bge the shadow color is mixed with light color 13:52 lordloki> only occurs when variance shadow is selected 13:52 lordloki> it seems a bug ```
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren
Author
Member

Added subscriber: @JorgeBernalMartinez

Added subscriber: @JorgeBernalMartinez
Member

Added subscriber: @Moguri

Added subscriber: @Moguri
Member

more investigation.

Occurs when you unselect "cast" and/or "cast buffer shadows" from shadow panel under material (in this case floor's material)

more investigation. Occurs when you unselect "cast" and/or "cast buffer shadows" from shadow panel under material (in this case floor's material)

Added subscriber: @mziskandar

Added subscriber: @mziskandar

Can remake this bug (or crash) when playing with cast & receive too.testTex.blend
Log:
bpy.context.space_data.context = 'MATERIAL'
bpy.context.object.active_material.use_shadows = False
bpy.context.object.active_material.use_cast_shadows = False
bpy.context.object.active_material.use_shadows = True
bpy.context.object.active_material.use_cast_shadows = True
bpy.context.object.active_material.use_shadows = False
bpy.context.object.active_material.use_shadows = True
bpy.context.object.active_material.use_cast_shadows = False
bpy.context.object.active_material.use_cast_shadows = True
bpy.context.object.active_material.use_cast_shadows = False
bpy.context.object.active_material.use_shadows = False
bpy.context.object.active_material.use_cast_shadows = True (crash)

Can remake this bug (or crash) when playing with cast & receive too.[testTex.blend](https://archive.blender.org/developer/F151184/testTex.blend) Log: bpy.context.space_data.context = 'MATERIAL' bpy.context.object.active_material.use_shadows = False bpy.context.object.active_material.use_cast_shadows = False bpy.context.object.active_material.use_shadows = True bpy.context.object.active_material.use_cast_shadows = True bpy.context.object.active_material.use_shadows = False bpy.context.object.active_material.use_shadows = True bpy.context.object.active_material.use_cast_shadows = False bpy.context.object.active_material.use_cast_shadows = True bpy.context.object.active_material.use_cast_shadows = False bpy.context.object.active_material.use_shadows = False bpy.context.object.active_material.use_cast_shadows = True (crash)

Added subscriber: @panzergame

Added subscriber: @panzergame
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Aaron Carlisle self-assigned this 2019-06-29 02:12:01 +02:00
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
5 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#43984
No description provided.