Cycles volume low density cutoff #104504

Open
opened 2023-02-09 11:43:52 +01:00 by Thomas Kole · 4 comments

System Information
Operating system: Tested on Windows 10 and Ubuntu
Graphics card: Tested on various NVidia cards, as well as CPU rendering

Blender Version
Broken: 3.3.0
Worked: unknown

Short description of error

When rendering large volumes, such as this 2x2 Km fog around a terrain, super low densities (<0.000 01) are desired for atmospheric effects.

However, there seems to be a seemingly arbitrary cutoff at around 0.000012, where nothing is rendered.

image

Exact steps for others to reproduce the error
In this example, I am using a gradient from left to right to drive density from 0.00003 to 0.0.
As you can see, there's a sudden cutoff.

image

I can imagine that this is some sort of performance trick, so that it doesn't get hung up on low densities, but being able to adjust this cutoff value would be very handy.

Here's two BlenderArtists threads that also describe this issue.

https://blenderartists.org/t/low-density-volumes-dont-render-in-cycles-blender-3-0/1356018
https://blenderartists.org/t/volume-atmospherics-rendering-is-there-a-cutoff/1448963

**System Information** Operating system: Tested on Windows 10 and Ubuntu Graphics card: Tested on various NVidia cards, as well as CPU rendering **Blender Version** Broken: 3.3.0 Worked: unknown **Short description of error** When rendering large volumes, such as this 2x2 Km fog around a terrain, super low densities (<0.000 01) are desired for atmospheric effects. However, there seems to be a seemingly arbitrary cutoff at around 0.000012, where nothing is rendered. ![image](/attachments/32c4f82f-9f6b-4d75-af0f-24dd6affec83) **Exact steps for others to reproduce the error** In this example, I am using a gradient from left to right to drive density from 0.00003 to 0.0. As you can see, there's a sudden cutoff. ![image](/attachments/f96eb33b-13fe-4f64-b541-b56007d97fce) I can imagine that this is some sort of performance trick, so that it doesn't get hung up on low densities, but being able to adjust this cutoff value would be very handy. Here's two BlenderArtists threads that also describe this issue. https://blenderartists.org/t/low-density-volumes-dont-render-in-cycles-blender-3-0/1356018 https://blenderartists.org/t/volume-atmospherics-rendering-is-there-a-cutoff/1448963
Thomas Kole added the
Type
Report
Priority
Normal
Status
Needs Triage
labels 2023-02-09 11:43:53 +01:00
Thomas Kole changed title from Cycles volume density cutoff to Cycles volume low density cutoff 2023-02-09 11:45:05 +01:00

Hello. this not a bug, but just math. Final effect of volumetric on light trace can be approximate to limit:
color = Lim{step->0} E{n = 0; n += step; n->max dist} volume.color * volume.density * step
in this case, when step is non-zero, result can be very large and you have to control this by using gradients with some curvature like smoothstep. In your example, result very different between 0.001 and zero.

Hello. this not a bug, but just math. Final effect of volumetric on light trace can be approximate to limit: `color = Lim{step->0} E{n = 0; n += step; n->max dist} volume.color * volume.density * step` in this case, when step is non-zero, result can be very large and you have to control this by using gradients with some curvature like smoothstep. In your example, result very different between 0.001 and zero.
Author

I think there might be a misunderstanding.
The box spans the entire image above, the hard clip happens at 0.000012, any value below is the same as 0.0

Here's the same scene, but instead of 20Km, the terrain is 20m, and the density is interpolated from 0.003 to 0.0 to compensate. Now there is no such cutoff.

image

It's worth emphasising that those extremely low values (0.00001 and lower) are not a weird edge case, but necessary for rendering large terrain realistically.

I think there might be a misunderstanding. The box spans the entire image above, the hard clip happens at 0.000012, any value below is the same as 0.0 Here's the same scene, but instead of 20Km, the terrain is 20m, and the density is interpolated from 0.003 to 0.0 to compensate. Now there is no such cutoff. ![image](/attachments/f76987ed-e528-4d8c-bc1e-8f2fd79a1f47) It's worth emphasising that those extremely low values (0.00001 and lower) are not a weird edge case, but necessary for rendering large terrain realistically.
363 KiB

Ah, yeah, sorry. Yes, i see that. But that look like limitation.
Need information from devs/

Ah, yeah, sorry. Yes, i see that. But that look like limitation. Need information from devs/

I've been having the same issue with large planetary atmospheres where the volume scatter density exponentially decays with altitude. Below a certain density threshold, the volume is seemingly ignored.

This seems like some sort of threshold that's been hardcoded in somewhere rather than a floating point precision issue (floats should be sufficient?).

I've been having the same issue with large planetary atmospheres where the volume scatter density exponentially decays with altitude. Below a certain density threshold, the volume is seemingly ignored. This seems like some sort of threshold that's been hardcoded in somewhere rather than a floating point precision issue (floats should be sufficient?).
Iliya Katushenock added
Status
Confirmed
and removed
Status
Needs Info from Developers
labels 2023-12-15 09:38:07 +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
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#104504
No description provided.