19 August 2021, 11:01 | #201 |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,285
|
Just put a new version of P96ScreenCx into aminet which fixes the workbench parsing issues and is more informative in case of errors.
|
19 August 2021, 11:18 | #202 |
Retro Freak
Join Date: Nov 2001
Location: Slovenia
Age: 51
Posts: 1,662
|
Thank you for the new version.
I get the error "All P96 boards are in the display chain, monitor switching is pointless". But I have the "DISPLAYCHAIN=No" set for the PiGFX monitor. You can see the DISPLAYCHAIN=No in the Icon Info of PiGFX in the screenshot (also I have both Native and RTG screens on simultaneously at that point), also I am adding the output of the Snoopdos: |
19 August 2021, 11:49 | #203 | |||
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,285
|
Quote:
Quote:
A line that loads all monitors would look as such: Quote:
Last edited by Thomas Richter; 19 August 2021 at 11:57. |
|||
19 August 2021, 12:04 | #204 |
Retro Freak
Join Date: Nov 2001
Location: Slovenia
Age: 51
Posts: 1,662
|
I was loading them in startup-sequence with the
LoadMonDrvs >NIL: I have commented it out and replaced with what you suggested: WBLoad DEVS:Monitors/PiGFX (also with the List and execute as you suggested) I get the same error "All P96 boards are in the display chain, monitor switching is pointless". There is no different icon or directory, this is the only place with PiGFX. If I remove the "DISPLAYCHAIN=No" from this icon then I don't get multiple monitor support at all, so this icon is used and now it is also loaded with WBLoad DEVS:Monitors/PiGFX . Also, if you check the SnoopDOS output you will se that the utility never reads the DISPLAYCHAIN tool type at all, only BOARDTYPE. You sure there isn't a bug somewhere? Last edited by tomcat666; 19 August 2021 at 12:30. |
19 August 2021, 12:32 | #205 |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,285
|
Yes, I'm sure because this tooltype is read by P96 (not by P96ScreenCx) and placed there in the board information. Well, unless the driver resets or manipulates the bit in some way, but in that case, I'm out.
Yes, this is tested on the CVision3D and the GBA-PII++. |
19 August 2021, 12:34 | #206 | |
Retro Freak
Join Date: Nov 2001
Location: Slovenia
Age: 51
Posts: 1,662
|
Quote:
|
|
19 August 2021, 13:16 | #207 |
Retro Freak
Join Date: Nov 2001
Location: Slovenia
Age: 51
Posts: 1,662
|
Got the info back. The driver is, of course, open source, but the answer to your question is "Both the ZZ9000 and the PiGFX driver set the INDISPLAYCHAIN flag on InitCard. Does P96 not override those flags once the card has been initialized?" The driver does not do anything with the flags once they are set/reset.
|
19 August 2021, 14:18 | #208 |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,285
|
No. This flag is set or reset by P96 upon initialization of the card, and then further tuning is left to the card driver (obviously, this is the right order as the driver should have the last word). By setting this flag, the card driver indicates that the card is always part of the display chain (i.e. by the cable that runs from the native video output to the monitor), thus essentially forbidding the user to connect a second monitor. The driver can, for example, always *clear* the flag in case the card does not contain a VGA switch and the user MUST connect two monitors, but always setting the flag makes no sense as it is up to the user how to layout the cabling.
|
19 August 2021, 15:00 | #209 |
Retro Freak
Join Date: Nov 2001
Location: Slovenia
Age: 51
Posts: 1,662
|
Thank you Thomas. With this information _Bnu was able to modify the driver so it now works perfectly !
Never thought I would see the day when we have proper multi monitor support on Amiga. Great work ! |
19 August 2021, 15:08 | #210 |
Retro Freak
Join Date: Nov 2001
Location: Slovenia
Age: 51
Posts: 1,662
|
Only one little thing - when going from RTG to Native the mouse pointer stays on the RTG screen in the position where you left it. Is there a way for the driver to know that it should remove the mouse pointer?
|
19 August 2021, 16:14 | #211 |
Thalion Webshrine
Join Date: Jan 2004
Location: Oxford
Posts: 14,430
|
Is this the "mouse blanker" app discussed earlier in this thread? Or is that something else?
|
19 August 2021, 16:38 | #212 |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,285
|
There is a way, namely the boardinfo->SetSprite() function which is used to turn the sprite on and off. If the board does not supply this function, the sprite always remains on. Alternatively, use "SoftSprite=Yes" in the monitor tool type, then P96 will render the sprite with pixel graphics (at the price that the pointer then flickers when scrolling, etc...)
|
19 August 2021, 18:16 | #213 | |
Retro Freak
Join Date: Nov 2001
Location: Slovenia
Age: 51
Posts: 1,662
|
Quote:
|
|
19 August 2021, 19:06 | #214 |
Retro Freak
Join Date: Nov 2001
Location: Slovenia
Age: 51
Posts: 1,662
|
A little demo to show how it works on the piStorm. Never mind the loud tank mouse
[ Show youtube player ] |
24 August 2021, 23:50 | #215 |
Bug hunter
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,165
|
@Thomas Richter
You have PM |
03 September 2021, 10:59 | #216 |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,285
|
Just put a small demo source into the aminet that demonstrates how to use the "picture in picture" function some graphic cards offer, notably the Picasso-IV and the CVision3D. "Picture-in-Picture" aka "overlays" allow to display content in a window in a "screen mode" that is different from the mode of the main screen the window is on.
What is particularly interesting about this is that the mode of the overlay can also be a mode that is not even supported as screen mode, for example "YUV 422". For such overlays, the graphics chip performs a color space conversion and upsampling "for free", and thus software can spare the last step in the decoding of video or pictures. If this feature sounds exotic to you: All modern graphic cards offer such overlays, the generation of the Cirrus chip on the P-IV and the S3Virge on the CVision3D were just the first generation that provided the feature. All later chips are just hard to find in the Amiga. Unfortunately, this feature was poorly documented, so I attempted to provide some source how to use it. The program itself does not do anything fancy, it just seems to draw an ellipse in a window. However, this ellipse is an overlay, which you can clearly see if you resize the window. The graphics chip will, in this case, scale the window contents for you, free of charge, without even getting the program involved. Thus, there is no software upscaling involved, all done in hardware. BTW, this is the same type of overlay the Linux "libxv" library provides on Xorg, just the P96 interface for it. If you don't see an overlay, be reminded that older graphics chips do not offer this feature and not all drivers support it. At this point, P-IV and CVision3D do of the "in-house drivers". Also, there are some restrictions for the CVision3D (similar may hold for the P-IV): First, the overlay does not work on scandoubled modes, on double-pumped modes (>1024 pixels horizontally), or if screen-dragging is active as these modes are created by a different logic on the chip. Second, overlaying one image by another can double the required bandwidth, and thus the overlay may flicker or disappear if the memory bandwidth is not sufficient to pull both the overlay and the screen background at the same time from the vga memory. Thus, for the S3 chip, this restricts overlays to 800x600 resolution (approximately, details depend on the video frequency). Hope this helps to shed some light into one of the dark corners of P96. |
03 September 2021, 14:57 | #217 |
Registered User
Join Date: Dec 2009
Location: Melbourne/Australia
Posts: 226
|
Does this work with a real Amiga A4000 CSII 68060 and CV64?
Does it work with amithlon? |
03 September 2021, 16:24 | #218 |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,285
|
It surely works in a real Amiga as it has been tested on a real Amiga, but the CVision64 is based on the Trio64 chip, and this chip is just one generation too old. It is the predecessor of the S3Virge, which was the first chip from S3 that supported overlays.
As Amithlon is not driven by any of the "in-house" P96 drivers, I cannot answer the second question. |
04 September 2021, 01:02 | #219 |
Registered User
Join Date: Dec 2009
Location: Melbourne/Australia
Posts: 226
|
Ok Thanks Thomas.
Just to clarify do you mean on the CV64 this version doesn't work *at all* or is just missing some features? And sorry if this is a simpletons' question, and you may not know the answer but with amithlon, why is Picasso96 version 2 installed as are the updates to it? |
04 September 2021, 11:31 | #220 | |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,285
|
Quote:
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
P96: What's the right way to do X? | Warty | Coders. General | 2 | 21 December 2020 00:00 |
Providing 2 fire button support / cd32 joypad support | amigapd | request.Other | 0 | 13 July 2015 17:20 |
Portaudio support (was: WinUAE support for ASIO drivers) | Amiga1992 | support.WinUAE | 57 | 28 March 2009 21:15 |
Classic WB P96 | Anubis | project.ClassicWB | 5 | 08 May 2006 14:30 |
amiga-news.de: Collected software-news | Paul | News | 0 | 14 November 2004 15:50 |
|
|