setBackgroundColor seems to do nothing

when i attempt to set the background colour in simpleInitApp it always just stays black…

am i doing something wrong?


// tried this first
renderer.setBackgroundColor(ColorRGBA.Green);

// then this
renderManager.getRenderer().setBackgroundColor(ColorRGBA.Green);

// then finally this
renderManager.getRenderer().setBackgroundColor(ColorRGBA.Green);
renderManager.getRenderer().clearBuffers(true, false, false);


Where are you doing this? Generally speaking, you're not supposed to directly interact with the renderer.



Did you try doing this:


viewPort.setBackgroundColor(ColorRGBA.Green);


It should work with the latest nightly/svn version.

that fixed it…

cheers…

i'm just used to jme2 so presumed the renderer was ok to play with it as it was the most analagous to the old display system…

maybe it should be set to private or package private in the Application class and a proxy method provided to set the background colour, to stop other newbs making the same mistake i did?