[Solved]Transparent Frame in HUD and Visible Scene Object below


I’m trying to get transparent frame with a thick border (a ‘preview frame’) in the upper right corner with a JME3 Node below it as part of my HUD.
I loaded the png image with Nifty.

The objetive it to get a Preview in 3D of a selected object in the scene. This preview will be animated like the real object in the scene.
To do that i plan to clone the 3DObject of the scene and animate both of them at the same time.

Here is the issue i’m having:
How to make sure that whatever the screen resolution is, the Preview object below the ‘preview window’ will always be centered under it?

Many thanks for your advises.

You should use another viewport for the object preview.
see TestMultiViews jmonkeyengine/TestMultiViews.java at master · jMonkeyEngine/jmonkeyengine · GitHub

Thank you very much. It did it