what's wrong in loading a png image as mesh texture [SOLVED]
Posted: Tue Sep 19, 2006 1:30 am
when i use
to draw the png image.the image is my need.
then I want to display a png image as a mesh texture.
so i write
but i get a different color image texture.
how can i get the correct png image as a mesh texture?
Thanks
Code: Select all
draw2DImage(driver->getTexture("c:\\image.png"), position2di(x, y), SourceRect, 0, SColor(255, 255, 255), true);
then I want to display a png image as a mesh texture.
so i write
Code: Select all
node->setMaterialTexture(0,driver->getTexture("c:\\image.png"));
how can i get the correct png image as a mesh texture?
Thanks