 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
edepot
Joined: 09 Apr 2005 Posts: 111
|
Posted: Tue Aug 30, 2005 3:21 am Post subject: pspsdk missing lots of basic code. |
|
|
the pspsdk is missing a lot of basic code. for example, no wifi
and the GU pspsdk 3D samples all seems to be missing a camera view.
why is that? isn't it a 3D standard that the world is fixed and the
camera moves around (like from one end to another). All the
samples have the world being rotated, or the view stuck on a
center point. is there a sample with a camera view being moved
from one end to another? |
|
| Back to top |
|
 |
AnonymousTipster
Joined: 01 Jul 2005 Posts: 197
|
Posted: Tue Aug 30, 2005 4:19 am Post subject: |
|
|
There isn't anything wrong with moving the camera, just change the camera matrix, like so:
| Code: |
//first, set the projection matrix
matrix_identity((float*)&projection); matrix_projection((float*)&projection,fovAmount,16.0/9.0f,1.5f,1000.0f);
sceGuSetMatrix(GU_PROJECTION,&projection);
//now set the camera matrix
matrix_identity((float*)&view);
matrix_rotate((float*)&view,camXR,camYR,camZR);
matrix_translate((float*)&view,camX,camY,camZ);
sceGuSetMatrix(GU_VIEW,&view); | Also note, I use 50.0 for the fovAmount, rather than the 75.0 used in the cube sample, this is because it seems to be fish-eyed at 75, but not at 50.
The SDK is missing some samples, like loading WAVs, but look in SVN or the internet, or even on these forums to find some of what you are looking for. PSPet deals with most WiFi problems if you have anything specific.
Don't forget, the SDK has only been around a few months, and has been coming along leaps and bounds, and any samples you code could be submitted to SVN for everyone else's reference. |
|
| Back to top |
|
 |
ector
Joined: 12 May 2005 Posts: 195
|
Posted: Tue Aug 30, 2005 4:21 am Post subject: |
|
|
Just make a camera matrix and set the VIEW matrix to it, instead of identity like the samples do.
EDIT: oops too slow _________________ http://www.dtek.chalmers.se/~tronic/PSPTexTool.zip Free texture converter for PSP with source. More to come.
Last edited by ector on Tue Aug 30, 2005 8:51 am; edited 1 time in total |
|
| Back to top |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Tue Aug 30, 2005 5:58 am Post subject: |
|
|
The purpose of the PSPSDK samples is to demonstrate a single feature or a set of features for a specific part of the PSP. They aren't meant to be fully-fledged demos or tutorials, but instead meant to be used for reference.
As far as "missing" code goes - PSPSDK is an open source project maintained by a group of volunteers. We do not get paid to work on PSPSDK, and the time we devote implementing new features is our own. With that said, WiFi and other features are planned, but aren't finished yet. There are plenty of other sources of PSP WiFi code if that is what you're after, or you can simply wait until it makes its way into PSPSDK. Or you can submit WiFi code to the PSPSDK maintainers if you really need it to go in right away. That's what Open Source is all about. |
|
| Back to top |
|
 |
|
|
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
|