what is libgu/libgum? Shoudl I use pspgl?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
snowsquirrel
Posts: 51
Joined: Sun Feb 24, 2008 3:36 am

what is libgu/libgum? Shoudl I use pspgl?

Post by snowsquirrel »

I have been doing a few tutorials, and have a small project on the go. The tutorials I have been doing used gu/gum.

But I notice that it seems more people here are using pspgl. I have never really used opengl, so syntactically, I have no preference.

I am still early in my (learning) project, so I would like to switch to pspgl now if it is recommended. I know this topic is brough up periodically (i did a search), but not recently, and I do have a couple new questions.

Questions:
1. libGu, and libGum, look remarkably similar to Sony's official libraries. Are they safe (legally) to use?

2. Is there any performance or stability difference between the two? Is one more quirky than the other? (By quirky I mean ratio of exceptions vs. rules)

3. Which one is more actively updated?

4. does pspgl use libgu underneath, or vice versa?

5. do either support quads, or variable density fog?

6. why do gu/gum ship with the toolchain, and not pspgl?

Any other info to help my decision would be great.
~S
danzel
Posts: 182
Joined: Fri Nov 04, 2005 11:03 pm

Post by danzel »

1) Yes, gu/gum is legally safe as is the rest of the SDK, It was reverse engineered from some retail game (I think the headers mention which?)

2) You can get better performance with gu/gum than pspgl. Many programs will find pspgl fine however.

3) pspgl I'd say... but not in a way that means much. gu/gum is feature complete, while pspgl still lacks certain features that get added.

4) Nope, both use the ge (hardware) directly.

5) They both support quads afaik. There was recently a thread on fog in pspgl, I think the result was it needs some more work. Not sure on gu/gum, someone else can answer this better.

6) gu/gum are considered part of the toolchain because they are the 'native' graphics library, whereas pspgl was created to provide an opengl interface to the ge (hardware).
User avatar
jean
Posts: 489
Joined: Sat Jan 05, 2008 2:44 am

Post by jean »

I used to code openGl on win32 platform, but now i prefer GU/GUM. Except for function names, these libraries are organized in a very similar way, and with my openGL experience, i feel confortable with both. I would suggest pspGl ONLY to speedup porting code from other platforms to PSP.
snowsquirrel
Posts: 51
Joined: Sun Feb 24, 2008 3:36 am

Post by snowsquirrel »

Thanks, those two posts largely settled my decision.
~S
pspZorba
Posts: 156
Joined: Sat Sep 22, 2007 11:45 am
Location: NY

Post by pspZorba »

Hi

I re-open this post since I have the same dilemma and would like to know what was your decision (Gu/Gum ?) and after more than 3 weeks what are your feedbacks ?
--pspZorba--
NO to K1.5 !
snowsquirrel
Posts: 51
Joined: Sun Feb 24, 2008 3:36 am

Post by snowsquirrel »

I am making it multi-platform and using OpenGL for the PC side. I use a 480x272 viewport on the PC version too. The PC version is strictly for Debugging purposes.

I still haven't decided if I will port the PSP specific parts to OpenGL too. I must say that I do find the ge/gum a little nicer to use( i.e, no texture binding, draw arrays works nicer, but I would have alot more shared code if I used OpenGL. I will have to make a final decision on this when I finished getting the PC version off the ground.

It would probably be better for me to use OpenGL on both, then port the PSP stuff to Ge/Gum if I need it for performance reasons.

Hope that helps your decision.

~S
pspZorba
Posts: 156
Joined: Sat Sep 22, 2007 11:45 am
Location: NY

Post by pspZorba »

As I don't intend to be multi-plateform and won't debug on PC, I think I will stay with Gu/Gum for efficiency.

Anyway I will try to do my class design to encapsuate the specific code as much as possible

Thx for your feedbacks
--pspZorba--
NO to K1.5 !
Post Reply