I am using mipmapping in texture mapping. For your reference I m giving piece of code where I m using these functions.
::glEnable( GL_TEXTURE_2D );
::glPixelStorei( GL_UNPACK_ALIGNMENT, 1 );
//Following two lines are replacememnt of Linear Filter
::glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER,GL_NEAREST );
::glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER,GL_NEAREST_MIPMAP_NEAREST );
::glTexEnvi( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL );//…16
// Generate a series of texture maps of decreasing size
::gluBuild2DMipmaps( GL_TEXTURE_2D, 3,
GL_RGB, GL_UNSIGNED_BYTE, m_pRGBImage->data );
With above code lines Image gets distorted when we look from side. However this reduses bluredness.
Now as per your guidance on Mipmap levels, we can conclude that as level gets increased, depending upon the filtering
openGl interpolates between mipmap levels (Here it may not interpolate).
So, finally we can say with linear filter, if mipmap level is not 0 then image get blured.
But Can I reduce this blurdness by-
1> Selecting low resolution image as texture
2> Selecting as small image as possible …??
Does these factors affect the image details?
Also if I use
::glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S,GL_REPEAT );
::glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T,GL_REPEAT );
can I control repeat factor of mapped Image? i.e . Instead of allowing OpenGL to repeat the texture, can I specify
the repeat value and depending upon this value the texture get repeated?