Short: Patch and emulate CompositeTags Author: thellier@free.fr (Alain Thellier) Uploader: thellier free fr Type: driver/video Version: 1.35 Architecture: ppc-amigaos DESCRIPTION (English) V1.35: Better manage the bitmaps list used for AlphaRatio. "Clear" optimized more for ARGB. V1.34: Faster rectangular "Clear" using p96RectFill. V1.33: No more use u>>16 & v>>16 but unions. V1.32: No more use floats for storing vertices nor for clipping. V1.31: Operator "Clear" & "Plus" also optimized more for ARGB. V1.30: Debug version also included (for programmers). Option f optimized more for ARGB. V1.29: Have option f (simple transparency without alpha) that was stupidly disabled in last release Now option f also use alpha if alpha pixels are more than 10% per bitmap Fix display bug with 24 bits mode. More optimised so faster especially in ARGB. Thanks to Crisot for "write pixels as 64 bits" trick PatchCompositeTags (pat) is a software emulation of the CompositeTags function (ie the Compositing) The goal is to use the Composition in WinUAE-ppc OS4x. On a real Amiga-NG PatchCompositeTags works too but there is truly no interest to use it... INSTALLATION Set WinUAE to use ARGB for 32 bits screen in "RTG board" panel Set Workbench to use ARGB for 32 bits screen Install MACE & PatchCompositeTags http://www.amiboing.de/download.php?typ=gameDemo&id=17 Disable compositing in Workbench (default is certainly no) in Prefs/Gui/effects Start Mace_demo config : select (say) 640x480 ARGB Start PatchCompositeTags : type 'pat Q' Start Mace FEATURES PatchCompositeTags support: Bitmap format: R5G6B5 R8G8B8 B8G8R8 A8R8G8B8 Operators implementation: 0 : Clear [X] 1 : Src [X] 2 : Dest [_] 3 : Src_Over_Dest [X] 4 : Dest_Over_Src [_] 5 : Src_In_Dest [_] 6 : Dest_In_Src [X] 7 : Src_Out_Dest [_] 8 : Dest_Out_Src [_] 9 : Src_Atop_Dest [_] 10 : Dest_Atop_Src [_] 11 : Src_Xor_Dest [_] 12 : Plus [X] Triangles or Standard draw Now that WinUAE allow lots of RAM we can start to play some OS4 games like MACE that works now Note: Compositing on an AmigaNG is a kind of hardware accelerated super-blitter that allow resizing/rotating/filtering/transparency on bitmaps MACE better option is 'pat Q' or 'pat Qf' for slow PC PatchCompositeTags is rustic with just some options pat d debug = TRUE; shows what happens (debug) pat w UseW = TRUE; try to do the texturing in perspective (not currently working) pat q UseQuad=1; Two triangles are treated as a rectangle (tile) run well with Abbaye des morts, CompositePoc, GMAP (faster) pat Q UseQuad=2; Same but unfold the triangles an other way. Works with MACE pat f UseFast = TRUE; simple transparency without alpha (faster but ugly) pat l UseLine = TRUE; Trace the outline of the poly (debug) Options can be combined like 'pat Qf' Do not enable the composition effects on the WB Do not start several progs using the compositing at the same time as this program is not a real .library and therefore does not allow this ---------------------------------------------------------------------------------------------------------- DESCRIPTION (French) V1.35: Gere mieux ma liste de bitmaps pour l'AlphaRatio. Operateur "Clear" encore plus optimisé en ARGB. V1.34: Le "Clear" rectangulaire est plus rapide en utilisant p96RectFill. V1.33: N'utilise plus u>>16 & v>>16 mais des unions. V1.32: N'utilise plus des floats pour le polygone ni pour le clipping. V1.31: Operateur "Clear" & "Plus" aussi optimisés en ARGB. V1.30: version debug aussi incluse (pour les programmeurs). Option f plus optimisée en ARGB. V1.29: Retour de l'option f (simple transparence sans alpha) qui était stupidement inactive dans la dernière version Maintenant l'option f utilise l'alpha si les pixels alpha pixels sont plus de 10% par bitmap Corrige la bug en mode 24 bits Plus otimisé donc plus rapide. Merci à Crisot pour le truc "écrire les pixels en 64 bits" PatchCompositeTags (pat) émule en soft la fonction CompositeTags (cad la composition) Le but est d’utiliser la Composition dans WinUAE-ppc. Sur un vrai Amiga-NG ça marche aussi mais là ça a vraiment aucun intérêt... INSTALLATION Configurer WinUAE pour utiliser ARGB pour les écrans de 32 bits dans le panneau "Carte RTG" Configurer Workbench pour utiliser ARGB sur un écran de 32 bits Installer MACE & PatchCompositeTags Désactiver la composition dans Workbench (par défaut c'est certainement le cas) dans Prefs / Gui / Effects Démarrez Mace_demo config: sélectionnez (par exemple) 640x480 ARGB Lancer PatchCompositeTags en tapant 'pat Q' Démarrez Mace POSSIBILITES PatchCompositeTags supporte: Format de bitmap: R5G6B5 R8G8B8 B8G8R8 A8R8G8B8 Operateurs implementés: 0 : Clear [X] 1 : Src [X] 2 : Dest [_] 3 : Src_Over_Dest [X] 4 : Dest_Over_Src [_] 5 : Src_In_Dest [_] 6 : Dest_In_Src [X] 7 : Src_Out_Dest [_] 8 : Dest_Out_Src [_] 9 : Src_Atop_Dest [_] 10 : Dest_Atop_Src [_] 11 : Src_Xor_Dest [_] 12 : Plus [X] Tracage de Triangles ou Standard Maintenant que WinUAE permet plein de RAM on peut jouer un peu aux jeux OS4 comme MACE qui marche désormais Note: La Composition sur un AmigaNG est une sorte de super-blitter hardware qui permet redimensionnement/rotation/filtrage/transparences sur des images MACE marche avec 'pat Q' ou 'pat Qf' pour un PC lent PatchCompositeTags est rustique avec juste qques options pat d debug=TRUE; affiche ce qui se passe pat w UseW=TRUE; essaye de faire la texturation en perspective (marche pas actuellement) pat q UseQuad=1; Deux triangles de suite sont traités comme un rectangle (tile) marche avec Abbaye des morts, CompositePoc, GMAP (plus rapide) pat Q UseQuad=2; Idem mais déplie les triangles autrement. Marche avec MACE pat f UseFast=TRUE; transparence simple sans alpha (plus rapide mais moche) pat l UseLine=TRUE; trace le contour du poly On peut combiner et faire 'pat Qf' Ne pas activer la composition dans les effets du WB Ne pas lancer plusieurs progs utilisant la composition en même temps car ce programme n'est pas une vraie .library et ne le permet donc pas