Fix #109040: Don't calculate homogenous offset if viewspace offset is zero #109657

Merged
Clément Foucault merged 1 commits from bonj/blender:fix/retopology-offset-math into main 2023-07-11 11:44:25 +02:00
Contributor

Users were reporting offset issues when the retopology overlay was disabled.
The reason those issues were happening is because of vs_offset = min(vs_offset, vs_z * -0.5);.
That line is necessary for proper functioning of the retopology overlay, but causes issues at lower offset values (such as zero, when the retopology overlay is disabled).

Also fixes #109640

Users were reporting offset issues when the retopology overlay was disabled. The reason those issues were happening is because of `vs_offset = min(vs_offset, vs_z * -0.5);`. That line is necessary for proper functioning of the retopology overlay, but causes issues at lower offset values (such as zero, when the retopology overlay is disabled). Also fixes #109640
Jorijn de Graaf added 1 commit 2023-07-03 17:44:24 +02:00
9370e77031 Don't calculate homogenous offset if viewspace offset is zero
Users were reporting offset issues when the retopology overlay was disabled.
The reason those issues were happening is because of `vs_offset = min(vs_offset, vs_z * -0.5);`.
That line is necessary for proper functioning of the retopology overlay, but causes issues at lower offset values (such as zero, which the retopology overlay is disabled).
This is kind of a band-aid solution, but it's a solution nonetheless.
Jorijn de Graaf requested review from Jeroen Bakker 2023-07-03 17:55:56 +02:00
Jorijn de Graaf requested review from Clément Foucault 2023-07-03 17:55:56 +02:00
Author
Contributor

This is kind of a band-aid solution, but it's a solution nonetheless.
And I suppose it's cheaper to render? Unless the extra if statement weighs more than the math that's now skipped.
In the future we may want to come up with better offset math, but for now this at least makes it so the retopology math doesn't mess with offset when retopology is disabled.

This is kind of a band-aid solution, but it's a solution nonetheless. And I suppose it's cheaper to render? Unless the extra if statement weighs more than the math that's now skipped. In the future we may want to come up with better offset math, but for now this at least makes it so the retopology math doesn't mess with offset when retopology is disabled.
Jorijn de Graaf changed title from Fix #109040 and #109640: Don't calculate homogenous offset if viewspace offset is zero to Fix #109040: Don't calculate homogenous offset if viewspace offset is zero 2023-07-03 18:05:59 +02:00
Jeroen Bakker added the
Module
EEVEE & Viewport
label 2023-07-10 08:00:25 +02:00
Jeroen Bakker added this to the 3.6 LTS milestone 2023-07-10 08:00:30 +02:00
Jeroen Bakker added this to the EEVEE & Viewport project 2023-07-10 08:00:35 +02:00
Jeroen Bakker approved these changes 2023-07-10 08:00:48 +02:00
Clément Foucault approved these changes 2023-07-10 12:00:36 +02:00
Clément Foucault approved these changes 2023-07-11 11:41:49 +02:00
Clément Foucault merged commit 70b05249cb into main 2023-07-11 11:44:25 +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
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 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#109657
No description provided.