Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
17 crawler(s) on-line.
 109 guest(s) on-line.
 0 member(s) on-line.



You are an anonymous user.
Register Now!
 matthey:  7 mins ago
 amigakit:  11 mins ago
 Maijestro:  24 mins ago
 Hypex:  25 mins ago
 fingus:  47 mins ago
 dirkzwager:  50 mins ago
 Karlos:  1 hr 5 mins ago
 amigagr:  1 hr 12 mins ago
 MagicSN:  1 hr 20 mins ago
 pixie:  1 hr 34 mins ago

/  Forum Index
   /  Amiga OS4.x \ Workbench 4.x
      /  How to check if compositing is enabled in OS4
Register To Post

PosterThread
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
Profile     Report this post  
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
Profile     Report this post  
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
Profile     Report this post  
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

@NutsAboutAmiga

Yes, in a couple of prgrams to test if hardware accelerated Compositing is available, I do a tiny test composite with hardware only enabled and check for error.

_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
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

@broadblues

Hemm forgot about that, unsupported video outputs are disabled by checking if the screens has composition, in MPlayer. I added that later, after people complained about gray windows.

Last edited by NutsAboutAmiga on 17-Jun-2017 at 01:18 PM.

_________________
http://lifeofliveforit.blogspot.no/
Facebook::LiveForIt Software for AmigaOS

 Status: Offline
Profile     Report this post  
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
Profile     Report this post  
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
Profile     Report this post  

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle