Welcome, Guest. Please login or register.

Author Topic: Transparency  (Read 6089 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Transparency
« on: July 06, 2007, 09:29:58 AM »
This is a follow on from my AmiNetRadio Skins thread. I am wondering why it seems to be impossible for applications to support transparency on Workbench 3.x? We have had transparent icons for years, and PowerIcons/AfA-OS enhances this with multiple alpha channels. So why can't VisualPrefs, AmiDock and others support transparency?

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline Crumb

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1786
  • Country: 00
    • Show only replies by Crumb
    • http://cuaz.sourceforge.net
Re: Transparency
« Reply #1 on: July 06, 2007, 09:37:06 AM »
@motorollin:

it probably would require updated intuition/graphics libraries. AROS already does that so maybe AfA (AROS for AmigaOS) could do it. You could try to recompile "kitty" demo from AROS. It shows the AROS mascot in a transparent window that allows you to see through the empty parts. I mean, it shows the image without borders as a non-rectangular window.

Ask Bernd Roesch (the AfA author) about it, I guess that it shouldn't be too difficult to add.

Running AmiNetRadio with a non square skin would be cool :-)
The only spanish amiga news web page/club: Club de Usuarios de Amiga de Zaragoza (CUAZ)
 

Offline Oli_hd

  • Hero Member
  • *****
  • Join Date: Apr 2002
  • Posts: 912
    • Show only replies by Oli_hd
Re: Transparency
« Reply #2 on: July 06, 2007, 10:00:26 AM »
Didnt magic workbenches do it with the right mouse button menu?
Not exactly the same but it shows it can be done.
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Transparency
« Reply #3 on: July 06, 2007, 10:16:05 AM »
I had a feeling AfA-OS would be able to do it. It would be really great if AROS's skinning engine could be backported to AmigaOS as a replacement to VisualPrefs.

Where would I get the source for the Kitty demo? Is there any instruction on how to compile it? I have not experience of compiling software on an Amiga.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Transparency
« Reply #4 on: July 06, 2007, 10:18:45 AM »
@Oli
I think MagicMenu did transparency. Also the borders round icons have been transparent since before AfA-OS, and PowerIcons doesn't use AfA-OS and that supports transparency. So although AfA-OS can probably do it, I don't think it is the only way.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Transparency
« Reply #5 on: July 06, 2007, 11:39:53 AM »
I have contacted Bernd Roesch to see if there is any way that AfA can be used to enable transparency in other applications. I'll summarise any reply I get here.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline cv643d

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 1197
    • Show only replies by cv643d
Re: Transparency
« Reply #6 on: July 06, 2007, 12:05:27 PM »
I dont think the transparency in Magic menu is real transparency. IIRC it copies what is behind of the menu and puts it in as the background of Magic meny. So if anything behind Magic menu updates in realtime the "transparent" image will be static.
Amiga articles
"New shell. It was finished a while back, but I still see bugs, haha" - SSolie
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Transparency
« Reply #7 on: July 06, 2007, 12:07:18 PM »
I see. So it's fake transparency :-) I assume AfA uses real transparency. I hope we will start to see 68k Amiga apps which require AfA, and which will take advantage of AfA's advanced features.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16882
  • Country: gb
  • Thanked: 6 times
    • Show only replies by Karlos
Re: Transparency
« Reply #8 on: July 06, 2007, 07:43:06 PM »
Are any of the transparency effects genuine?

As far as I can see, for transparency to work properly, layers.library would have to make sure occluded parts of windows were still drawn and graphics.library would have to support alpha blending for rendering calls. For all this to be quick, ideally you'd need hardware rendering too, since reading back from video ram (ready for software rendering) is like walking in quickset cement on most amiga graphic cards.
int p; // A
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Transparency
« Reply #9 on: July 06, 2007, 07:50:20 PM »
Who cares if it's real or simulated, as long as it works and is fast?

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline weirdami

  • Hero Member
  • *****
  • Join Date: Jan 2003
  • Posts: 3776
    • Show only replies by weirdami
    • Http://Bindingpolymer.com
Re: Transparency
« Reply #10 on: July 06, 2007, 09:02:26 PM »
I think there was "transparency" since the first A1000, only nobody used it. It was more like genlock or chromakay type deal. I remember reading about it being demonstrated at some place like Comdex or something when A1000 was still in wire wraps. You were supposed to be able to see through the current screen down to the one under it I think.
----
Binding Polymer: Keeping you together since 1892.
 

Offline cv643d

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 1197
    • Show only replies by cv643d
Re: Transparency
« Reply #11 on: July 06, 2007, 09:03:10 PM »
The best use of transparancy of windows I have ever found is when I run MSN Live at work. I can set the transparancy on any window so I set it to 5% visible for MSN. So when my boss comes in he can not see the MSN window because it is so blended into the background.

Other than that use transparant windows are just a pain to use IMHO. Messes up your head when you can see through windows.
Amiga articles
"New shell. It was finished a while back, but I still see bugs, haha" - SSolie
 

Offline itix

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 2380
    • Show only replies by itix
Re: Transparency
« Reply #12 on: July 06, 2007, 09:33:02 PM »
What kind of transparency you mean and where? There is no support for transparency in layers.library and thus it is not possible have windows with transparency unless you hack it into programs. Icons are rendered by programs and there it is easier.



My Amigas: A500, Mac Mini and PowerBook
 

Offline itix

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 2380
    • Show only replies by itix
Re: Transparency
« Reply #13 on: July 06, 2007, 09:41:35 PM »
I doubt AfA supports "real" transparency (translucency) since updating contents behind translucent layer is great pain without HW acceleration and support from the system. AfA extends CGX with WritePixelArrayAlpha() function which makes it easier to draw images with alpha channel, though.

In menus not having real translucency is not great deal anyway (to most users).
My Amigas: A500, Mac Mini and PowerBook
 

Offline quenthal

  • Sr. Member
  • ****
  • Join Date: Feb 2002
  • Posts: 405
    • Show only replies by quenthal
Re: Transparency
« Reply #14 on: July 06, 2007, 09:48:02 PM »
How versatile are Feelin's window decorations? Can't remember now, but I think they had BeOS like window decorations (I could be wrong on this), which would indicate that it could make non-rectangle windows?

However, I'm not sure what kind of transparency is meant here - partial transparency which for example Magic Menu is imitating, or just non-rectangle windows?
A4000/CSPPC&060