Baking normal maps with Cycles and Open Shading Language enabled is broken. #52371

Closed
opened 2017-08-12 19:29:20 +02:00 by Michael Schmeling · 7 comments

System Information
CPU: Intel i7 870 2.93 GHz
RAM: 16 GB
GFX: NVIDIA Geforce GT 420
OS: Windows 7 Home 64 bit
Drivers: NVIDIA 9.18.13.4752

Blender Version
Blender: 2.79c 5e9132b Release Candidate 2017-08-01 17:31

Short description of error
Baking normal maps with Cycles and Open Shading Language enabled gives blank normal map.

Exact steps for others to reproduce the error

  • Open the file OSLTest.blend

  • In the Render panel press 'Bake' (with bake type 'Normal') -> a correct normal map is baked.

  • Now enable 'Open Shading Language' in render settings.

  • Press 'Bake' again -> the normal map is rendered but remains blank. I guess this is a bug. (Note that the project does not actually use any OSL, checking the options is enough for the bug to appear.)

The same happens with Blender 2.78 (official)
OSLTest.blend

system-info.txt

**System Information** CPU: Intel i7 870 2.93 GHz RAM: 16 GB GFX: NVIDIA Geforce GT 420 OS: Windows 7 Home 64 bit Drivers: NVIDIA 9.18.13.4752 **Blender Version** Blender: 2.79c 5e9132b Release Candidate 2017-08-01 17:31 **Short description of error** Baking normal maps with Cycles and Open Shading Language enabled gives blank normal map. **Exact steps for others to reproduce the error** - Open the file OSLTest.blend - In the Render panel press 'Bake' (with bake type 'Normal') -> a correct normal map is baked. - Now enable 'Open Shading Language' in render settings. - Press 'Bake' again -> the normal map is rendered but remains blank. I guess this is a bug. (Note that the project does not actually use any OSL, checking the options is enough for the bug to appear.) The same happens with Blender 2.78 (official) [OSLTest.blend](https://archive.blender.org/developer/F708397/OSLTest.blend) [system-info.txt](https://archive.blender.org/developer/F708398/system-info.txt)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @cgmike

Added subscriber: @cgmike

Added subscribers: @brecht, @dfelinto

Added subscribers: @brecht, @dfelinto
Brecht Van Lommel was assigned by Dalai Felinto 2017-08-29 10:41:30 +02:00

To be clear, OSL baking works fine. The issue is that "Displacement" normal map baking doesn't work with OSL.

For the records here is an example of normal map baking working fine when not using the displacement socket:

OSLTest2.blend

When you turn on OSL all the nodes are replaced by their OSL counterpart. Even if you are not using the (OSL) Script node.

@brecht do you have any clues on what is happening here? (original OSLTest.blend, not this OSLTest2.blend)

To be clear, OSL baking works fine. The issue is that "Displacement" normal map baking doesn't work with OSL. For the records here is an example of normal map baking working fine when not using the displacement socket: [OSLTest2.blend](https://archive.blender.org/developer/F738066/OSLTest2.blend) When you turn on OSL all the nodes are replaced by their OSL counterpart. Even if you are not using the (OSL) Script node. @brecht do you have any clues on what is happening here? (original OSLTest.blend, not this OSLTest2.blend)

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

This was fixed as part of b5f8063fb9, it should work in the latest builds from https://builder.blender.org/download/.

This was fixed as part of b5f8063fb9, it should work in the latest builds from https://builder.blender.org/download/.

I must have tried with an old Blender, my bad. Thanks brecht

I must have tried with an old Blender, my bad. Thanks brecht
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
3 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#52371
No description provided.