godotengine / godotengine/godot

GraphNode not render perfect when zoom != 1

Open
#87,780 3 comments 0 reactions 0 assignees View on GitHub
needs testing topic:gui
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

v4.2.1.stable.mono.official [b09f793f5]

### System information

Godot v4.2.1.stable.mono - Windows 10.0.17763 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2060 (NVIDIA; 31.0.15.2849) - AMD Ryzen 9 5950X 16-Core Processor (32 Threads)

### Issue description

I'm create a stylebox for button normal's style like this:
![image](https://github.com/godotengine/godot/assets/35988767/f8746f92-55d1-40bb-b3d1-e7c2e76c1770)
It look well when zoom == 1.0, but when zoom != 1.0, it render not correct:
![GIF 2024-1-31 19-46-32](https://github.com/godotengine/godot/assets/35988767/bdeb628e-7504-45d4-924a-67097ce81d51)

### Steps to reproduce

1. run the MRP
2. zoom the GraphEdit

### Minimal reproduction project (MRP)

[RenderTest.zip](https://github.com/godotengine/godot/files/14111183/RenderTest.zip)

Contributor guide

Open the contributing guide

Research direction

Start by running the attached RenderTest.zip MRP and reproducing the GraphEdit zoom behavior with the button's StyleBox. Trace the GraphNode rendering path and compare the result at zoom 1.0 and other zoom levels. Done means the style renders correctly when the GraphEdit is zoomed.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.