Page 1 of 1

Scale Texture (SOLVE)

Posted: Tue Aug 18, 2009 3:07 pm
by WhiteSkull
Hi everyone. Recently I installed devkitPro 1.5.0 , and I'm using libnds. At the moment everything is amazing, compile for the Nintendo DS!! But the other day, I downloaded a few examples of 3dWorldToolset, and testing some models converted X, I noticed that the texture does not work...

should show...
Image

...and this is my output :|
Image

The output is pixelated. I think if i use some scaling function, could solve... Someone :?:

Re: Scale Texture

Posted: Tue Aug 18, 2009 3:37 pm
by WhiteSkull
I got it ... :) clear that I had to first specify the mode of the matrix with glMatrixMode(GL_TEXTURE), as I read in another thread of this forum. Then I had to add only the changes needed in this case...

Code: Select all

        ....
        ....
	glMatrixMode(GL_TEXTURE); 
	glLoadIdentity();
	glScalef(4.0f,4.0f,4.0f);
	glRotatef(-90.0f,0.0f,0.0f,1.0f);
        ....
        ....
Thank you all, see you!!