Welcome, Guest. Please login or register.

Author Topic: Transparency  (Read 6091 times)

Description:

0 Members and 1 Guest are viewing this topic.

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
 

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 #15 on: July 06, 2007, 11:45:48 PM »
Quote

motorollin wrote:
Who cares if it's real or simulated, as long as it works and is fast?

--
moto


That depends on what you mean by "works". If you want visible changes to things behind your (partially) transparent window to "shine through" in the same way it does on Compiz/Beryl/OS-X/Vista etc., you need support for it in layers.library and graphics.library, as I said.

If you then want it to be fast as well, then you are ****ed, unless all the RTG drivers get reimplemented to support hardware rendering for the newly added features to said libraries. Doing it in software on existing systems is cringingly slow in comparison, since every pixel in the affected has to be read from the video memory, blended and written back.

In the absence of HW accelerated rendering, the best solution would actually be to have layers.library reimplemented to have a compositor system in fast ram where all the occluded areas can be processed and then the final result written to the display. That still has a big overhead, though its not as bad as reading areas from video, blending them and putting them back.

Either way, you need a lot of work on layers and graphics.
int p; // A
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Transparency
« Reply #16 on: July 07, 2007, 09:03:44 AM »
I'm not talking about totally transparent windows. I just mean, basically, non-rectangular windows. So VisualPrefs themes with rounded corners, transparent dock, AmiNetRadio themes with transparent backgorunds etc.

--
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 itix

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 2380
    • Show only replies by itix
Re: Transparency
« Reply #17 on: July 07, 2007, 11:27:56 AM »
Quote

I'm not talking about totally transparent windows. I just mean, basically, non-rectangular windows. So VisualPrefs themes with rounded corners, transparent dock, AmiNetRadio themes with transparent backgorunds etc.


It requires that layers system supports transparency. Windows are defined as a rectangle (x1,y1 to x2,y2) and that is how they are. You need an API extension to define window shape.

Transparent (translucent) dock is possible in 3.9 but without support from the operating system it is tricky and does not always work well.
My Amigas: A500, Mac Mini and PowerBook
 

Offline A4000_Mad

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 1392
    • Show only replies by A4000_Mad
Re: Transparency
« Reply #18 on: July 07, 2007, 11:45:19 AM »
Well this is way over my head but I did previously ask Stefan Robl the creater of Amidock a couple of other questions:-

What would be  involved for someone other than yourself to make the OS3.9 version  transparent?

Quote
Stefran wrote:
AmiDock for OS4 uses some OS features to allow the transparency. It  
would be doable whith some bigger drawbacks on OS3.9 as well but it  
certainly is not on my radar... sorry!
I have no plans to release the source code of AmiDock for OS3.9.


Any chance the version from OS4 that supports transparency could be put into OS3.9?


Quote
Stefran wrote:
No, the code base of AmiDock for OS4 was never meant to being  
compatible with any OS version below 4.0... please note that AmiDock  
now heavily relies on the application.library and new inituition  
functions... porting AmiDock would mean a rewrite or to port the  
whole OS4 to 68k.

I am sorry that I wasn't able to help you...

A4000 Mad
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Transparency
« Reply #19 on: July 07, 2007, 01:07:26 PM »
Quote
Stefran wrote:
porting AmiDock would mean a rewrite or to port the whole OS4 to 68k.

Yeah! Someone do that! :-P

So what we're saying is that without (hacked) support from layers.library for non-rectangular windows, any layers.library window transparency is going to be a hack which maps whatever is behind the window in to the transparent areas to give the effect of transparency (slow and no refresh if something behind the window changes)

*However* I have had a response from Bernd Roesch confirming that AfA's graphics features (including transparency) can be used in any 68k AmigaOS application. While this doesn't help for Workbench windows (unless layers library can be patched/replaced to use AfA instead) it does mean other apps like PolyNetNG as a dock replacement could be made transparent.

Bernd did send me some example code but it made little sense to me. I can post it if anyone is interested in seeing it.

--
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 DariusB

  • Newbie
  • *
  • Join Date: Jun 2005
  • Posts: 8
    • Show only replies by DariusB
    • http://people.freenet.de/dariusb/
Re: Transparency
« Reply #20 on: July 07, 2007, 04:23:17 PM »
Quote

A4000_Mad wrote:
What would be  involved for someone other than yourself to make the OS3.9 version  transparent?


For me, i didn´t know the OS4 Version of AmiDock, but AmiStart is also able to act like a (Horizontal) DockBar and supports (Faked) Transparency, Textures and on OS4/AROS also the possibilities of the new Layers (nonrectangulart windows)

http://aros-exec.org/modules/xcgal/displayimage.php?pid=189&album=lastup&cat=10469&pos=1
http://aros-exec.org/modules/xcgal/displayimage.php?pid=214&album=random&cat=10469&pos=-214
http://aros-exec.org/modules/xcgal/displayimage.php?pid=162&album=random&cat=10469&pos=-162


if something is missed, i can try to implement it.l
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Transparency
« Reply #21 on: July 07, 2007, 05:00:49 PM »
Those screenshots look really nice! Does AmiStart fake transperency under AmigaOS 3.x as well as AROS? Is there any chance of implementing support for AfA in the AmigaOS 3.x version to allow non-rectangular windows?

--
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 DariusB

  • Newbie
  • *
  • Join Date: Jun 2005
  • Posts: 8
    • Show only replies by DariusB
    • http://people.freenet.de/dariusb/
Re: Transparency
« Reply #22 on: July 07, 2007, 05:29:07 PM »
Quote

motorollin wrote:
Those screenshots look really nice! Does AmiStart fake transperency under AmigaOS 3.x as well as AROS? Is there any chance of implementing support for AfA in the AmigaOS 3.x version to allow non-rectangular windows?

--
moto


Yes it fakes it, it´s not possible other than that at the moment, for real transparency layers must be updated. Faked meant that the background was readen and wroten back (with manipulating it). If the background changes or a window is moved behind the faked transparent window it´ll not be updated. It´s possible to do real transparency but it´ll eat much much resources and need all Apps to use SmartRefresh.
windows and´ll be refreshed delayed .

Nonrectagular are not really needed for alpha-channel transparency, that meant when you need nice outlines with alphachannels, support for non rectagular windows must not be existing, when you want to use hard transparency a non-rectagular window is a good solution for that.

If AfA adds AROS intuition to 68k, than a update for nonrect windows is a short term.
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Transparency
« Reply #23 on: July 08, 2007, 08:58:23 AM »
@DariusB
I have just downloaded and installed AmiStart. When I run it, I just get a grey box in the bottom left hand corner which seems to function as the "start" menu. I can't figure out any way to configure the application, and I can't find any instructions in the guide about how to do this. Can you tell me how I would go about configuring the application to function as a transparent dock?

--
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 DariusB

  • Newbie
  • *
  • Join Date: Jun 2005
  • Posts: 8
    • Show only replies by DariusB
    • http://people.freenet.de/dariusb/
Re: Transparency
« Reply #24 on: July 08, 2007, 10:12:32 AM »
Quote

motorollin wrote:
@DariusB
I have just downloaded and installed AmiStart. When I run it, I just get a grey box in the bottom left hand corner which seems to function as the "start" menu. I can't figure out any way to configure the application, and I can't find any instructions in the guide about how to do this. Can you tell me how I would go about configuring the application to function as a transparent dock?

--
moto


First i must told that AmiStart only works with Hi/Truecolors views, 2nd the Version on my Homepage is very outdated and is not able to simulate a Dockbar, either you post me an message (d.brewka(a-t)freenet.de) to get a new or you use the version from AmiKit which is nearly the same.

AmiStart didn´t use a configuration editor like AmiDock, items could be added by dropping them from your workbench (in the Popupmenu you must switch on Edit in the Drag&drop) entry.

On my Homepage there is also a HTML documentation for AmiStart but you can post me an email and i´ll send you a newer Version of this Doc.

However i´ll release a new AmiStart in the next weeks.

A warning, if you want to use a fast and short Applauncher AmiStart is a worse choice, it´s nothing for Real 68k Hardware but for WinUAE it´s nicely useable.
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Transparency
« Reply #25 on: July 08, 2007, 10:20:45 AM »
Email sent :-)

--
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 unusedunused

  • Sr. Member
  • ****
  • Join Date: Nov 2005
  • Posts: 479
    • Show only replies by unusedunused
Re: Transparency
« Reply #26 on: November 20, 2007, 08:33:11 AM »
>Is there any chance of implementing support for AfA in >the AmigaOS 3.x version to allow non-rectangular windows?

If you have a CGX 68k system, non-rectangular layers are support, see history of CGX.Is in since CGX3

now is new AFA skin system release and skin system support alphablend and so too round egdes.the buttons can move to every place you want, so from skin systems there is no Problem to make skins that work on CGX for 68k with round edges.

But i dont know if non rectangular layers work correct on CGX 68k.

but P96 on 68k does not support non rectangular layers.
I use only P96 so i must develop blind with testers of CGX system.

When there is somewhere a CGX example, how nonrectangular layers work i think it is easy to add to the openwindow function a layershape.

AROS layers library do nonrectangular layers too , can compile for AFA OS but they did not run correct when boot.
Only when start later after boot work AROS layerlib in AFA.

Because layer management is the complicatetst Part of AOS for me and maybe cost lot time, i do more usefull stuff before.

i think i bring afa skin and zune final on the road and then i look closer to layer library.

 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Transparency
« Reply #27 on: November 20, 2007, 03:20:11 PM »
Quote
bernd_afa wrote:
now is new AFA skin system release and skin system support alphablend and so too round egdes.the buttons can move to every place you want, so from skin systems there is no Problem to make skins that work on CGX for 68k with round edges.

Just to clarify, is this working and available now? What skins does it support?

--
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 unusedunused

  • Sr. Member
  • ****
  • Join Date: Nov 2005
  • Posts: 479
    • Show only replies by unusedunused
Re: Transparency
« Reply #28 on: November 20, 2007, 04:33:13 PM »
no it dont work yet, only if i get code how to set a mask with CGX 3 for 68k.

Or how can do on MOS.i think MOS CGX use same way to use nonrectangle layer

Ken have paint round edges for looking glass skin , as far i remember for test some times age, but currently the edge is round but there is on this round place no background show
 

Offline leirbag28

Re: Transparency
« Reply #29 from previous page: November 20, 2007, 06:40:16 PM »
@motorollin

I could be wrong, but no Amiga does Transparency..............what your probably seeing is the menu gets dithered or pixels are eliminted so that you can see through it.  Like for example.....grab an icon on the desktop is OS3.9 and drag it around the screen...........you can see through it, but you will also notice it is not as solid as it was before........pixels have been elimintaed......it has been dithered with color zero.

Real TRansparency requires 16 million colors or a gfx card and higher resolution. But I suspect the effect is done the same way........but because the resolution is higher........you cant see the holes and the image would still look pretty good.  
 Perhaps there is another technique?  I don't know...........imnot even sure I am correct on this matter.

CD32 is actually the best Amiga ever made by Commodore!...