Page 1 of 1

a bug with GX_SetTexCoordGen

Posted: Wed Feb 11, 2009 1:33 pm
by beril
I was playing around with a blur effect by rendering a texture many times with a slight offset using different texture matrixes but I couldn't get the matrix to work for more than one texture channel. Eventually I looked in gx.c to see if the problem was in there, and I found something odd.

In GX_SetTexCoordGen2 in gx.c the matrix is set to different bits depending on the tgen_src, but it should be depending on the texcoord number instead, so you can use the same TG_TEX-sets with different matrices. I tried changing the switch statement and recompile the lib and everything works fine now.

maybe you can fix it to the next release of libogc?

Re: a bug with GX_SetTexCoordGen

Posted: Thu Feb 12, 2009 9:38 pm
by shagkur
Hi

this bug has been fixed a few weeks ago already. And while you're able to compile from sources you should grab the latest sources from SVN.
Yes, we switched to SVN now.

regards
shagkur