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?
pspsdk missing lots of basic code.
-
- Posts: 197
- Joined: Fri Jul 01, 2005 2:50 am
There isn't anything wrong with moving the camera, just change the camera matrix, like so:
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.
Code: Select all
//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);
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.
Just make a camera matrix and set the VIEW matrix to it, instead of identity like the samples do.
EDIT: oops too slow
EDIT: oops too slow
Last edited by ector on Tue Aug 30, 2005 8:51 am, edited 1 time in total.
http://www.dtek.chalmers.se/~tronic/PSPTexTool.zip Free texture converter for PSP with source. More to come.
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.
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.