#50365 - memoni - Mon Aug 08, 2005 9:01 pm
Hi,
I just got my first DS program running, and stubled upon an interesting problem, namely the textures.
I was porting one of my old demo effects to DS and would have liked to use 128x64 R5G5BA1 texture. Instead of the right texture I got the first half rotated 90 degrees counter clockwise and duplicated twice. The texture was in an contiguous array of uin16s allocated by new. Everything was fine if I used a square texture.
My questions are:
I also noticed strange color shift in my textures. The texture is black and white, and it looked like the other side of some antialised edges were more red-ish and other sides were more green-ish. I was wondering if this is some known interpolation issue or is my data just miss aligned or something?
I just got my first DS program running, and stubled upon an interesting problem, namely the textures.
I was porting one of my old demo effects to DS and would have liked to use 128x64 R5G5BA1 texture. Instead of the right texture I got the first half rotated 90 degrees counter clockwise and duplicated twice. The texture was in an contiguous array of uin16s allocated by new. Everything was fine if I used a square texture.
My questions are:
- Does anyone know the memory layout of the textures (rgb, paletted, etc)?
Are non-square textures supported?
I was porting the effect from opengl, so is it true that the S and T texture coordinates are flipped too?
I also noticed strange color shift in my textures. The texture is black and white, and it looked like the other side of some antialised edges were more red-ish and other sides were more green-ish. I was wondering if this is some known interpolation issue or is my data just miss aligned or something?