Turn off hardware mipmapping?

Home / Forums / Marmalade Archive / IwGx / Turn off hardware mipmapping?
2 replies [Last post]
by: UltimateWalrus
Status: Offline
Joined: 2012-05-07

Hi,

I'm making a 2D game with IwGx and I want the sprites to be nice and crisp. I've turned off filtering for the materials, which helped. The problem is, if I scale a sprite too small, it still gets blurry. I'm guessing this is from mipmapping, since when I call IwGxMipMappingOff, it looks fine.

The problem is, IwGxMipMappingOff apparently only works with the software renderer. If I render on hardware, the blurriness comes back. Is there another function in IwGx that I can use to turn off mipmapping on both software and hardware? Or do I need to use IwGL? In this case, is there something I need to do to keep the game compatible with systems that need to use the software renderer?

Thanks,
Sebastian

by: DGuy
Status: Offline
Joined: 2011-04-06
Hi Sebastian,

Hi Sebastian,

A couple choices:

1) Use CIwTexture::SetMipMapping()

2) Or If loading from a resource file, use CIwResTemplateImage, setting the "mipMapping" attribute to "false".

-David

by: UltimateWalrus
Status: Offline
Joined: 2012-05-07
Hi David,

Hi David,

CIwTexture::SetMipMapping() worked great! Thank you very much. Sorry for the delayed response, the project I was working on got stalled and I forgot about this thread.

---Sebastian

Latest Posts

Latest Comments

Top Contributors

  • amanda
  • riaan
  • alexand3
  • alexand4
  • alexand7
  • alexand889
  • alexand12191
  • remote9991
  • remote9992
  • test