unit system does not affect cavity #105328

Closed
opened 2023-03-01 03:10:19 +01:00 by Massimiliano Puliero · 2 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3070 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 528.49

Blender Version
Broken: version: 3.4.1, branch: blender-v3.4-release, commit date: 2022-12-19 17:00, hash: rB55485cb379f7

Short description of error
For production reasons I have to work with the unit scale set at 0,01, that means that 1 unit is equal to 1 cm, not 1 meter, unfortunately this will prevent to see the cavity (world) effect to work properly.
I also tried to fix the issue by changing the distance value in the cavity panel but it seems to be broken when working with the unit scale different from 1.
It looks like that even the scale is set correctly Blender seeing it as 100 times bigger.

On the other hand (I know that probably is not very related) the ambient occlusion settings of eevee is very flexible and the distance value works as expected.

Exact steps for others to reproduce the error
open the attached file to see that the cavity effect is non performing as expected.

thank you
Max

**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3070 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 528.49 **Blender Version** Broken: version: 3.4.1, branch: blender-v3.4-release, commit date: 2022-12-19 17:00, hash: `rB55485cb379f7` **Short description of error** For production reasons I have to work with the unit scale set at 0,01, that means that 1 unit is equal to 1 cm, not 1 meter, unfortunately this will prevent to see the cavity (world) effect to work properly. I also tried to fix the issue by changing the distance value in the cavity panel but it seems to be broken when working with the unit scale different from 1. It looks like that even the scale is set correctly Blender seeing it as 100 times bigger. On the other hand (I know that probably is not very related) the ambient occlusion settings of eevee is very flexible and the distance value works as expected. **Exact steps for others to reproduce the error** open the attached file to see that the cavity effect is non performing as expected. thank you Max
Massimiliano Puliero added the
Severity
Normal
Status
Needs Triage
Type
Report
labels 2023-03-01 03:10:20 +01:00

@fclem it looks as if this might be a matter of using the distance subtype for this property.

diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index d8cb588319d..ffedea37c33 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -7227 +7227 @@ static void rna_def_scene_display(BlenderRNA *brna)
-  prop = RNA_def_property(srna, "matcap_ssao_distance", PROP_FLOAT, PROP_NONE);
+  prop = RNA_def_property(srna, "matcap_ssao_distance", PROP_FLOAT, PROP_DISTANCE);
@fclem it looks as if this might be a matter of using the distance subtype for this property. ``` diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index d8cb588319d..ffedea37c33 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -7227 +7227 @@ static void rna_def_scene_display(BlenderRNA *brna) - prop = RNA_def_property(srna, "matcap_ssao_distance", PROP_FLOAT, PROP_NONE); + prop = RNA_def_property(srna, "matcap_ssao_distance", PROP_FLOAT, PROP_DISTANCE); ```

@ideasman42 yes, it make sense.

@ideasman42 yes, it make sense.
Blender Bot added
Status
Resolved
and removed
Status
Needs Triage
labels 2023-03-01 11:17:23 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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#105328
No description provided.