| View previous topic :: View next topic |
| Author |
Message |
gsus
Joined: 11 May 2006 Posts: 5
|
Posted: Thu May 11, 2006 11:20 pm Post subject: pixel precice sceGumOrtho probs |
|
|
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 |
|
 |
gsus
Joined: 11 May 2006 Posts: 5
|
Posted: Fri May 12, 2006 6:52 am Post subject: |
|
|
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 |
|
 |
PlayfulPuppy
Joined: 05 May 2006 Posts: 22
|
Posted: Fri May 12, 2006 7:04 pm Post subject: |
|
|
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 |
|
 |
|