7 mod 7 in Eevee Math Node return an incorrect value #101562
Labels
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
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#101562
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
While in Cycles the 7 mod 7 correctly returns 0, in Eevee it returns 7.
Exact steps for others to reproduce the error
7_mod_7__bug.blend
7_mod_7__bug.blend
Original Report:
System Information
Operating system: Linux-5.19.0-76051900-generic-x86_64-with-glibc2.35 64 Bits
Graphics card: NVIDIA GeForce RTX 3070 Laptop GPU
Blender Version
Broken: version: 3.3.0, branch: master, commit date: 2022-09-06 15:39, hash:
0759f671ce
Worked: Unknown. I stopped checking older versions after the error was still occurring in 2.91.0; bug also present in 3.4 alpha and the nightly build of 3.3.1 release candidate.
Short description of error
In this Blender Studio course , when performing the Round-to-Modulo operation at about the 11-minute mark, I was experimenting with different values and found that the looping pattern breaks when a value that rounds to 7 is used for the "Repitition" input value node. Further experimenting revealed that, with a "Width" input node value small enough for dozens of rows to be present, the looping pattern breaks down with EVERY value I've tried (except zero, which does return a completely black surface). The broken pattern differs between Viewport Shading and Rendered modes.
Exact steps for others to reproduce the error
The issue is readily apparent upon opening the attached .blend file.
Floorboards (bug report).blend
Added subscriber: @Geoffrey-T.Blackwell
Added subscriber: @mano-wii
Thank you for the report.
I can confirm the problem, but the description and file can be greatly simplified.
The real problem is that 7 modulus of 7 in Eevee is being calculated as 7 instead of 0. This must be a precision issue.
Snap and Modulo nodes not working as expected with rounded values.to 7 mod 7 in Eevee Math Node return an incorrect valueChanged status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @EAW
As an additional data point, 7 Modulo 7 is 0 for me in EEVEE and Cycles.
Perhaps my older GPU has to use a fallback function that ends up doing the correct math?
version: 3.3.0, branch: master, commit date: 2022-09-06 15:39, hash:
0759f671ce
, type: releasebuild date: 2022-09-07, 00:44:18
platform: 'Windows-10-10.0.19043-SP0'
version: 3.4.0 Alpha, branch: master, commit date: 2022-10-04 02:54, hash:
bf4926b30c
, type: Releasebuild date: 2022-10-04, 05:46:09
platform: 'Windows-10-10.0.19043-SP0'
renderer: 'GeForce GTX 470/PCIe/SSE2'
vendor: 'NVIDIA Corporation'
version: '4.5.0 NVIDIA 391.35'
I just want to mention that the issue is occurring regardless of the value, not just 7 mod 7. Here are some demonstrative screenshots using the setup I described and the values 1-4. Note that the error occurs in both EEVEE and Cycles and that for the value of 3 the snap increment needed to be significantly smaller (suggesting it is a precision issue) and the patterns in EEVEE and Cycles are different but both erroneous.
Added subscriber: @CharlieJolly
This issue was referenced by
21eeedfc60
Changed status from 'Confirmed' to: 'Resolved'