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 

Gu Ortho Sample?

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



Joined: 04 Jun 2004
Posts: 76

PostPosted: Tue Jul 12, 2005 2:32 am    Post subject: Gu Ortho Sample? Reply with quote

Hi I wanted to know if there was a simple example available on how to use the gu for orthographic projection and simple quad drawing with textures. My 3d skills are not so good and the examples for sprite and blit in the sdk are complicated if you don't know about matrix calculations or vertex arrays.

Any help would be great thanks!
Back to top
View user's profile Send private message
weak



Joined: 13 Jan 2005
Posts: 114
Location: Vienna, Austria

PostPosted: Tue Jul 12, 2005 3:43 am    Post subject: Reply with quote

take a second look at the blit sample. there's no 3d involved.
it's not much different than drawing quads. you just draw textured rectangles.

furthermore sdl is being ported, so you should be able to go with one of the countless sdl samples soon. (if not already, didn't checkout sdl myself.)
Back to top
View user's profile Send private message
chp



Joined: 23 Jun 2004
Posts: 313

PostPosted: Tue Jul 12, 2005 11:51 pm    Post subject: Re: Gu Ortho Sample? Reply with quote

apache37 wrote:
Hi I wanted to know if there was a simple example available on how to use the gu for orthographic projection and simple quad drawing with textures. My 3d skills are not so good and the examples for sprite and blit in the sdk are complicated if you don't know about matrix calculations or vertex arrays.

Any help would be great thanks!


Just make sure you set bit 23 (GE_SETREG_VTYPE(x,x,x,x,x,x,x,x,GE_BM_2D)) when you render, and it will bypass the transform pipeline, giving you a "raw" view of the display.
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