pixel precice sceGumOrtho probs

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
gsus
Posts: 5
Joined: Thu May 11, 2006 11:08 pm

pixel precice sceGumOrtho probs

Post by gsus »

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
gsus
Posts: 5
Joined: Thu May 11, 2006 11:08 pm

Post by gsus »

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
PlayfulPuppy
Posts: 22
Joined: Fri May 05, 2006 12:04 am

Post by PlayfulPuppy »

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.
Post Reply