Scale Texture (SOLVE)

Post Reply
WhiteSkull
Posts: 9
Joined: Tue Aug 18, 2009 2:29 pm

Scale Texture (SOLVE)

Post by WhiteSkull » Tue Aug 18, 2009 3:07 pm

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 :?:
Last edited by WhiteSkull on Mon Aug 24, 2009 8:39 am, edited 2 times in total.

WhiteSkull
Posts: 9
Joined: Tue Aug 18, 2009 2:29 pm

Re: Scale Texture

Post by WhiteSkull » Tue Aug 18, 2009 3:37 pm

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!!

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests