View Issue Details

IDProjectCategoryView StatusLast Update
0004420NoesisGUIC# SDKpublic2025-10-14 16:43
Reporterai_enabled Assigned Tosfernandez  
PrioritynormalSeverityblock 
Status resolvedResolutionno change required 
Product Version3.2 
Fixed in Version3.2 
Summary0004420: Black rectangles with 3.2.9
Description

Hello!

After updating to 3.2.9 I've noticed an odd UI rendering issue with black rectangles appearing over the most parts of the screen (screenshot attached) which was also confirmed by another developer.

Probably some GPU state is not properly restored after calling NoesisGUI Render() method. I've tried to investigate with RenderDoc but I'm not experienced enough to figure out what's exactly causing the issue.

What's odd is that we don't have this issue with our primary project. My first thought was that maybe it's because we're rendering NoesisGUI into a render texture there instead of drawing straight into the framebuffer as in the provided sample. However, I've tried implementing this in the sample and while it has reduced the rate of this issue it's still very much present—either black flickering, or completely black screen, or some parts of the screen are obscured.


Steps to reproduce:

  1. pull the current master branch https://github.com/AtomicTorchStudio/NoesisGUI.MonoGameWrapper
  2. build and run the project
  3. try to navigate to "RepeatButton" and other samples — black rectangles may suddenly appear

Regards!

Attached Files
PlatformWindows

Activities

sfernandez

sfernandez

2025-10-14 11:11

manager   ~0011163

Hi,

Looking at the RenderDoc captures what is happening is that during the Offscreen pass Scissoring is enabled, and it is not restored/disabled for the Onscreen pass.
Just adding the following line in the NoesisViewWrapper fixes the problems:

        public void Render()
        {
            using (this.deviceState.Remember())
            {
+               this.renderDeviceD3D11.DisableScissorRect();
                this.renderer.Render();
            }
        }
ai_enabled

ai_enabled

2025-10-14 13:31

updater   ~0011165

Last edited: 2025-10-14 13:33

Thank you, Sergio!
It works perfectly now.
Just to clarify, is this a temporary hotfix? Are you planning to apply an internal fix in the next version?

sfernandez

sfernandez

2025-10-14 14:57

manager   ~0011167

This is not a workaround, it is an integration issue. There is nothing wrong in Noesis library.
You should include it in the MonoGameWrapper github code.

Cheers.

ai_enabled

ai_enabled

2025-10-14 15:37

updater   ~0011170

Thank you for the clarification, Sergio!
Indeed, I've just read the change notes for RenderDevice API and found that this is a new change for 3.2 https://www.noesisengine.com/docs/Gui.Core.RenderDeviceNotes.html
"In NoesisGUI 3.1 our reference implementations were expecting the active viewport to be set before rendering. Now, the scissoring rectangle must also be set or disabled before rendering."

You can close this ticket.

Regards!

sfernandez

sfernandez

2025-10-14 16:43

manager   ~0011171

Thanks for your help maintaining the MonoGame integration!
Closing this.

Issue History

Date Modified Username Field Change
2025-10-14 04:15 ai_enabled New Issue
2025-10-14 04:15 ai_enabled File Added: Screenshot 2025-10-14 050450.png
2025-10-14 11:07 sfernandez Assigned To => sfernandez
2025-10-14 11:07 sfernandez Status new => assigned
2025-10-14 11:11 sfernandez Status assigned => feedback
2025-10-14 11:11 sfernandez Note Added: 0011163
2025-10-14 13:31 ai_enabled Note Added: 0011165
2025-10-14 13:31 ai_enabled Status feedback => assigned
2025-10-14 13:33 ai_enabled Note Edited: 0011165
2025-10-14 14:57 sfernandez Status assigned => feedback
2025-10-14 14:57 sfernandez Note Added: 0011167
2025-10-14 15:37 ai_enabled Note Added: 0011170
2025-10-14 15:37 ai_enabled Status feedback => assigned
2025-10-14 16:43 sfernandez Status assigned => resolved
2025-10-14 16:43 sfernandez Resolution open => no change required
2025-10-14 16:43 sfernandez Fixed in Version => 3.2
2025-10-14 16:43 sfernandez Note Added: 0011171