forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Texturing with PSPGL (and SDL)

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
gambiting



Joined: 17 Aug 2006
Posts: 154

PostPosted: Tue Feb 26, 2008 6:14 am    Post subject: Texturing with PSPGL (and SDL) Reply with quote

Hi! I'm using PSPGL,and I want to texture a wall - to build it I use GL_QUADS,but as we all know, GL_QUADS is mapped to GL_TRIANGLE_FAN - when I treat it like normal gl_quad it's just blurred,no real texture at all.So my question is - how can I texture GL_TRIANGLE_FAN so it will look normally? Thx.
Back to top
View user's profile Send private message
gambiting



Joined: 17 Aug 2006
Posts: 154

PostPosted: Tue Feb 26, 2008 6:56 am    Post subject: Reply with quote

Ok,solved,it was my fault - first of all,bmp loaded for texture had to be 24bit(without alpha channel),and in BGR color format(I used irfanview to convert my textures to this format).Other that that everything is working just fine :D
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group