![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on Best lib? within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Hi, Im wondering what is the best lib to use for a 2D game, OSLib? Also i there a sample ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#2 |
![]() Raining
My Mood:
Join Date: Jun 2005
Real First Name: Daniel
Location: In The Fog...
Just Played: Persona 4
Posts: 545
Trader Feedback: 0
|
Well, OSLib is very popular. It was used to make many things lately like Sakya's LightMP3 application and SG57's Boxhead: PSP Style game. In my opinion, it seems like a pretty good option. Do a little bit of research and you can see what it can do.
__________________
|
|
|
|
|
|
#6 |
![]() ![]() Developer
|
__________________
|
|
|
|
|
|
#8 |
![]() ![]() Developer
|
triEngine supports both sprite animation and playback of .pmp videos. The latter can even easily be taken apart and integrated into any other library.
http://www.fx-world.org/wordpress/?p=43
__________________
Raphs board rules #31: Excessive use of punctuation is either a sign of a lesser ego or a small mind. Avoid it if you don't want to look like a total moron. Raphs board rules #17: When you need to ask whether you are capable of doing something, you are not. Raphs board rules #2: Exploits aren't found by changing version numbers, blindly merging data into a file or turning your PSP upside down. Raphs board rules #1: If you have no clue how exploits work, don't come up with ideas about them. |
|
|
|
|
|
#9 |
![]() ![]() ...in a dream...
|
I wrote an animation class for OSlib. I need to update it to have a memory management system (so you can have say 2 of hte same animations going at once yet they use the same resources).
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
|
|
#10 |
![]() ![]() Developer
|
how fast is openTRI?
__________________
Heres to the Wyvern, Heres to getting Wyvern, Heres to staying Wyvern, And if you can't get Wyvern....... You should become a kingsman! http://arnold.hyperphp.com/ arnold, Light_AleX and my releases Dē |
|
|
|
|
|
#11 |
![]() ![]() Developer
|
As fast as you can get a PSP engine without directly interfacing the hardware
__________________
Raphs board rules #31: Excessive use of punctuation is either a sign of a lesser ego or a small mind. Avoid it if you don't want to look like a total moron. Raphs board rules #17: When you need to ask whether you are capable of doing something, you are not. Raphs board rules #2: Exploits aren't found by changing version numbers, blindly merging data into a file or turning your PSP upside down. Raphs board rules #1: If you have no clue how exploits work, don't come up with ideas about them. |
|
|
|
|
|
#12 |
![]() |
Well I always liked SDL, since its portable and I can write the same game with little to no change for my desktop, psp + gp2x. Having a PC version helps so much in debugging.
__________________
-- Code Monkey : Sarien, Fishguts, Cracks and Crevices -- "Did IQ's just drop sharply while I was away?" (Ripley) |
|
|
|
|
|
#13 |
![]() ![]() Developer
|
True, but using SDL comes at the cost of a big speed penalty on PSP. Matter of choice though really - speed vs. portability.
__________________
Raphs board rules #31: Excessive use of punctuation is either a sign of a lesser ego or a small mind. Avoid it if you don't want to look like a total moron. Raphs board rules #17: When you need to ask whether you are capable of doing something, you are not. Raphs board rules #2: Exploits aren't found by changing version numbers, blindly merging data into a file or turning your PSP upside down. Raphs board rules #1: If you have no clue how exploits work, don't come up with ideas about them. |
|
|
|
|
|
#14 |
![]() ![]() ...in a dream...
|
Raphael - IIRC SDL was converted to use the GU and is much faster then the old software rendering...
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
|
|
#15 |
![]() ![]() ![]() Developer
|
An alternative is JGE++ which allows to develop the game for both PSP and windows, it makes debbugging and development really easy.
It has been discontinued but has quite a lot of features. http://jge.khors.com |
|
|
|
|
|
#16 |
![]() ![]() Developer
|
Yeah, there seems to be some gu code inserted and also an option to link to PSPGL... but then again, SDL is just a big hack in itself IMO. It tries to push other APIs (like OGL or DX) inside it's own rather limited (again IMO) interface. Definately not my type of choice, but anyone can make up his own mind on this.
__________________
Raphs board rules #31: Excessive use of punctuation is either a sign of a lesser ego or a small mind. Avoid it if you don't want to look like a total moron. Raphs board rules #17: When you need to ask whether you are capable of doing something, you are not. Raphs board rules #2: Exploits aren't found by changing version numbers, blindly merging data into a file or turning your PSP upside down. Raphs board rules #1: If you have no clue how exploits work, don't come up with ideas about them. |
|
|
|
|
|
#17 |
![]() |
i've just done a rough port of sdl game engine from here http://www.zefix.tv/sge2d/
and i have to say that i'm not impressed with the speed of sdl on the psp. i think its probably better to stick with libraries developed specifically for the psp....who knows maybe iwn will finally release pge
|
|
|
|
|
|
#19 |
![]() ![]() Developer
|
Well, .pmp is basically a .pmf, just in a different container but if you specifically need a .pmf player you're pretty much out of luck - the closest you can get is by using the pmf sample code from magiK on ps2dev.org back from when he found the avc decoding mechanism. It's not too noob-friendly really though and integrating it into a library isn't all that easy.
If you just want an easy out-of-box solution for video playback, there's nothing else than pmplib from triEngine.
__________________
Raphs board rules #31: Excessive use of punctuation is either a sign of a lesser ego or a small mind. Avoid it if you don't want to look like a total moron. Raphs board rules #17: When you need to ask whether you are capable of doing something, you are not. Raphs board rules #2: Exploits aren't found by changing version numbers, blindly merging data into a file or turning your PSP upside down. Raphs board rules #1: If you have no clue how exploits work, don't come up with ideas about them. |
|
|
|
|
|
#20 |
![]() ![]() Developer
|
BTW i have been using OSLib and started using openTRI and it seams from my point of view that OSLib is more nood freindly, but openTRI has a faster rendering engine.
__________________
Heres to the Wyvern, Heres to getting Wyvern, Heres to staying Wyvern, And if you can't get Wyvern....... You should become a kingsman! http://arnold.hyperphp.com/ arnold, Light_AleX and my releases Dē |
|
|
|
|
|
#21 | |
![]() ![]() Developer
|
Quote:
But in regards to the pmplib, you cannot make video playback any noob-friendlier ![]() Code from the sample: Code:
int main(int argc, char **argv)
{
SetupCallbacks();
triLogInit();
char* result = pmp_init();
if (result != 0)
{
triLogPrint("ERROR: %s\n", result);
sceKernelExitGame();
}
printf("pmp_init() succeeded.\n");
// playback can always be interrupted by pressing START
result = pmp_play( "test.pmp", 1, GU_PSM_4444 );
if (result != 0)
{
triLogPrint("ERROR: %s\n", result);
sceKernelExitGame();
}
while (isrunning && pmp_isplaying())
{
sceKernelDelayThread(1000);
}
pmp_stop();
triLogShutdown();
sceKernelExitGame();
return 0;
}
__________________
Raphs board rules #31: Excessive use of punctuation is either a sign of a lesser ego or a small mind. Avoid it if you don't want to look like a total moron. Raphs board rules #17: When you need to ask whether you are capable of doing something, you are not. Raphs board rules #2: Exploits aren't found by changing version numbers, blindly merging data into a file or turning your PSP upside down. Raphs board rules #1: If you have no clue how exploits work, don't come up with ideas about them. |
|
|
|
|
|
|
#22 |
![]() ![]() Developer
|
yeh i agree.
But i was talking about 2d rendering and image loading. OSLib has much more functionality. -=Double Post Merge =- How can i maximise openTRI's image drawing. I am using vram and swizzle ATM.
__________________
Heres to the Wyvern, Heres to getting Wyvern, Heres to staying Wyvern, And if you can't get Wyvern....... You should become a kingsman! http://arnold.hyperphp.com/ arnold, Light_AleX and my releases Dē Last edited by homemister91; 08-16-2008 at 04:58 PM.. Reason: Automerged Doublepost |
|
|
|
|
|
#23 |
![]() ![]() Developer
|
I too using openTRI for OpenChoice project, OSLib is a good lib for getting started but you will bump into issues, and openTRI comes in source code type so can fix any errors in the lib that you find quite easy.
I like openTRI as it has some realy nice functions and is designed for the PSP and supports simple 2d image stuff easer than OSLib, I found it lacking on images
__________________
www.xart.co.uk coreXlib, old school library. ColorSync Display Profiles for MacBook (LG LCD) & New MacBook (AUO LCD) Profile for LG LP133WX1 Profile for AUO B133EW01 |
|
|
|
|
|
#24 | |
![]() ![]() Developer
|
Quote:
If you just need raw blits of images without scaling or transparency (background tilemap) then try to use the same pixelformat as you setup your framebuffer with, without swizzling and use the triBltSprite function. That's the fastest image drawing you will ever get (at the cost of no blending,etc.)
__________________
Raphs board rules #31: Excessive use of punctuation is either a sign of a lesser ego or a small mind. Avoid it if you don't want to look like a total moron. Raphs board rules #17: When you need to ask whether you are capable of doing something, you are not. Raphs board rules #2: Exploits aren't found by changing version numbers, blindly merging data into a file or turning your PSP upside down. Raphs board rules #1: If you have no clue how exploits work, don't come up with ideas about them. |
|
|
|
|
|
|
#25 | |
![]() ![]() Developer
|
thx i will try it
-=Double Post Merge =- do i use it like this; Quote:
__________________
Heres to the Wyvern, Heres to getting Wyvern, Heres to staying Wyvern, And if you can't get Wyvern....... You should become a kingsman! http://arnold.hyperphp.com/ arnold, Light_AleX and my releases Dē Last edited by homemister91; 08-16-2008 at 05:50 PM.. Reason: Automerged Doublepost |
|
|
|
|
|
|
#26 | ||
![]() ![]() Developer
|
Quote:
It needs a call to Quote:
So just add a triSpriteMode( image->width, image->height, 0.f ); after the triImageLoad call. NOTE TO SELF: Add a fallback to image width/height if triSpriteMode isn't set.
__________________
Raphs board rules #31: Excessive use of punctuation is either a sign of a lesser ego or a small mind. Avoid it if you don't want to look like a total moron. Raphs board rules #17: When you need to ask whether you are capable of doing something, you are not. Raphs board rules #2: Exploits aren't found by changing version numbers, blindly merging data into a file or turning your PSP upside down. Raphs board rules #1: If you have no clue how exploits work, don't come up with ideas about them. |
||
|
|
|
|
|
#27 |
![]() ![]() Developer
|
thx
I am now using openTRI as the core for LPHMv2 Awesome -=Double Post Merge =- how do i draw the sprite with alpha? -=Double Post Merge =- don't worry i got it now.
__________________
Heres to the Wyvern, Heres to getting Wyvern, Heres to staying Wyvern, And if you can't get Wyvern....... You should become a kingsman! http://arnold.hyperphp.com/ arnold, Light_AleX and my releases Dē Last edited by homemister91; 08-16-2008 at 06:21 PM.. Reason: Automerged Doublepost |
|
|
|
![]() |
| Tags |
| lib |
| Thread Tools | |
|
|