Advertisement

Help Textur Problem Milkshape Model Loading

Started by October 20, 2003 10:08 AM
4 comments, last by Stylez99 21 years, 4 months ago
Hi, i load my Milkshape 3D Model with Animation correctly and the texturs looks good. But when i start my Program in Fullscreen the texturs looks bad only when i zoom in to the Object it looks good ... in the distance it looks very fucking bad ( Have anybody the same Problem? Please Help me!!! bye Stylez99 PS: Sorry for my bad english
Look at the glTexParameter function...
You could also use mipmapping (probably with gluBuild2DMipmaps).
PM Times change... Excuse my poor english!
Advertisement
Hi,
i use:

glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);

what makes gluBuild2DMipmaps?
// Build Mipmaps (builds different versions of the picture for distances - looks better)
gluBuild2DMipmaps(GL_TEXTURE_2D, 3, pBitmap->sizeX, pBitmap->sizeY, GL_RGB, GL_UNSIGNED_BYTE, pBitmap->data);

// Lastly, we need to tell OpenGL the quality of our texture map. GL_LINEAR_MIPMAP_LINEAR
// is the smoothest. GL_LINEAR_MIPMAP_NEAREST is faster than GL_LINEAR_MIPMAP_LINEAR,
// but looks blochy and pixilated. Good for slower computers though.

glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR_MIPMAP_NEAREST);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR_MIPMAP_LINEAR);
Hi,
No No No it looks fucking bad in fullscreen...
My Problem is that it looks only in fullscreen bad...

bye
Stylez99
CrystalClear: The GL_TEXTURE_MAG_FILTER should be either GL_NEAREST or GL_LINEAR. Anything else is nonsensical as magnification means that the texture is being increased in size from it''s largest mipmap - there are no other levels to select from.

Stylez99: Could you give us some pictures to see how it looks bad, or try and give us a more detailed explanation (pictures are better). <moan>There is absolutely no need to continuously swear in your posts. It doesn''t help us understand your problem any better and I would suspect it makes you less likely to recieve a quick satisfactory answer as people are less likely to respond to those they perceive as being impatient/ungrateful. Please refrain.</moan>

Enigma

This topic is closed to new replies.

Advertisement