Cycles: Bake Environment to geometry Error #56891

Closed
opened 2018-09-23 20:12:48 +02:00 by Paul Chambers · 8 comments

System Information
Windows 10 version 1803
Intel Core i7 3770k
Nvidia GTX 1080Ti

Blender Version
2.79b 2018-03-22 14:10

Description
Baking an HDRI environment to a plane creates unexpected results.

Exact steps for others to reproduce the error
Blender scene with an HDRI environment. Set up a ground plane and generate a UV. Add a material and associate a blank texture. Select Cycles bake environment with plane selected. Resulting bake of the HDRI environment appears stretched to a single center point.

To partly workaround the error - extrude the plane to a cube, recreate UVs with cube map or similar. Pack UVs then re-bake environment. This time three sides of the cube will bake the environment correctly, one side will fail per above

See attached image while shows a baked extruded plane with three sides correct, one (lower-left) showing the unexpected error.environment-bake.png

**System Information** Windows 10 version 1803 Intel Core i7 3770k Nvidia GTX 1080Ti **Blender Version** 2.79b 2018-03-22 14:10 **Description** Baking an HDRI environment to a plane creates unexpected results. **Exact steps for others to reproduce the error** Blender scene with an HDRI environment. Set up a ground plane and generate a UV. Add a material and associate a blank texture. Select Cycles bake environment with plane selected. Resulting bake of the HDRI environment appears stretched to a single center point. To partly workaround the error - extrude the plane to a cube, recreate UVs with cube map or similar. Pack UVs then re-bake environment. This time three sides of the cube will bake the environment correctly, one side will fail per above See attached image while shows a baked extruded plane with three sides correct, one (lower-left) showing the unexpected error.![environment-bake.png](https://archive.blender.org/developer/F4798343/environment-bake.png)
Author

Added subscriber: @PaulChambers

Added subscriber: @PaulChambers
Paul Chambers changed title from Cycles: Bake Environment to geometry to Cycles: Bake Environment to geometry Error 2018-09-23 20:13:08 +02:00

Added subscriber: @brecht

Added subscriber: @brecht

Please always attach a .blend file to reproduce the problem.

Please always attach a .blend file to reproduce the problem.
Author

Apologies @brecht {F4805524}- please see attached.

Apologies @brecht {[F4805524](https://archive.blender.org/developer/F4805524/HDRI_baking_bug_report.zip)}- please see attached.

The idea behind the "Environment" bake is that you set up e.g. a sphere or cube, to bake to a spherical or cube mapping. It basically traces ray from 0,0,0 through the current shading point towards the environment. So if you have a plane that goes through the origin you get this weird result.

What are you trying to bake onto this plane exactly? If you want to bake the reflection of the environment, it should be done by baking a Glossy pass, and the result will then depend on the specific BSDF and its roughness.

The idea behind the "Environment" bake is that you set up e.g. a sphere or cube, to bake to a spherical or cube mapping. It basically traces ray from 0,0,0 through the current shading point towards the environment. So if you have a plane that goes through the origin you get this weird result. What are you trying to bake onto this plane exactly? If you want to bake the reflection of the environment, it should be done by baking a Glossy pass, and the result will then depend on the specific BSDF and its roughness.
Author

Good to know. I've been working with a few folks on an idea for a shadow catcher material that not only catches the shadow but also accurately reflects the environment and any shadows cast (see chrome sphere lower left in attached example and node network) This method requires a ground plane shadow catcher that's baked with a 32bit environmental bake. I was able to achieve this by - as you say - creating a cube and deleting all but one side but had assumed it would work just with a plane.HDRI_test-4.jpg

Good to know. I've been working with a few folks on an idea for a shadow catcher material that not only catches the shadow but also accurately reflects the environment and any shadows cast (see chrome sphere lower left in attached example and node network) This method requires a ground plane shadow catcher that's baked with a 32bit environmental bake. I was able to achieve this by - as you say - creating a cube and deleting all but one side but had assumed it would work just with a plane.![HDRI_test-4.jpg](https://archive.blender.org/developer/F4806057/HDRI_test-4.jpg)

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Brecht Van Lommel self-assigned this 2018-09-24 15:33:17 +02:00

Ok, interesting! I don't think there's a bug here then.

Ok, interesting! I don't think there's a bug here 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#56891
No description provided.