View Issue Details

IDProjectCategoryView StatusLast Update
0003665NoesisGUIUnitypublic2024-10-25 11:25
Reporteralexk Assigned Tojsantos  
PrioritynormalSeverityfeature 
Status resolvedResolutionfixed 
Target Version3.2.5Fixed in Version3.2.5 
Summary0003665: A property to handle stencil buffer clearing if not cleared automatically
Description

There are scenarios when the stencil buffer is not cleared to zero automatically by Unity (for example when a shader is writing to the stencil buffer). This may lead to Noesis UI elements become fully or partially invisible on screen.
Add a property (bool "Force clear stencil buffer"?) to Noesis View to handle these scenarios.

PlatformAny

Activities

jsantos

jsantos

2024-08-29 10:40

manager   ~0009923

Last edited: 2024-08-29 10:40

The following patch solves the issue but it is always clearing the stencil buffer before rendering Noesis onscreen. We should expose a property in the view to control this.


Index: NoesisRenderer.cs

--- NoesisRenderer.cs (revision 14351)
+++ NoesisRenderer.cs (working copy)
@@ -78,6 +78,8 @@
/// </summary>
public static void RenderOnscreen(Noesis.View view, bool flipY, UnityEngine.Rendering.CommandBuffer commands, bool invalidate)
{

  • commands.ClearRenderTarget(UnityEngine.Rendering.RTClearFlags.Stencil, UnityEngine.Color.black, 1.0f, 0);
  •  FixCommandBuffer(commands);
    
     var eventId = flipY ? EventId.RenderOnscreenFlipY : EventId.RenderOnscreen;

jsantos

jsantos

2024-10-25 11:25

manager   ~0010055

In 3.2.5 we have added an experimental flag to the View (Clear Stencil Buffer) for this purpose.

Thanks for your feedback!

Issue History

Date Modified Username Field Change
2024-08-28 18:24 alexk New Issue
2024-08-29 10:38 jsantos Assigned To => jsantos
2024-08-29 10:38 jsantos Status new => assigned
2024-08-29 10:38 jsantos Target Version => 3.2.5
2024-08-29 10:40 jsantos Note Added: 0009923
2024-08-29 10:40 jsantos Note Edited: 0009923
2024-08-29 10:40 jsantos Note Edited: 0009923
2024-10-25 11:25 jsantos Note Added: 0010055
2024-10-25 11:25 jsantos Status assigned => resolved
2024-10-25 11:25 jsantos Resolution open => fixed
2024-10-25 11:25 jsantos Fixed in Version => 3.2.5
2025-10-10 13:29 jsantos Category Unity3D => Unity