3D objects on top of ortho


I did get the parallax scrolling to work using the ortho queue: http://www.jmonkeyengine.com/jmeforum/index.php?topic=4237.0

But now that I am ready to use it in my game (which uses 2D scrolling backgrounds but the rest is 3D), I find it hard to figure out a way to display objects from the other rendering queues on top of the parallax layers. The ortho queue is rendered last, but I thought I would be able to pull it off with some ZBuffer test function. Naturally I tried them all, but none worked of course… Since the z of the ortho plane is 0, I reckon?

So in short: Is there a way to display a background image using the ortho queue but still allow objects from the other queues to be rendered "on top of" the background?


PS. Am I doing this all backwards, since generally you use ortho for HUD stuff? Is this why you suggested parallell projection in that other thread, mrCoder? DS.

Well, the short answer: you can use renderpasses for this.

hmm, yes… I'll look into it.