|
From: Daniele C. <dca...@in...> - 2004-08-06 16:24:25
|
If I use "TQ3PixmapDrawContextData" instead "TQ3DrawContextData" and I set "Q3InteractiveRenderer_SetRAVETextureFilter" with "kQATextureFilter_Fast" the render of texture is not correct. If I use "kQATextureFilter_Mid" or "kQATextureFilter_Best " render is ok. I thought the problem was "oglFilter.magFilter = GL_NEAREST" in "ir_texture_convert_rave_filter" function . You can see an examples with "oglFilter.magFilter = GL_NEAREST" at link http://www.interstudio.net/quesa/nearest.JPG and an examples with "oglFilter.magFilter = GL_LINEAR" at link http://www.interstudio.net/quesa/Linear.JPG I used windows I don't know if with mac os there is the same problem.May be the problem in other part of code? At 19.46 05/08/04, you wrote: >Daniele Cavallini <dca...@in...> wrote: > >>I think there is a bug in the function : >> >>static TQ3QualityFilter >>ir_texture_convert_rave_filter(TQ3ViewObject theView) >> >>WRONG: >>..... >> >> switch (raveFilter) { >> case kQATextureFilter_Fast: >> oglFilter.magFilter = GL_NEAREST; >> oglFilter.minFilter = GL_NEAREST; >> break; >>...... >> >>CORRECT: >>.... >>switch (raveFilter) { >> case kQATextureFilter_Fast: >> oglFilter.magFilter = GL_LINEAR; >> oglFilter.minFilter = GL_NEAREST; >> break; >>..... >>What do you think? > > >What's your reasoning? > >In the description of GL_TEXTURE_MAG_FILTER in the OpenGL Reference >Manual, it says that GL_NEAREST is generally faster than GL_LINEAR. That >sounds like what we want for kQATextureFilter_Fast. >-- > James W. Walker, ScriptPerfection Enterprises, Inc. > <http://www.write-brain.com/> > > >------------------------------------------------------- >This SF.Net email is sponsored by OSTG. Have you noticed the changes on >Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, >one more big change to announce. We are now OSTG- Open Source Technology >Group. Come see the changes on the new OSTG site. www.ostg.com >_______________________________________________ >Quesa-develop mailing list >Que...@li... >https://lists.sourceforge.net/lists/listinfo/quesa-develop > |