Texutre Matrix Problems

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
lokust
Posts: 22
Joined: Sun May 28, 2006 7:34 am

Texutre Matrix Problems

Post by lokust »

I am trying to transform u,v texture coordinates using the texture matrix, however it seems to transform the vertices still and not the uv's. Maybe I am not setting the texture matrix properly?

I do this during intialization:

Code: Select all

sceGuTexMapMode(GU_TEXTURE_MATRIX, 0, 0);
And this before rendering:

Code: Select all

		ScePspFMatrix4 mat;
		gumLoadIdentity(&mat);
		sceGuSetMatrix(GU_MODEL,&mat);			
		sceGumTranslate(&pos);

		gumLoadIdentity(&mat);
		sceGuSetMatrix(GU_TEXTURE,&mat);
		sceGumTranslate(&uvScroll);
Any ideas?[/code]
Post Reply