Re: [Plib-devel] texture repeating
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-08-25 16:52:54
|
"Curtis L. Olson" wrote: > I notice that the X-Plane flight sim (www.x-plane.com) gets around the > mipmap bluring problem by completely turning mipmapping off. The > tradeoff is the class pixel mishmash ... Yep - an aliasing nightmare - I don't regard that as an acceptable solution. Aliasing is *evil*. > Just for fun, is there an easy way to turn off mipmap generation in > ssg? Perhaps for lower end cards I could just give the user a chance > to choose their poison ... Sure - this is like the discussion we had the other day about changing texture parameters. Any of these shoulf work: * Create the texture yourself - pass the GL texture handle to ssgState, since the filter mode *is* a part of the binding, it'll be set how you need. * Let SSG load an ssgTexture - then do an 'apply' of the ssgState (so the texture will be the currently bound one) - change the glTexParameteri - and it'll stay changed when the ssgState is re-applied...or just: ssgTexture *tx = new ssgTexture ( "whatever.rgb" ) ; glBindTexture ( GL_TEXTURE_2D, tx->getHandle() ) ; glTexParameteri ( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR ) ; glTexParameteri ( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR ) ; glBindTexture ( GL_TEXTURE_2D, 0 ) ; * Write a derived class of ssgTexture that sets different glTexParameters. * Add it into ssgTexture and offer it back as an SSG enhancement. I don't think you'll like the results though. -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net |