| View previous topic :: View next topic |
| Author |
Message |
2Xtremes2004
Joined: 31 Aug 2005 Posts: 53
|
Posted: Fri Sep 16, 2005 12:03 am Post subject: semi-transparent images? |
|
|
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 |
|
 |
chaos
Joined: 10 Apr 2005 Posts: 135
|
Posted: Fri Sep 16, 2005 1:27 am Post subject: |
|
|
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 |
|
 |
2Xtremes2004
Joined: 31 Aug 2005 Posts: 53
|
Posted: Fri Sep 16, 2005 1:50 am Post subject: |
|
|
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 |
|
 |
2Xtremes2004
Joined: 31 Aug 2005 Posts: 53
|
Posted: Fri Sep 16, 2005 3:27 am Post subject: |
|
|
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: |
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 |
|
 |
chaos
Joined: 10 Apr 2005 Posts: 135
|
Posted: Sat Sep 17, 2005 3:03 pm Post subject: |
|
|
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 |
|
 |
holger
Joined: 18 Aug 2005 Posts: 204
|
Posted: Sat Sep 17, 2005 8:18 pm Post subject: |
|
|
| 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 |
|
 |
chaos
Joined: 10 Apr 2005 Posts: 135
|
Posted: Sun Sep 18, 2005 1:28 am Post subject: |
|
|
| 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 |
|
 |
2Xtremes2004
Joined: 31 Aug 2005 Posts: 53
|
Posted: Mon Sep 19, 2005 12:43 pm Post subject: |
|
|
| 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 |
|
 |
alinear
Joined: 06 Sep 2005 Posts: 5 Location: Brooklyn, NY, USA
|
Posted: Tue Sep 20, 2005 10:16 am Post subject: |
|
|
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 |
|
 |
|