Game Development Community

[iTGB 1.3] FilterPad don't work on PVR sheets

by AltiMario · in iTorque 2D · 12/17/2009 (1:34 pm) · 2 replies

I've applied a pvr file sheet on my tiles but the filter pad don't work.

new t2dImageMapDatablock(level1_tilesImageMap) {
      imageName = "~/data/images/level1/level_tiles/level1_tiles";
      imageMode = "CELL";
      frameCount = "-1";
      filterMode = "SMOOTH";
      filterPad = "1";
      preferPerf = "1";
      cellRowOrder = "1";
      cellOffsetX = "0";
      cellOffsetY = "0";
      cellStrideX = "0";
      cellStrideY = "0";
      cellCountX = "-1";
      cellCountY = "-1";
      cellWidth = "128";
      cellHeight = "128";
      preload = "1";
      allowUnload = "0";
      compressPVR = "1";
      optimised = "1";
   };

any suggestions?

#1
12/17/2009 (1:38 pm)
You definitely do not want to be using filter pad. Not only is it inefficient, it is also more costly. It was implemented in the base TGB engine to help cover up art errors. It also does not work with PVR because filter padding is a technique utilized by TGB at run time. It does not modify the base textures used, which is what PVR is.
#2
12/17/2009 (3:48 pm)
ok michal...
I've used filterpad because I see a strange effect on tilemaps. I see the tilemap borders that appear only in certain times.