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 

pspsdk missing lots of basic code.

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



Joined: 09 Apr 2005
Posts: 111

PostPosted: Tue Aug 30, 2005 3:21 am    Post subject: pspsdk missing lots of basic code. Reply with quote

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
View user's profile Send private message
AnonymousTipster



Joined: 01 Jul 2005
Posts: 197

PostPosted: Tue Aug 30, 2005 4:19 am    Post subject: Reply with quote

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
View user's profile Send private message
ector



Joined: 12 May 2005
Posts: 195

PostPosted: Tue Aug 30, 2005 4:21 am    Post subject: Reply with quote

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
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Tue Aug 30, 2005 5:58 am    Post subject: Reply with quote

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
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