ORTHO things rendered as textures!

this is the render method :



protected void render(float interpolation) {

      display.getRenderer().clearBuffers();

      display.getRenderer().setOrtho();
      display.getRenderer().draw(desktopNode);
      display.getRenderer().unsetOrtho();

      display.getRenderer().draw(scene);

      display.getRenderer().renderQueue();
      sPass.renderPass(display.getRenderer());

   }



My class extends AbstractGame.
If I include the renderpass the JmeDesktop elements are rendered on terrain tiled as texuture.

What's wrong ??

I dont think it does. Glad to hear it works.

I find it odd you have to do any of the setting or unsetting of ortho.  Are you unable to use the ORTHO queue flag so the engine will manage that stuff for you?

Ok, so : 



protected void render(float interpolation) {

      display.getRenderer().clearBuffers();      

      display.getRenderer().draw(scene);
      display.getRenderer().renderQueue();
      
      
      display.getRenderer().setOrtho();
      display.getRenderer().draw(desktopNode);
      display.getRenderer().unsetOrtho();
      
      display.getRenderer().renderQueue();
      
      
      sPass.renderPass(display.getRenderer());
}



...works.

I guess that's what you meant.

Anyway I think it's strange, I have to render the ortho queue apart....does it decrease performances ?

Have you tried rendering the ortho as the last step?



This is really a guess, so don't hold your breath. I'm not.

Well, the difference is :



In the first case the effect is visible only when I rollover a button on JmeDesktop.



In the second case the effect is visible since the start of the application.

No, guys, it's not working.

I've found that the solution found render the ShadowPass over the ortho things.



Anyway, ortho or not ortho, is rendered as a texture over the ShadowPass, or it's casted as shadow.

I would precise that the JmeDesktop is not involved in any way in shadows, not as occluder nor as shadow receiver.



Is there somethig to set in JmeDesktop for rendering ?



In response to the last reply, giving to the queue the managing of the rendering enything works well ecept when I rollover the button or I click into textfield.

After this appeans what I said and so remains.