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 

semi-transparent images?

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



Joined: 31 Aug 2005
Posts: 53

PostPosted: Fri Sep 16, 2005 12:03 am    Post subject: semi-transparent images? Reply with quote

Is there curently anyway to make semi-transparent images work in lua?
For example, I would like to make a menu that I can still see the background image through. Also, can anyone tell me how to make a button not work, maybe like pad:left(nil) or something.

Thx for all the help, and great work on Lua!
_________________
I want my money back!?
Back to top
View user's profile Send private message
chaos



Joined: 10 Apr 2005
Posts: 135

PostPosted: Fri Sep 16, 2005 1:27 am    Post subject: Reply with quote

there's no way to do real transparency yet, unless you write your own blending routine, which would be very slow...
_________________
Chaosmachine Studios: High Quality Homebrew.
Back to top
View user's profile Send private message
2Xtremes2004



Joined: 31 Aug 2005
Posts: 53

PostPosted: Fri Sep 16, 2005 1:50 am    Post subject: Reply with quote

ok, thx for the quick reply. I hope, and look forward to see this feature included in Lua. :P
_________________
I want my money back!?
Back to top
View user's profile Send private message
2Xtremes2004



Joined: 31 Aug 2005
Posts: 53

PostPosted: Fri Sep 16, 2005 3:27 am    Post subject: Reply with quote

Anyone got any suggestions for the button problem? Im trying to make it so that when my task menu is opened by pressing cross that no other buttons work untill the menu is closed with the cross button. I have tried different things, such as:
Code:

pad:left(nil)


Code:

nil pad:left()


Code:

if pad:left() then
pad:left() = nil


... but these all give me errors. I am getting all bent out of shape cause i cant figure out this little problem. :(
_________________
I want my money back!?
Back to top
View user's profile Send private message
chaos



Joined: 10 Apr 2005
Posts: 135

PostPosted: Sat Sep 17, 2005 3:03 pm    Post subject: Reply with quote

sounds like you're going about things in the wrong way..

just make a loop that only checks for the buttons you want.
_________________
Chaosmachine Studios: High Quality Homebrew.
Back to top
View user's profile Send private message
holger



Joined: 18 Aug 2005
Posts: 204

PostPosted: Sat Sep 17, 2005 8:18 pm    Post subject: Reply with quote

Quote:
there's no way to do real transparency yet, unless you write your own blending routine, which would be very slow...


Shine posted a demo how to access pspGL from Lua some time ago, maybe you want to take a look...
Back to top
View user's profile Send private message
chaos



Joined: 10 Apr 2005
Posts: 135

PostPosted: Sun Sep 18, 2005 1:28 am    Post subject: Reply with quote

holger wrote:
Quote:
there's no way to do real transparency yet, unless you write your own blending routine, which would be very slow...


Shine posted a demo how to access pspGL from Lua some time ago, maybe you want to take a look...


that demo was for an experimental build of luaplayer. you can't do that with regular luaplayer, afaik.
_________________
Chaosmachine Studios: High Quality Homebrew.
Back to top
View user's profile Send private message
2Xtremes2004



Joined: 31 Aug 2005
Posts: 53

PostPosted: Mon Sep 19, 2005 12:43 pm    Post subject: Reply with quote

chaos wrote:
sounds like you're going about things in the wrong way..

just make a loop that only checks for the buttons you want.


That worked, thanks... Don't know why I got stuck on something so simple.
_________________
I want my money back!?
Back to top
View user's profile Send private message
alinear



Joined: 06 Sep 2005
Posts: 5
Location: Brooklyn, NY, USA

PostPosted: Tue Sep 20, 2005 10:16 am    Post subject: Reply with quote

You could try refresh interlacing the images to get a psuedo 50% alpha look... try blinking the image onto the screen every other frame. Not sure how this will look but its an old trick.

Another option would be to blit every other line of the image intended to be mixed onto the screen buffer. This, if done with horizontal lines, would probably not be terribly intense to do... a basic interlace blend.

Been meaning to try both of these. They are far from ideal but could get you psuedo blending/transparency until a real GL hook is implemented.
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