Widget visibility

Hello,

i have a problem with the visibility of a widget. On figure 1 the widget is good visible and the geometry is set to setQueueBucket(Bucket.Transparent). On figure 2 the visibility of the widget is bad because the geometry is not set to setQueueBucket(Bucket.Transparent). The question is how to improve the visibility of the widget with geometry set to setQueueBucket(Bucket.Transparent).
The material of the widget is defined as follows:
[java]Material mat = new Material(threeDApp.getAssetManager(), “Common/MatDefs/Misc/Unshaded.j3md”);
mat.getAdditionalRenderState().setBlendMode(BlendMode.Alpha);
mat.getAdditionalRenderState().setWireframe(isWireframe);
mat.getAdditionalRenderState().setDepthTest(false);
mat.setColor(“Color”, color); [/java]


Figure 1


Figure 2

What if you render the widget in the Translucent Bucket

1 Like

You should use a separate main viewport for the overlay.

@wezrule said: What if you render the widget in the Translucent Bucket

That is the solution. Thanks a lot!!!