Poster | Thread |
jPV
| |
How to check if compositing is enabled in OS4 Posted on 17-Jun-2017 11:00:46
| | [ #1 ] |
|
|
|
Cult Member |
Joined: 11-Apr-2005 Posts: 812
From: .fi | | |
|
| Can you check if the compositing mode is enabled with OS4 somehow? From 3rd party programs/scripts, not visually. From a Hollywood program in my case.
Is there a settings file to read the state? Plain text would be nice, but if it's in a binary file, would there be a fixed position to read it (which won't change in the future or be different on different users)?
Or would there be any other way to check it? ARexx? Shell command?
_________________ - The wiki based MorphOS Library - Your starting point for MorphOS - Software made by jPV^RNO |
|
Status: Offline |
|
|
NutsAboutAmiga
| |
Re: How to check if compositing is enabled in OS4 Posted on 17-Jun-2017 12:17:29
| | [ #2 ] |
|
|
|
Elite Member |
Joined: 9-Jun-2004 Posts: 12818
From: Norway | | |
|
| @jPV
yes you can try to force CompositingTags to only do hardware composition, I think I added that Tag in LiveForIt-Mplayer.
I'm considering some fallback mode on LiveForIt-Muisc, I guess I need to put some bucks into AmigaOS4.1 Classic so test how the programs runs with out hardware composition, anyway theoretically it should fallback on software composition if hardware composition is not there, In that case I think it might be slower then normal BlitBitmap operation. Last edited by NutsAboutAmiga on 17-Jun-2017 at 12:18 PM.
_________________ http://lifeofliveforit.blogspot.no/ Facebook::LiveForIt Software for AmigaOS |
|
Status: Offline |
|
|
broadblues
| |
Re: How to check if compositing is enabled in OS4 Posted on 17-Jun-2017 12:21:08
| | [ #3 ] |
|
|
|
Amiga Developer Team |
Joined: 20-Jul-2004 Posts: 4446
From: Portsmouth England | | |
|
| @jPV
Compositing (as in CompositeTags() )is *always* available to a program if the hardware supports it, and is not dependent on the screen using it for "Effects". A language such as Hollywood should detect that by itself and use software fallback where appropriate.
If for some reason you really do need to know if te screen is using it, (say to enable a transparent or shaped window mode)
From C:
GetScreenAttr()
and
SA_Compositing - (BOOL) returns TRUE when the screen builds its display through (usually 3D accelerated) real-time composition of off-screen rendered layers, rather than using the traditional layering system and refresh modes. SA_WindowDropShadows - (BOOL) returns TRUE when drop shadows are allowed for windows of this screen. Only meaningful if SA_Compositing is TRUE.
Really no idea if there is an equivalent test in Hollywood.
_________________ BroadBlues On Blues BroadBlues On Amiga Walker Broad |
|
Status: Offline |
|
|
broadblues
| |
Re: How to check if compositing is enabled in OS4 Posted on 17-Jun-2017 12:32:12
| | [ #4 ] |
|
|
|
Amiga Developer Team |
Joined: 20-Jul-2004 Posts: 4446
From: Portsmouth England | | |
|
| |
Status: Offline |
|
|
NutsAboutAmiga
| |
Re: How to check if compositing is enabled in OS4 Posted on 17-Jun-2017 13:17:58
| | [ #5 ] |
|
|
|
Elite Member |
Joined: 9-Jun-2004 Posts: 12818
From: Norway | | |
|
| |
Status: Offline |
|
|
jPV
| |
Re: How to check if compositing is enabled in OS4 Posted on 17-Jun-2017 13:31:46
| | [ #6 ] |
|
|
|
Cult Member |
Joined: 11-Apr-2005 Posts: 812
From: .fi | | |
|
| @broadblues
Quote:
broadblues wrote: @jPV
Compositing (as in CompositeTags() )is *always* available to a program if the hardware supports it, and is not dependent on the screen using it for "Effects". A language such as Hollywood should detect that by itself and use software fallback where appropriate.
|
I'm trying to use alpha transparent windows with Hollywood, and if the compositing isn't available (like in WinUAE where I'm doing tests), Hollywood just draws transparent areas in solid background color (black). I would like to use my own software fallback for transparent looking backgrounds in those cases.
Quote:
If for some reason you really do need to know if te screen is using it, (say to enable a transparent or shaped window mode) ... Really no idea if there is an equivalent test in Hollywood.
|
I haven't found a way to do it in Hollywood...
In MorphOS I can read ENV:MUI/screens.txt to check if compositing is enabled for the screen the program is using, and I was hoping that there would be some similar solution for OS4 too. Some kind of automatic detection would be more comfortable than user having to configure it before launching the program._________________ - The wiki based MorphOS Library - Your starting point for MorphOS - Software made by jPV^RNO |
|
Status: Offline |
|
|
NutsAboutAmiga
| |
Re: How to check if compositing is enabled in OS4 Posted on 17-Jun-2017 13:38:47
| | [ #7 ] |
|
|
|
Elite Member |
Joined: 9-Jun-2004 Posts: 12818
From: Norway | | |
|
| @jPV
Some people have more then one video card, in there system, some screen modes there for support composition and some do not.
Another feature I'm using in Excalibur is assigning a Alpha bitmap to window, so make parts of window becomes transparent. sadly I have not found way update alpha bitmap with teaching the window content. so so transparency is fixed. Last edited by NutsAboutAmiga on 17-Jun-2017 at 01:43 PM. Last edited by NutsAboutAmiga on 17-Jun-2017 at 01:42 PM.
_________________ http://lifeofliveforit.blogspot.no/ Facebook::LiveForIt Software for AmigaOS |
|
Status: Offline |
|
|