Menu

ResampleTexture

2008-12-12
2013-04-07
  • RaVeN RaVeN

    RaVeN RaVeN - 2008-12-12

    Look file gl_draw.c , function that resample textures.
    void GL_ResampleTexture (unsigned *in, int inwidth, int inheight, unsigned *out,  int outwidth, int outheight);
    It resample texture by function (software resample) its look ugly ((((. Resampled texture draws pib pixels even OpenGL can't help smooth these.

    If you can rewrite it. I mean Textures must be resampled directly by OpenGL.

     
    • RaVeN RaVeN

      RaVeN RaVeN - 2008-12-12

      pib - big. Sorry )

       
    • RaVeN RaVeN

      RaVeN RaVeN - 2008-12-12
       
    • RaVeN RaVeN

      RaVeN RaVeN - 2008-12-16

      Look ))) I found where textures resamples and do big pixels. With these fixes texture look more beautiful
      http://raven-05.narod.ru/gl_draw.c.txt - look these. Part of code.
      Can you add it to your port? Tell me plz it correct code?

       
      • Ozkan Sezer

        Ozkan Sezer - 2008-12-16

        With that, you are nuking the conversion to exact power of 2 sizes.
        I don't pretend to be an OpenGL expert here, but while it would work
        for your hardware+driver, it may not work for others.  That kind of
        conversion is pretty much standard, by the way.  If I can't convince
        you, see its quake3 equivalent: the procedure is Upload 32 in file
        tr_image.c in the ioquake3 port (ioquake3.org).

         

Log in to post a comment.