Here is maybe a subject ever posted... if so, feel free to delete !
I knew about restriction with power of 2 for createtexture , but i didn't know texture was resized when we load them ...
As we can see in this code, i tryed to compare image and texture.
I didn't test it using previous version of Blitz3D, and maybe it's just the new version that can't handle texture not powered of 2 ... so if anyone could confirm with previous version , texture are loaded in 64,128,256,etc... size type :)
I think it's a convinient cause by direct X and graphics card support, but as i'm not sure ( not expert ), i better ask !
I knew about restriction with power of 2 for createtexture , but i didn't know texture was resized when we load them ...
As we can see in this code, i tryed to compare image and texture.
Graphics3D 800,600,0,2 SetBuffer BackBuffer() ; creation d'une image... Img=CreateImage(800,50) ; enregistre l'image SaveImage Img,"ImageDemoTemp.bmp" FreeImage Img If FileType ("ImageDemoTemp.bmp")=1 ; charge l'image pour verifier que la taille est bonne Img=LoadImage("ImageDemoTemp.bmp") Print "Image : ==========================" Print "taille X:"+ImageWidth(Img) Print "taille Y:"+ImageHeight(Img) FreeImage Img ; compare avec la taille de la même image mais en texture ! Tex=LoadTexture("ImageDemoTemp.bmp") Print "texture : ==========================" Print "taille X:"+TextureWidth(Tex) Print "taille Y:"+TextureHeight(Tex) FreeTexture Tex DeleteFile "ImageDemoTemp.bmp" Else Print "y a bug là !" EndIf WaitKey End
I didn't test it using previous version of Blitz3D, and maybe it's just the new version that can't handle texture not powered of 2 ... so if anyone could confirm with previous version , texture are loaded in 64,128,256,etc... size type :)
I think it's a convinient cause by direct X and graphics card support, but as i'm not sure ( not expert ), i better ask !