You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Godot v4.1.3.stable - Windows 10.0.19045 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 2070 SUPER (NVIDIA; 31.0.15.5152) - Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 Threads)Godot v4.1.3.stable - Windows 10.0.19045 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 2070 SUPER (NVIDIA; 31.0.15.5152) - Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 Threads)
Issue description
I am trying to use Polygon2D clipping to mask out an area of the screen. See picture.
When I make a test scene, the clipping polygon (selected) correctly masks the Godot icon. But there are undesired scaled copies of other elements in the scene inside the clip area (green and grey polygons). As you pan the background of the editor around these copies shift around like there is some transform effect.
Steps to reproduce
In a 2D scene, create a white Polygon2D with points in a rough circle, called PolygonA.
Drag the Godot sprite Icon.svg into the viewport so that it overlaps an edge of PolygonA.
Make the icon sprite a child of PolygonA and set PolygonA's Clip Children to Clip Only.
This correctly masks the sprite so that it is only visible inside the mask area.
Now add a new Polygon2D, called PolygonB, to the scene, move it above PolygonA in the hierarchy. Set it to green and add some points in a rectangle that will encompass PolygonA.
You will now see the bug. There is an undesired scaled copy of PolygonB inside the clip area of PolygonA. It also shows any other scene elements inside this clip area, if they are above PolygonA in hierarchy.
If you use MMB to pan the editor background, the scene copies move around.
Tested versions
Reproducible in: 4.3-dev5, 4.2.1-stable, 4.1.3-stable
System information
Godot v4.1.3.stable - Windows 10.0.19045 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 2070 SUPER (NVIDIA; 31.0.15.5152) - Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 Threads)Godot v4.1.3.stable - Windows 10.0.19045 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 2070 SUPER (NVIDIA; 31.0.15.5152) - Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 Threads)
Issue description
I am trying to use Polygon2D clipping to mask out an area of the screen. See picture.
When I make a test scene, the clipping polygon (selected) correctly masks the Godot icon. But there are undesired scaled copies of other elements in the scene inside the clip area (green and grey polygons). As you pan the background of the editor around these copies shift around like there is some transform effect.
Steps to reproduce
In a 2D scene, create a white Polygon2D with points in a rough circle, called PolygonA.
Drag the Godot sprite Icon.svg into the viewport so that it overlaps an edge of PolygonA.
Make the icon sprite a child of PolygonA and set PolygonA's Clip Children to Clip Only.
This correctly masks the sprite so that it is only visible inside the mask area.
Now add a new Polygon2D, called PolygonB, to the scene, move it above PolygonA in the hierarchy. Set it to green and add some points in a rectangle that will encompass PolygonA.
You will now see the bug. There is an undesired scaled copy of PolygonB inside the clip area of PolygonA. It also shows any other scene elements inside this clip area, if they are above PolygonA in hierarchy.
If you use MMB to pan the editor background, the scene copies move around.
Minimal reproduction project (MRP)
PolygonClippingMaskBug.zip
The text was updated successfully, but these errors were encountered: