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 

pixel precice sceGumOrtho probs

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



Joined: 11 May 2006
Posts: 5

PostPosted: Thu May 11, 2006 11:20 pm    Post subject: pixel precice sceGumOrtho probs Reply with quote

Hi...

i got my psp and started playing around. I want pixel precice drawing for a mixed 2d/3d engine.
Here's the problem:
i modified a cube sample to x coords = -239 and 239 and y coords -135 and 135. Im setting projection with sceGumOrtho(-240,240,-136,136,-10,10);

so it should draw a cube with only a one pixel border of background visible. ...but that works only for x axis, for y axis i have to set the y coords of the cube to 134.

Any idears?

so.. this is my first post here.. greetings to all!
regards, gsus
Back to top
View user's profile Send private message
gsus



Joined: 11 May 2006
Posts: 5

PostPosted: Fri May 12, 2006 6:52 am    Post subject: Reply with quote

ok... got it..
but its still strange.
needed some aspect ratio correction (in the perspective case).
btw.. the aspect should be 480/272 which is nearly 16/19.. but nut exactly.

regards, gsus
Back to top
View user's profile Send private message
PlayfulPuppy



Joined: 05 May 2006
Posts: 22

PostPosted: Fri May 12, 2006 7:04 pm    Post subject: Reply with quote

It's because the projection you're creating isn't square, so it was fitting it to the size of the screen.

If you set the height the same as the width of the projection, it should work fine.
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