![]() |
OpenGL: Can't get a texture mapped correctly on a sphere.
1 Attachment(s)
As the title says. Digged arround all weekend and didn't find a solution.
Code:
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); Hope someone has a clue. I'm new to opengl es. Btw. the texture dimension is 800x400. |
Re: OpenGL: Can't get a texture mapped correctly on a sphere.
are you sure the texture is rotated correctly? (like, not 90 degrees away)
|
Re: OpenGL: Can't get a texture mapped correctly on a sphere.
It maps corectly on windows and linux desktop. And yes the visible half gets mapped correctly and the rest... well as in the screenshot..
|
Re: OpenGL: Can't get a texture mapped correctly on a sphere.
Hm, if it does show only one half, have you tried redimensioning the texture so it is half as wide?
|
Re: OpenGL: Can't get a texture mapped correctly on a sphere.
Exactly the ame result when resizing it to 400x400...
|
Re: OpenGL: Can't get a texture mapped correctly on a sphere.
a wasteful workaround would be to double the image, two copies side to side
|
All times are GMT. The time now is 05:33. |
vBulletin® Version 3.8.8