IImage problem on IntelGraphic
IImage problem on IntelGraphic
I've tested IImage and it works fine on most cards. On the Mobile IntelR 945 chipset cards they look horrible. Its like a resized picture - some lines of pixels are lost. However I dont do any resize. What should I do? Has anybody encountered this problem? (The problem exist in DirectX-OpenGL render...)
Tomi
i have a laptop that runs intel graphics but i don't have such problem. any screenshot?
My company: http://www.kloena.com
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
And any code which reproduces this? Main problem could be the gfx driver, so depending on your OS and driver version some probelms may arise which are not on other systems. Moreover, mipmapping, filtering, etc. may not work on Intel cards without using POT textures. But we'd need to know something about the image dimensions etc for this
Basicly the code is simple, but its wrapped :
Code: Select all
void Image::New(CString path_of_texture,Irrlicht_params *ip,int x, int y) {
Remove();
params=ip;
if (_access(path_of_texture.GetBuffer(),NULL)!=-1 ){
video::IImage *myIImage=params->driver->createImageFromFile(path_of_texture.GetBuffer());
params->driver->setMaterial(video::SMaterial());
params->driver->removeTexture(texture);
CString name="image"+IntToStr(rand()%1000);
texture=params->driver->addTexture(name.GetBuffer(),myIImage);
img=params->env->addImage(texture,core::position2d<s32>(x,y));
myIImage->drop();
}
}
Both system are Win7. I know Intel Mobile is a crap, but it should work on that too.
What are pot textures anyway?
PS: I know, one image button is different.
Tomi
-
- Posts: 1186
- Joined: Fri Dec 29, 2006 12:04 am