JmeDesktop, ORTHO and position

I've added a jmedesktop to my scene.

I would like to display the panel and all the elements inside in ORTHO mode, so I setted it.

What seems strange to me is that, positioning the panel at 0,0,0, and the camera at 0,0,0, the panel is no aligned with the field of view.

I mean the panel start lower than the bottom of the view and lefter than the left of the view.

What kind of calculations do I have to do ?

In ortho queue the camera position is not regarded. The position is in screen coordinates starting in the lower left.

Ok, I've studied better the examples and now I have something working, but…a strange thing now appears!!



On the terrain, instead of textures, appears rendered the desktop !!! and the elements of the desktop do not respond to interactions (buttons don't receive click even grafically)…what I've done ?!!

Most probably your render states are not set/updated correctly.

The problem comes when in render() figures 

sPass.renderPass(display.getRenderer());

.

The sequence is :


display.getRenderer().clearBuffers();   
display.getRenderer().renderQueue();
sPass.renderPass(display.getRenderer());
display.getRenderer().draw(scene);



If I use


display.getRenderer().clearBuffers();   
display.getRenderer().renderQueue();
display.getRenderer().draw(scene);
sPass.renderPass(display.getRenderer());


The sceen become enterelly white.

If I use


display.getRenderer().clearBuffers();   
display.getRenderer().draw(scene);
display.getRenderer().renderQueue();
sPass.renderPass(display.getRenderer());


Everithing is ok except there's no shadow.

Rendering the queue before the scene does not make much sense to me. You really should check if your render states are configured and updated properly.

What can be the reason for the terrain is textured with the ORTHO (jmeDesktop) render ??

Now evetithing seems to work, ecept the desktop.

The button is unclickable!