Bad texture on model with different GPU

Posted by Pacha on Game Development See other posts from Game Development or by Pacha
Published on 2013-10-30T01:23:29Z Indexed on 2013/10/30 4:16 UTC
Read the original article Hit count: 221

Filed under:
|
|
|
|

I have some kind of distortion on the texture of my 3D model. It works perfectly well on an AMD GPU, but when testing on a integrated Intel HD graphics card it has a weird issue.

I don't have a problem with the rest of my entities as they are not scaled. The models with the problems are scaled, as my engine supports different sizes for the platforms.

I am using Ogre3D as rendering engine, and GLSL as shader language.

Vertex shader:

#version 120

varying vec2 UV;

void main()
{
  UV = gl_MultiTexCoord0;
  gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}

Fragment shader:

#version 120

varying vec2 UV;
uniform sampler2D diffuseMap;

void main(void)
{
    gl_FragColor = texture(diffuseMap, UV);
}

Screenshot (the error is on the right and left side, the top and bottom part are rendered perfectly well):screenshot

© Game Development or respective owner

Related posts about opengl

Related posts about textures