[GEM-dev] [pix_texture]: how to make 'mode 0' default?

IOhannes m zmoelnig zmoelnig at iem.at
Fri Sep 21 12:43:22 CEST 2007


Roman Haefeli wrote:
> On Fri, 2007-09-21 at 11:38 +0200, IOhannes m zmoelnig wrote:
>> Roman Haefeli wrote:
>>> On Fri, 2007-09-21 at 10:07 +0200, IOhannes m zmoelnig wrote:
>>>> please try both "mode 0" and "mode 1" messages (even if you are fine
>>>> with using only "mode 0", i would prefer if both modi worked)
>>> i applied the patch and compiled gem with:
>>>
>>> ./configure --with-glversion=1.5
>>>
>>> then i loaded the helppatch of [pix_texture] and tried both modi. i
>>> can't see any difference. with both the image is displayed correctly.
>>
>> at least not bad :-)
>>
>> still:
>> could you send the output of the right outlet of [pix_texture] for both
>> modi?
> 
> [pix_texture]: using mode 0: TEXTURE_2D
> print: 3 0.613281 0.524414 3553 0
> 
> [pix_texture]: using mode 1: TEXTURE_RECTANGLE
> print: 3 0.613281 0.524414 3553 0

hmm, this means that you are not using rectangle textures at all
(which is ok, if you card really does not support it)

however, if i read the glewinfo correctly, it should support the
rectangle _EXTension.

could you also post the glxinfo output?


is there any chance in getting the outputs (of the 2nd outlet) of the
last version (before my patch) and of the non-satisfying version?


furthermore, could you change the lines around GemMan.cpp:1180 from

#ifdef GL_ARB_texture_rectangle
  if (OpenGLExtensionIsSupported("GL_ARB_texture_rectangle"))
    {
      texture_rectangle_supported=2;
    } else
#endif
#ifdef GL_EXT_texture_rectangle
  if (OpenGLExtensionIsSupported("GL_EXT_texture_rectangle"))
    {
      texture_rectangle_supported=1;
    } else
#endif
    texture_rectangle_supported = 0;


to something like:

#ifdef GL_ARB_texture_rectangle
  if (OpenGLExtensionIsSupported("GL_ARB_texture_rectangle"))
    {
      texture_rectangle_supported=2;
      post("ARB rectangle texturing");
    } else
#endif
#ifdef GL_EXT_texture_rectangle
  if (OpenGLExtensionIsSupported("GL_EXT_texture_rectangle"))
    {
      texture_rectangle_supported=1;
      post("EXT rectangle texturing");
    } else
#endif
    texture_rectangle_supported = 0;

    post("rectangle texturing support = %d", texture_rectangle_supported);





> 
>> could you try with non-power of 2 images? (e.g. video)
> 
> my testimage had dimensions: 628 x 537 px (i think this should be odd
> enough ;-) )

right, should be weird... :-)

> 
>> if it is the latter and you have time, you could also try to disable the
>> openGL-wrappers (--disable-openGL) and delete the glsl_*.cpp from
>> Manips/ to recompile without a forced max-openGL-version.
> 
> ah, ok. i'll do that tomorrow (today in a few hours).

oh, i keep forgetting that you are in canada now....
pleasant dreams..


fmga.sdr
IOhannes




More information about the GEM-dev mailing list