Page 1 of 1

Sky Boxes

Posted: Wed Jun 30, 2004 10:48 am
by Gezmo P
Hello All.

I was reading through previous posts regarding skyboxes in Irrlicht, and managed to implement one. However, I was keen to optimise it (it displays seams and looks a bit naff)

A previous post http://irrlicht.sourceforge.net/phpBB2/ ... php?t=2349
mentions setting a texture flag to optimise the textures to 32-bit, but I cannot find anywhere in the documentation or other posts on how to actually achieve this.

My code is so far simply :
smgr->addSkyBoxSceneNode(driver->getTexture("top.bmp"),driver->getTexture("bottom.bmp"),driver->getTexture("left.bmp"),driver->getTexture("right.bmp"),driver->getTexture("front.bmp"),driver->getTexture("back.bmp"));

Any assistance would be greatly appreciated.

texture creation flag

Posted: Wed Jun 30, 2004 2:47 pm
by Guest
driver->setTextureCreationFlag(ETCF_ALWAYS_32_BIT ,true);

Thanks!

Posted: Wed Jun 30, 2004 3:39 pm
by Gezmo P
Thank you muchly!