Does mipmapping in TinyGL work?
  • MDW
  • Order of the Butterfly
    Order of the Butterfly
    MDW
    Posts: 451 from 2003/7/25
    From: Wroclaw/Poland
    Does mipmapping work in current version of TinyGL? I am not sure...

    After using:
    Code:
    gluBuild2DMipmaps(GL_TEXTURE_2D, depth, width, height, GL_RGB, GL_UNSIGNED_BYTE, data);

    when I check:
    Code:
    glGetError();

    result is 0 (GL_NO_ERROR).

    However I don't see mipmaps on small/far objects which should use smaller textures.

    I use in MorphOS gluBuild2DMipmaps() because glTexParameteri(GL_TEXTURE_2D, GL_GENERATE_MIPMAP, GL_TRUE) doesn't work in TinyGL (includes in the latest SDK don't contain GL_GENERATE_MIPMAP);

    This is problematic for me because this is reason why MorphOS version of application works slower than version for other platforms. MOS version is the most important for me. :)

    [ Edited by MDW 01.07.2020 - 19:16 ]
  • »01.07.20 - 15:58
    Profile Visit Website
  • MorphOS Developer
    zukow
    Posts: 642 from 2005/2/9
    From: Poland
    Could you provide some code example for quickchecking?
  • »01.07.20 - 19:05
    Profile Visit Website
  • MDW
  • Order of the Butterfly
    Order of the Butterfly
    MDW
    Posts: 451 from 2003/7/25
    From: Wroclaw/Poland
    Quote:

    zukow wrote:
    Could you provide some code example for quickchecking?

    I am sure that a code example could solve the problem because... I am stupid. :) I have already found reason of the problem. It was my stupid mistake. This is part of huge code which can be compiled on various platforms. There are too many #ifdef. After small refactor in this year I didn't notice below these #ifdefs one line which disables mipmaps in case of MorphOS. I can't believe, I checked this part 2-3 hours... :)

    So mipmapping works and application now is faster. :) I have to update applications which have been already released.

    The topic should be removed... shame...

    Thanks and greetz! :)

    [ Edited by MDW 01.07.2020 - 22:15 ]
  • »01.07.20 - 20:13
    Profile Visit Website
  • MorphOS Developer
    zukow
    Posts: 642 from 2005/2/9
    From: Poland
    screenshot? :)
  • »01.07.20 - 20:18
    Profile Visit Website
  • MDW
  • Order of the Butterfly
    Order of the Butterfly
    MDW
    Posts: 451 from 2003/7/25
    From: Wroclaw/Poland
    Quote:

    zukow wrote:
    screenshot? :)

    Screenshot of code? No! :)
  • »08.07.20 - 08:29
    Profile Visit Website