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 

pspgl

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



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Sun Jan 08, 2006 1:26 am    Post subject: pspgl Reply with quote

Looks like the pspgl library is more mature than last time I tried it and it works even on my 1.00 firmware PSP (at least this is what I've read from some SVN commit emails). And it has some extensions for the PSP special GU functions, so what do you think when I discard the 3D-GU support and add pspgl to Lua Player (again)? I'm not sure how the 2D operations integrates, but I think there are line operations and rectangles can be simulated with triangles, so perhaps this means that it would be even faster than now, because e.g. fillRect is currently implemented in software instead of using GU. Another advantage: it should be portable very easy to Windows and other systems and you can use standard OpenGL tutorials and sample code instead of the proprietary GU library.

Ok, looks like this is not really a question, only the implementation details needs to be discussed :-)
Back to top
View user's profile Send private message
LuMo



Joined: 21 Aug 2005
Posts: 410
Location: Austria

PostPosted: Sun Jan 08, 2006 1:41 am    Post subject: Reply with quote

what about leavin' the gu routines you already added and add gl?
so ppl can choose what to use?

note: Gu seems quite similar to gl so why throw away (ok the porting part makes sense!)

greets
lumo

PS: its like trying to hit a veloceraptor...
when my code is nearly finished luaplayer changes formats *argh*
_________________
"Good artists copy, great artists steal."
Pablo Picasso
go2lumo.com
Back to top
View user's profile Send private message Visit poster's website
chp



Joined: 23 Jun 2004
Posts: 313

PostPosted: Sun Jan 08, 2006 1:57 am    Post subject: Reply with quote

I think they could co-exist quite nicely, atleast for the time being. Only issue could be maintenance, but I don't see how much maintenance pspgu would require really. As a disclaimer I'd have to say I haven't looked at the LuaPlayer implementation, only from my own view.
_________________
GE Dominator
Back to top
View user's profile Send private message
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Sun Jan 08, 2006 3:31 am    Post subject: Reply with quote

LuMo wrote:
what about leavin' the gu routines you already added and add gl?
so ppl can choose what to use?


This is difficult, because you can't linking both libraries in one program without problems.

LuMo wrote:
PS: its like trying to hit a veloceraptor...
when my code is nearly finished luaplayer changes formats *argh*


I'm sorry, but do you really have much code, which can't be converted to OpenGL in some minutes? And the current Lua Player GU support is very incomplete, I've mapped only those functions, which were needed for the 3D cube :-) But perhaps we should implement the loadable module support, first, then 2 graphics libraries could be loaded (exclusiv or): traditinal Gu based and pspgl based or even another self written lib.
Back to top
View user's profile Send private message
KawaGeo



Joined: 27 Aug 2005
Posts: 191
Location: Calif Mountains

PostPosted: Sun Jan 08, 2006 4:32 am    Post subject: Reply with quote

Shine asked us a valid question:
Quote:

what do you think when I discard the 3D-GU support and add pspgl to Lua Player (again)?

I highly recommend the replacement. I believe PSPGL is much closer to widely known OpenGL Library which has been with us for years.

Shine's reason to replace GU Library with PSPGL:
Quote:

Another advantage: it should be portable very easy to Windows and other systems and you can use standard OpenGL tutorials and sample code instead of the proprietary GU library.

I hate the word "proprietary". That's why I am very much in favor of the replacement. You can find tons of documentation for OpenGL on Web network. Pray tell us where is a single document for GU Library.

Many of the replies to this topic suggest to keep both GU and PSPGL as an option. I am concerned with Lua Player being bloated with the option. Moreover, the co-existance might be too much confused to some new coders and even us.

I don't see any Lua scripts were written with using GU Library by anyone other than Shine and maybe a couple of guys. The more likely reason: GU is too scary for us to develop 3-D games. So, why bother to keep both libraries.

In fact, I am working toward to the implementation of OpenGL to Lua as an extension for any systems (currently, Windows.) If you are interested in joining with me, PM me.

Support OpenGL and PSPGL.
_________________
Geo Massar
Retired Engineer
Back to top
View user's profile Send private message Send e-mail
chp



Joined: 23 Jun 2004
Posts: 313

PostPosted: Sun Jan 08, 2006 6:12 am    Post subject: Reply with quote

KawaGeo wrote:
Shine asked us a valid question:
Shine's reason to replace GU Library with PSPGL:
Quote:

Another advantage: it should be portable very easy to Windows and other systems and you can use standard OpenGL tutorials and sample code instead of the proprietary GU library.

I hate the word "proprietary". That's why I am very much in favor of the replacement. You can find tons of documentation for OpenGL on Web network. Pray tell us where is a single document for GU Library.


Didn't notice that comment before, but I have to challenge that. PSPGU is NOT proprietary. Look in the PSPSDK, it's sitting there BSD licensed, no secrets. Documentation for all the calls are available through doxygen, or if you're even lazier than that, through pspgl.h which every program that uses GU has to include. Sure it's not complete yet, but it's a work in progress, as a lot of other stuff is.
_________________
GE Dominator
Back to top
View user's profile Send private message
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Sun Jan 08, 2006 6:26 am    Post subject: Reply with quote

chp wrote:
Didn't notice that comment before, but I have to challenge that. PSPGU is NOT proprietary.


With "proprietary" I meant it's a Sony invention, used by PSP, only. OpenGL in contrast is available on nearly every system.
Back to top
View user's profile Send private message
chp



Joined: 23 Jun 2004
Posts: 313

PostPosted: Sun Jan 08, 2006 6:44 am    Post subject: Reply with quote

Shine wrote:
chp wrote:
Didn't notice that comment before, but I have to challenge that. PSPGU is NOT proprietary.


With "proprietary" I meant it's a Sony invention, used by PSP, only. OpenGL in contrast is available on nearly every system.


Ah, yes, from that aspect you are correct. I have played with the thought implementing it on PS2 though. :)
_________________
GE Dominator
Back to top
View user's profile Send private message
KawaGeo



Joined: 27 Aug 2005
Posts: 191
Location: Calif Mountains

PostPosted: Sun Jan 08, 2006 7:35 am    Post subject: Reply with quote

chp wrote:

I have played with the thought implementing it on PS2 though.

What is "it"? Is Lua Player what you were thinking of? If so, please go ahead and with OpenGL, yes?. The more systems, the merrier it would be. :)

So far I have known DreamCast, GBA and Palm on that "Lua Player" was implemented whether completely or not.
_________________
Geo Massar
Retired Engineer
Back to top
View user's profile Send private message Send e-mail
chp



Joined: 23 Jun 2004
Posts: 313

PostPosted: Sun Jan 08, 2006 7:43 am    Post subject: Reply with quote

KawaGeo wrote:
chp wrote:

I have played with the thought implementing it on PS2 though.

What is "it"?


I was referring to PSPGU.
_________________
GE Dominator
Back to top
View user's profile Send private message
romero126



Joined: 24 Dec 2005
Posts: 200

PostPosted: Sun Jan 08, 2006 11:42 am    Post subject: Reply with quote

I just have a few questions about PSP GL. Considering that blit as well as drawing lines in PSP LUA are sort of slow will there be a considerate speed increase useing this system vs old system?

Another question is does it support object oriented layers allowing for a layer to be drawn below an object and be updated if that object is shown?

Oh and I would love to see some documentation on the LUA Tutorial about OGL and atleast an example on how to draw rudementry 2d objects.

Those are my 2 cents.
Back to top
View user's profile Send private message
jsgf



Joined: 12 Jul 2005
Posts: 254

PostPosted: Wed Jan 11, 2006 4:09 am    Post subject: Reply with quote

Well, I'm all for it, obviously. I'm about to check in render-to-texture stuff as well, so that will give PSPGL a much needed functionality boost...
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player 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