Noise nodes with high detail and lacunarity values outputs erratic values #112180

Closed
opened 2023-09-09 13:08:41 +02:00 by Sun Kim · 8 comments
Contributor

System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2060 SUPER/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 536.40

Blender Version
Broken: version: 4.0.0 Alpha, branch: main, commit date: 2023-09-08 19:35, hash: 967d49dba48e
Worked: ?

Lacunarity option was exposed with 0702c24a36. Not sure if that commit caused or exposed this issue because I don't think there was a way to change lacunarity value at user-level before that. Maybe the latter since Musgrave and Voronoi textures seem to have similar issues with high values.

Short description of error
Noise node with high detail and lacunarity values outputs erratic values (values outside of the expected range, nan, inf) in Geometry Nodes. It seems there's no issue in Shader nodes until you give them very high values (ex: detail 15.0, lacunarity: 500.0) but I'm not sure.

Notice that even with the Normalize option enabled it outputs values higher than 1.0 (see the spreadsheet).

noise_node_values_erratic.png

Exact steps for others to reproduce the error

Test file: noise_node_values.blend

It seems this happens when combination of detail and lacunarity values are high.

The easiest way to trigger the error is set both values very high. It will probably outputs all nan values.

Detail: 10.0, Roughness: 1.0, Lacunarity: 10.0, Normalize enabled

BmdXc58IgU.png

With not so high values, it usually outputs values outside of the range.

Detail: 6.5, Roughness: 1.0, Lacunarity: 7.5, Normalize enabled

2lG2RollK4.png

**System Information** Operating system: Windows-10-10.0.19045-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 2060 SUPER/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 536.40 **Blender Version** Broken: version: 4.0.0 Alpha, branch: main, commit date: 2023-09-08 19:35, hash: `967d49dba48e` Worked: ? Lacunarity option was exposed with 0702c24a36. Not sure if that commit caused or exposed this issue because I don't think there was a way to change lacunarity value at user-level before that. Maybe the latter since Musgrave and Voronoi textures seem to have similar issues with high values. **Short description of error** Noise node with high detail and lacunarity values outputs erratic values (values outside of the expected range, nan, inf) in Geometry Nodes. It seems there's no issue in Shader nodes until you give them very high values (ex: detail 15.0, lacunarity: 500.0) but I'm not sure. Notice that even with the Normalize option enabled it outputs values higher than 1.0 (see the spreadsheet). ![noise_node_values_erratic.png](/attachments/2b560dd5-5d18-4ca3-ac9c-d2455994fe2b) **Exact steps for others to reproduce the error** Test file: [noise_node_values.blend](/attachments/589915d8-ae57-4f68-954d-a82e55c1b33f) It seems this happens when combination of detail and lacunarity values are high. The easiest way to trigger the error is set both values very high. It will probably outputs all nan values. ### Detail: 10.0, Roughness: 1.0, Lacunarity: 10.0, Normalize enabled ![BmdXc58IgU.png](/attachments/a227e2e0-94ae-4da0-96fc-1d075d2ba6ea) With not so high values, it usually outputs values outside of the range. ### Detail: 6.5, Roughness: 1.0, Lacunarity: 7.5, Normalize enabled ![2lG2RollK4.png](/attachments/57bb844c-36bf-41b9-acdf-afb07557e199)
Sun Kim added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-09-09 13:08:42 +02:00
@Hoshinova /^
Jesse Yurkovich added
Module
Nodes & Physics
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-09-10 07:04:49 +02:00
Member

I'll take a look at it while merging the Noise and Musgrave Textures. Is this issue also present with Voronoi? @persun

I'll take a look at it while merging the Noise and Musgrave Textures. Is this issue also present with Voronoi? @persun
Author
Contributor

Is this issue also present with Voronoi?

Yes, but with much, much higher values.

Voronoi, Detail: 15.0, Roughness: 0.5, Lacunarity: 315.8, Normalize enabled

noise_node_values1.png

If the detail is set to over a value higher than the soft cap (15.0), it happens with a much lower lacunarity value. In my layman's eyes this seems to happen with a certain combination of detail and lacunarity values.

Voronoi, Detail: 30.0, Roughness: 0.5, Lacunarity: 17.9, Normalize enabled

noise_node_values2.png

> Is this issue also present with Voronoi? Yes, but with much, much higher values. ### Voronoi, Detail: 15.0, Roughness: 0.5, Lacunarity: 315.8, Normalize enabled ![noise_node_values1.png](/attachments/90f9def4-0b3b-42d0-a5b3-060f905ffca4) If the detail is set to over a value higher than the soft cap (15.0), it happens with a much lower lacunarity value. In my layman's eyes this seems to happen with a certain combination of detail and lacunarity values. ### Voronoi, Detail: 30.0, Roughness: 0.5, Lacunarity: 17.9, Normalize enabled ![noise_node_values2.png](/attachments/1431e93d-1d82-4093-af26-ac94d3b78131)
Member

@persun The Voronoi examples are all in Geometry nodes. Is shader nodes Voronoi also affected by this?

You also mentioned that Musgrave has similar issues. What input combinations cause Musgrave to experience those issues?

@persun The Voronoi examples are all in Geometry nodes. Is shader nodes Voronoi also affected by this? You also mentioned that Musgrave has similar issues. What input combinations cause Musgrave to experience those issues?
Author
Contributor

Is shader nodes Voronoi also affected by this?

I think it does, but at much higher detail and lacunarity values. Not really sure because I don't know how to properly debug shader values.

Here, I did a simple test using the bloom threshold, to see if the values the shader emits are over a certain threshold. I've set the bloom threshold to 5000.0, and set Voronoi's detail and lacunarity values very high, with the normalize option enabled. The plane emits very, very bright light when it should not emit color brighter than 1.0.

noise_node_values_shader.png

You also mentioned that Musgrave has similar issues. What input combinations cause Musgrave to experience those issues?

Usually with a high detail value. But it happens with a lower detail value if lacunarity is small. Dimension also seems to affect it.

Detail: 15.0, Dimension: 0.01, Lacunarity: 0.0

musgrave_detail-15.0_dimension-0.01_lacunarity-0.0.png

Detail: 15.0, Dimension: 2.0, Lacunarity: 4.1

musgrave_detail-15.0_dimension-2.0_lacunarity-4.1.png

Detail: 6.82, Dimension: 2.0, Lacunarity: 0.49

musgrave_detail-6.82_dimension-2.0_lacunarity-0.49.png

> Is shader nodes Voronoi also affected by this? I *think* it does, but at much higher detail and lacunarity values. Not really sure because I don't know how to properly debug shader values. Here, I did a simple test using the bloom threshold, to see if the values the shader emits are over a certain threshold. I've set the bloom threshold to 5000.0, and set Voronoi's detail and lacunarity values very high, with the normalize option enabled. The plane emits very, very bright light when it should not emit color brighter than 1.0. ![noise_node_values_shader.png](/attachments/561c160e-04b6-4018-905d-a7b4d1aec5a6) > You also mentioned that Musgrave has similar issues. What input combinations cause Musgrave to experience those issues? Usually with a high detail value. But it happens with a lower detail value if lacunarity is small. Dimension also seems to affect it. ### Detail: 15.0, Dimension: 0.01, Lacunarity: 0.0 ![musgrave_detail-15.0_dimension-0.01_lacunarity-0.0.png](/attachments/e65dacdb-6e97-433e-9aab-318e520c62a5) ### Detail: 15.0, Dimension: 2.0, Lacunarity: 4.1 ![musgrave_detail-15.0_dimension-2.0_lacunarity-4.1.png](/attachments/1473f736-7d4c-4416-9085-f96194b78781) ### Detail: 6.82, Dimension: 2.0, Lacunarity: 0.49 ![musgrave_detail-6.82_dimension-2.0_lacunarity-0.49.png](/attachments/4e724a5a-6159-4ab0-836b-dd59886eab5d)
Member

For the noise and musgrave textures the issues seems to stem from an integer overflow in floor_fraction.

For the noise and musgrave textures the issues seems to stem from an integer overflow in [floor_fraction](https://projects.blender.org/blender/blender/src/commit/ab26ddc4555bf8cc0c310a46f3f657208940578e/source/blender/blenlib/intern/noise.cc#L384).
Author
Contributor

@Hoshinova It's the same file with the one in the original report, just replaced the noise texture with musgrave one, and changed the values.

But just in case, the same conditions with the last image: noise_node_values_musgrave.blend

@Hoshinova It's the same file with the one in the original report, just replaced the noise texture with musgrave one, and changed the values. But just in case, the same conditions with the last image: [noise_node_values_musgrave.blend](/attachments/5a076e49-6cd2-4481-a838-c9ea764ef272)
Member

Thanks!

Thanks!
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2023-09-27 18:01:28 +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
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#112180
No description provided.