English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 19 August 2021, 11:01   #201
Thomas Richter
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.
Thomas Richter is offline  
Old 19 August 2021, 11:18   #202
tomcat666
Retro Freak
 
tomcat666's Avatar
 
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:

tomcat666 is offline  
Old 19 August 2021, 11:49   #203
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 3,285
Quote:
Originally Posted by tomcat666 View Post
Thank you for the new version.
I get the error "All P96 boards are in the display chain, monitor switching is pointless"
And there you have your problem. I cannot solve this for you. Apparently, the way how you start the monitor is not what you think it is - you are probably starting it from a different icon, a different directory, or a different mechanism and you are looking at an icon that is not used for starting it. I'd suggest to use "WBLoad" in the startup-sequence to do so:


Quote:
WBLoad DEVS:Monitors/PiGfx
Or whatever the icon is called...

A line that loads all monitors would look as such:
Quote:
list DEVS:Monitors/~(#?.info) files lformat="WBLoad %s" | execute
under Os 3.2.

Last edited by Thomas Richter; 19 August 2021 at 11:57.
Thomas Richter is offline  
Old 19 August 2021, 12:04   #204
tomcat666
Retro Freak
 
tomcat666's Avatar
 
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.
tomcat666 is offline  
Old 19 August 2021, 12:32   #205
Thomas Richter
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++.
Thomas Richter is offline  
Old 19 August 2021, 12:34   #206
tomcat666
Retro Freak
 
tomcat666's Avatar
 
Join Date: Nov 2001
Location: Slovenia
Age: 51
Posts: 1,662
Quote:
Originally Posted by Thomas Richter View Post
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++.
The multi monitor support works fine with PiGFX , I have 2 monitors up and running as we speak, so I guess the DISPLAYCHAIN=No is properly handled by it ? I will ask the developer, maybe he will have some insight.
tomcat666 is offline  
Old 19 August 2021, 13:16   #207
tomcat666
Retro Freak
 
tomcat666's Avatar
 
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.
tomcat666 is offline  
Old 19 August 2021, 14:18   #208
Thomas Richter
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.
Thomas Richter is offline  
Old 19 August 2021, 15:00   #209
tomcat666
Retro Freak
 
tomcat666's Avatar
 
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 !
tomcat666 is offline  
Old 19 August 2021, 15:08   #210
tomcat666
Retro Freak
 
tomcat666's Avatar
 
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?
tomcat666 is offline  
Old 19 August 2021, 16:14   #211
alexh
Thalion Webshrine
 
alexh's Avatar
 
Join Date: Jan 2004
Location: Oxford
Posts: 14,430
Quote:
Originally Posted by tomcat666 View Post
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?
Is this the "mouse blanker" app discussed earlier in this thread? Or is that something else?
alexh is offline  
Old 19 August 2021, 16:38   #212
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 3,285
Quote:
Originally Posted by tomcat666 View Post
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?
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...)
Thomas Richter is offline  
Old 19 August 2021, 18:16   #213
tomcat666
Retro Freak
 
tomcat666's Avatar
 
Join Date: Nov 2001
Location: Slovenia
Age: 51
Posts: 1,662
Quote:
Originally Posted by Thomas Richter View Post
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...)
_Bnu implemented the SetSprite() function and everything is working as expected. Sprite gets blanked when you are outside the RTG and reappears when you come back. Thank you !
tomcat666 is offline  
Old 19 August 2021, 19:06   #214
tomcat666
Retro Freak
 
tomcat666's Avatar
 
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 ]
tomcat666 is offline  
Old 24 August 2021, 23:50   #215
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,165
@Thomas Richter
You have PM
hexaae is offline  
Old 03 September 2021, 10:59   #216
Thomas Richter
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.
Thomas Richter is offline  
Old 03 September 2021, 14:57   #217
stefcep2
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?
stefcep2 is offline  
Old 03 September 2021, 16:24   #218
Thomas Richter
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.
Thomas Richter is offline  
Old 04 September 2021, 01:02   #219
stefcep2
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?
stefcep2 is offline  
Old 04 September 2021, 11:31   #220
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 3,285
Quote:
Originally Posted by stefcep2 View Post
Just to clarify do you mean on the CV64 this version doesn't work *at all* or is just missing some features?
The CVision64 is supported by P96 and works fine as far as I know, including screen dragging. So no problems in that direction, just that the hardware itself does not provide overlays required for this test program. Sorry, I cannot test this myself as I lack a card and an Amiga to plug it in, I can only check through betatesters. The latest thing I added to the driver was screen dragging support, and from what I know, this works fine. Just implemented from the specs. (Donor Z3 machines and CVision64 boards for potential driver improvements of course accepted. (-
Quote:
Originally Posted by stefcep2 View Post
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?
On Amithlon? Well, probably its makers/mainainers (if they exist anymore) should get in touch with Jens/iComp to get the new version licensed? P96 is commercial software.
Thomas Richter is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 16:45.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.10743 seconds with 14 queries