Cycles: Volumes in the world shader behave strangle with some textures #92027

Open
opened 2021-10-08 01:18:38 +02:00 by Alaska · 6 comments
Member

System Information:
Operating system: Linux-5.14.0-1-amd64-x86_64-with-glibc2.32 64 Bits
Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 470.63.01

Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-10-07 19:35, hash: 23791db145, and every version between master at 2.81 (That is how far I tested).
Worked: Unsure

Short description of error:
When using certain procedural textures in the volume output of the world shader in Cycles, you get unexpected results.

Exact steps for others to reproduce the error:

  1. Create a scene in Cycles.
  2. Change to the rendered viewport.
  3. Open a shader editor and change to the World shader and delete the Background node.
  4. In the World Shaderadd a Magic Texture node and connect one of the outputs to the Volume socket on the World Output node.
  5. You will noticed that in the viewport you can see the Magic Texture is projecting light onto objects in the scene, but you can't see the Magic Texture directly.
  6. Place a Color Ramp node between the Magic Texture and the World Output nodes. Now you can see the Magic Texture in the viewport.

Another test:

  1. Create a scene in Cycles.
  2. Change to the rendered viewport.
  3. Open a shader editor and change to the World shader and delete the Background node.
  4. Add a Noise Texture node and connect an output to the Volume socket on the World Output node.
  5. Notice that you can see the impact the Noise Texture is having on the scene, but you can't see the Noise Texture
  6. Place a Color Ramp between the Noise Texture and the World Output nodes. You still can't see the Nosie Texture in the scene.
  7. Place a Volume Scatter node in the World Shader, connecting the output to the Volume socket on the World Output node and connect the output of the Color Ramp node to the Density input of the Volume Scatter node. You can now see the noise texture in the volume if you have a light in your scene.
  8. Select the left most handle (the handle that is black) in the Color Ramp node and drag it closer to the position 0.5. You will see the results you expect until you reach the position 0.5 where the volume will seem to disappear from your scene. Yet when you look at objects in the scene, the light reaching them is still affected by a volume shader you can't see.

Here's a video demonstrating this:
Volumetrics not visibile in viewport in certain sitautions.mp4

**System Information:** Operating system: Linux-5.14.0-1-amd64-x86_64-with-glibc2.32 64 Bits Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 470.63.01 **Blender Version** Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-10-07 19:35, hash: `23791db145`, and every version between master at 2.81 (That is how far I tested). Worked: Unsure **Short description of error:** When using certain procedural textures in the volume output of the world shader in Cycles, you get unexpected results. **Exact steps for others to reproduce the error:** 1. Create a scene in Cycles. 2. Change to the rendered viewport. 3. Open a shader editor and change to the `World` shader and delete the `Background` node. 4. In the `World Shader`add a `Magic Texture` node and connect one of the outputs to the `Volume` socket on the `World Output` node. 5. You will noticed that in the viewport you can see the `Magic Texture` is projecting light onto objects in the scene, but you can't see the `Magic Texture` directly. 6. Place a `Color Ramp` node between the `Magic Texture` and the `World Output` nodes. Now you can see the `Magic Texture` in the viewport. Another test: 1. Create a scene in Cycles. 2. Change to the rendered viewport. 3. Open a shader editor and change to the `World` shader and delete the `Background` node. 4. Add a `Noise Texture` node and connect an output to the `Volume` socket on the `World Output` node. 5. Notice that you can see the impact the `Noise Texture` is having on the scene, but you can't see the `Noise Texture` 6. Place a `Color Ramp` between the `Noise Texture` and the `World Output` nodes. You still can't see the `Nosie Texture` in the scene. 7. Place a `Volume Scatter` node in the `World Shader`, connecting the output to the `Volume` socket on the `World Output` node and connect the output of the `Color Ramp` node to the `Density` input of the `Volume Scatter` node. You can now see the noise texture in the volume if you have a light in your scene. 8. Select the left most handle (the handle that is black) in the `Color Ramp` node and drag it closer to the position `0.5`. You will see the results you expect until you reach the position `0.5` where the volume will seem to disappear from your scene. Yet when you look at objects in the scene, the light reaching them is still affected by a volume shader you can't see. Here's a video demonstrating this: [Volumetrics not visibile in viewport in certain sitautions.mp4](https://archive.blender.org/developer/F10867778/Volumetrics_not_visibile_in_viewport_in_certain_sitautions.mp4)
Author
Member

Added subscriber: @Alaska

Added subscriber: @Alaska
Author
Member

For anyone wanting to triage this report: I just thought I would add that I have tested this again and can still reproduce it on the latest master

For anyone wanting to triage this report: I just thought I would add that I have tested this again and can still reproduce it on the latest master
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

@Alaska , Neither ColorRamp node shows texture in viewport (on current master).
In 3.0.0 it works as you said. Not tested on intermediate build (will do that later)

3.1.0 3.0.0
image.png image.png
@Alaska , Neither ColorRamp node shows texture in viewport (on current master). In 3.0.0 it works as you said. Not tested on intermediate build (will do that later) | 3.1.0 | 3.0.0 | | -- | -- | | ![image.png](https://archive.blender.org/developer/F12812330/image.png) | ![image.png](https://archive.blender.org/developer/F12812331/image.png) |
Author
Member

In #92027#1291510, @PratikPB2123 wrote:
@Alaska , Neither ColorRamp node shows texture in viewport (on current master).
In 3.0.0 it works as you said. Not tested on intermediate build (will do that later)

| 3.1.0 | 3.0.0 |
| image.png | image.png |

I can confirm this in the latest master.

> In #92027#1291510, @PratikPB2123 wrote: > @Alaska , Neither ColorRamp node shows texture in viewport (on current master). > In 3.0.0 it works as you said. Not tested on intermediate build (will do that later) > > | 3.1.0 | 3.0.0 | > | ![image.png](https://archive.blender.org/developer/F12812330/image.png) | ![image.png](https://archive.blender.org/developer/F12812331/image.png) | I can confirm this in the latest master.
Philipp Oeser removed the
Interest
Render & Cycles
label 2023-02-09 14:02:59 +01: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
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#92027
No description provided.