Background node acting as a Foreground node !!

Any idea why ?

Is it a bug of the JSR-231 renderer ?

Here’s my code :


// Add background
		Quad quad = new Quad("data/textures/Mountain.jpg", false, 0.8f, 0.6f);
		BranchGroup backBg = new BranchGroup();
		backBg.addChild(quad);
		scene.addChild(new Background(backBg, View.VIEW_FIXED));

I don’t know why it behaves like this. But isn’t it a SkyBox what you actually want?

Hmm no not really I just want a background image (more efficient, although less pretty)

But what, when you turn the view? If you don’t wnat to turn it, just make a SkyBox with one side having your texture and the others having a 1x1 black texture (you won’t see it).

Skybox works fine.

Hi!

I think the answer is the DepthBuffer. Try it.

Edit: BTW, if depth test is on - The Foreground will behave wrong way too. As soon as I switched depthtest off for your Quad - the foreground and background are working just fine!!!

Yeah indeed I missed that.