Page 1 of 1

Textures problem - low res

Posted: Wed Jan 09, 2008 9:42 pm
by radubolovan
I have a problem with textures ... here is my code:

Code: Select all

driver->setTextureCreationFlag( video::ETCF_CREATE_MIP_MAPS, false );
smgr->addSkyBoxSceneNode( driver->getTexture( m_szSkyBox[0] ), driver->getTexture( m_szSkyBox[1] ), driver->getTexture( m_szSkyBox[2] ), driver->getTexture( m_szSkyBox[3] ), driver->getTexture( m_szSkyBox[4] ), driver->getTexture( m_szSkyBox[5] ) );
driver->setTextureCreationFlag(video::ETCF_CREATE_MIP_MAPS, true);
here is a snapsot: http://www.darkstarlinux.ro/~radubolova ... nap008.png

What have I done wrong?

I use Linux & OpenGL
All textures are 512x512 pixels - jpgs
I also tryied with pngs and textures from irrlicht example (irrlicht2_up.jpg & co)

Here is another snapshot: http://www.darkstarlinux.ro/~radubolova ... nap009.png

And here is how I initialize the driver:

Code: Select all

device = createDevice( video::EDT_OPENGL, dimension2d<s32>( 800, 600 ), 32, false, true, true, NULL );
Please help and thanks!

Posted: Wed Jan 09, 2008 10:09 pm
by datamagik
What is your screen depth? It looks like you have screen depth set to 16 bits so it's dithering colors.

Posted: Wed Jan 09, 2008 10:27 pm
by radubolovan
Fixed the screen depth set to 32 bits and it's working! :) Thank you!