Precision issue with large distances #74624

Closed
opened 2020-03-10 16:39:04 +01:00 by Peter Baintner · 26 comments

System Information
Operating system: Win 10
Graphics card: 1080ti{F8399226}

Blender Version
Broken: version: 2.83 (sub 11)
Worked: Never

Short description of error
Unwanted glitches with the use of transparent shader. See picture:
image.png
The object with the orange outline is a simple cube with applied scale.

Exact steps for others to reproduce the error

  • Open attached file
  • Go to the Rendered view
    The camera should already be selected, change the X coordinate to even higher values in order to make the issue more evident.
    transparent_shader_refraction.blend
**System Information** Operating system: Win 10 Graphics card: 1080ti{[F8399226](https://archive.blender.org/developer/F8399226/system-info.txt)} **Blender Version** Broken: version: 2.83 (sub 11) Worked: Never **Short description of error** Unwanted glitches with the use of transparent shader. See picture: ![image.png](https://archive.blender.org/developer/F8399223/image.png) The object with the orange outline is a simple cube with applied scale. **Exact steps for others to reproduce the error** - Open attached file - Go to the `Rendered` view The camera should already be selected, change the X coordinate to even higher values in order to make the issue more evident. [transparent_shader_refraction.blend](https://archive.blender.org/developer/F8430512/transparent_shader_refraction.blend)
Author

Added subscriber: @PeterBaintner

Added subscriber: @PeterBaintner

#89322 was marked as duplicate of this issue

#89322 was marked as duplicate of this issue
Author

I guess the reason is, that the object is too far from origin (719.817 m, -1112.15 m, 222.678 m). So the z-precision of cycles is not enough at this point.

I guess the reason is, that the object is too far from origin (719.817 m, -1112.15 m, 222.678 m). So the z-precision of cycles is not enough at this point.
Author

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

Changed status from 'Needs Triage' to: 'Archived'
Author

Unfortunately scaling this certain scene down does not resolve the issue. Also have a look at the black artefacts on the plane. Those are also coming from missing alpha precision.
Updated version here: https://www.dreisicht.net/share/searchwing/3d/blender/master/master_master_08_bugreport.blend

Unfortunately scaling this certain scene down does not resolve the issue. Also have a look at the black artefacts on the plane. Those are also coming from missing alpha precision. Updated version here: https://www.dreisicht.net/share/searchwing/3d/blender/master/master_master_08_bugreport.blend
Member

Changed status from 'Archived' to: 'Needs User Info'

Changed status from 'Archived' to: 'Needs User Info'
Member

Added subscriber: @LazyDodo

Added subscriber: @LazyDodo
Member

reopened at request of user

reopened at request of user
Author
https://blender.stackexchange.com/questions/128225/how-to-remove-unwanted-refraction-bent-straw-illusion-from-cycles-material This is another explanation of the problem. Unfortunately without an reply.
Member

Have not looked at your file, but the stackexchange post is a classic floating point precision issue.

As the integer part of the number gets bigger, you have less storage available to store the fractional part, it's not as much a bug in cycles as just the way computers deal with fractional numbers.

Have not looked at your file, but the stackexchange post is a [classic floating point precision issue. ](https://blog.demofox.org/2017/11/21/floating-point-precision/) As the integer part of the number gets bigger, you have less storage available to store the fractional part, it's not as much a bug in cycles as just the way computers deal with fractional numbers.
Author

Yes I am aware of precision errors. Just too bad scaling doesn't help. So the only workaround would be to leave the camera in the origin and move everything else?

But still - 700m fur such an error is very unexpected in my opinion.

Yes I am aware of precision errors. Just too bad scaling doesn't help. So the only workaround would be to leave the camera in the origin and move everything else? But still - 700m fur such an error is very unexpected in my opinion.
Ankit Meel changed title from Transparent shader glitch to Precision issue with large distances 2020-03-26 09:57:39 +01:00
Member

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

The scenario described is too time consuming for us to track down, we require the bug reporter to narrow down the problem.

Normally .blend files can be simplified by removing most objects and disabling settings, until the problem reveals itself more clearly.

The scenario described is too time consuming for us to track down, we require the bug reporter to narrow down the problem. Normally .blend files can be simplified by removing most objects and disabling settings, until the problem reveals itself more clearly.
Author

Here is a very much simplified version: transparent_shader_refraction.blend
Steps to produce this file: create a cylinder, and a cube. Cube gets transparent shader, Move all the objects including the camera 800m from the origin, and you get unwanted refraction.

Here is a very much simplified version: [transparent_shader_refraction.blend](https://archive.blender.org/developer/F8430477/transparent_shader_refraction.blend) Steps to produce this file: create a cylinder, and a cube. Cube gets transparent shader, Move all the objects including the camera 800m from the origin, and you get unwanted refraction.

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'

Added subscriber: @brecht

Added subscriber: @brecht

I believe this is a known limitation due to float precision.
@brecht, what do you think?

I believe this is a known limitation due to float precision. @brecht, what do you think?

Added subscriber: @ssh4

Added subscriber: @ssh4

Have same issue in Eevee, and had some reports from 3D scannig studios about limited ability of Blender working with Geo referenced data.
Definitely Blender lack of float precision.

Is there are any idea how hard can be increase Blender precision for better support of real world or georeferenced data?

Have same issue in Eevee, and had some reports from 3D scannig studios about limited ability of Blender working with Geo referenced data. Definitely Blender lack of float precision. Is there are any idea how hard can be increase Blender precision for better support of real world or georeferenced data?
Member

Added subscriber: @zickkie

Added subscriber: @zickkie

Have that problem with IK chains. And "large distance" itself is a quite relative term. Because IK starts to inexplicably jiggle being moved (depends on rig) at, for example, just 100 meters from zero location.IK_bug_when_far_away.blend
In the atached file you can just rotate Root bone and you'll see IK bones jiggling.

Have that problem with IK chains. And "large distance" itself is a quite relative term. Because IK starts to inexplicably jiggle being moved (depends on rig) at, for example, just 100 meters from zero location.[IK_bug_when_far_away.blend](https://archive.blender.org/developer/F10186209/IK_bug_when_far_away.blend) In the atached file you can just rotate Root bone and you'll see IK bones jiggling.

Added subscriber: @ThomasDinges

Added subscriber: @ThomasDinges

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Thomas Dinges self-assigned this 2022-11-24 16:51:01 +01:00

Cannot confirm this report anymore, with Blender 3.4.

Cannot confirm this report anymore, with Blender 3.4.
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
9 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#74624
No description provided.