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?
a bug with GX_SetTexCoordGen
Re: a bug with GX_SetTexCoordGen
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
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
Who is online
Users browsing this forum: No registered users and 0 guests