i'm confused by the behaviour of ColorMask and the background color provided with IVideoDriver::beginScene():
when i use color mask in the driver's OverrideMaterial and clear the backbuffer using a gray color (e.g (255, 128, 128, 128)) the scene is not entirely rendered in red, as i expected, but some areas which should be black are cyan though as the colors were blended!

Code: Select all
driver->getOverrideMaterial().EnablePasses = ESNRP_SOLID;
driver->getOverrideMaterial().EnableFlags = EMF_COLOR_MASK;
driver->getOverrideMaterial().Material.ColorMask = ECP_RED;
driver->beginScene(true, true, SColor(255, 128, 128, 128));
smgr->drawAll();
driver->endScene();

to me it seems that this has something to do with the materials and blending, but i got no clue about it. anyone else?
thanks for your replies!