Welcome, Guest. Please login or register.

Author Topic: PTDQ - faster C2P  (Read 9031 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline saimoTopic starter

PTDQ - faster C2P
« on: February 10, 2025, 10:35:45 PM »
Released today.

PTDQ is a video system for AGA Amigas that provides a chunky-to-planar method which is faster than the traditional ones. It is the higher-quality brother of PTDS (formerly PED81C), another system based on the same core principle.

Video: https://www.youtube.com/watch?v=witR2EE9No8

[The video quality of the real machine output is heavily affected by the fact that the scandoubler did not support SHRES (so a real-time software trick was used to somehow produce the colors, although it is only a visual illusion and causes a sort of rasterline effect), the monitor did not support progressive PAL and the video was captured with an ancient phone at just 24.917 Hz. YouTube's compression degraded the video quality.]

Full details are provided in documentation included in the archive that can be downloaded from https://retream.itch.io/ptdq.

Edit: I get a server error if I try to include the pre-formatted tables that provide some additional information; anyway, the tables are included in the documentation.
« Last Edit: February 11, 2025, 05:42:29 PM by saimo »
RETREAM - retro dreams for Amiga, Commodore 64 and PC
 

Offline saimoTopic starter

Re: PTDQ - faster C2P
« Reply #1 on: September 15, 2025, 10:25:38 PM »
This video shows the Amiga AGA chipset combining 3 full screen 8-bit layers (or playfields, if you prefer) using various 8-bit alpha values.

https://www.youtube.com/watch?v=8YBfCrU0aK0


LAYERS

Background:
 * PTDQ system
 * 320x200 dots
 * max 256 colors

Middleground:
 * PTDS system
 * 160x200 logical dots, 319x200 physical dots
 * max 16 non-transparent colors
 * each base color can have an arbitrary 8-bit alpha (actually used: 0 for complete transparency, 128 for dark colors, 255 for bright colors)
 * "native" chunky dots (i.e. each byte in the layer buffer corresponds to a dot)
 * triple buffer

Foreground:
 * PTDQ system
 * 320x200 dots
 * max 81 non-transparent colors
 * each base color can have an arbitrary 8-bit alpha (actually used: 0 for complete transparency, 192 for see-through graphics, 255 for solid graphics)


NOTES

* The color model is RGBW for all the layers, but each layer could use a color model of its own without making any difference performance-wise.
* If the middleground had used PTDQ, its size would have been 320x200 dots and its maximum number of non-transparent colors would have been 81. However, that would have required the PTDQ C2P conversion.
* If the middleground did not use 100% transparent dots, its maximum number of colors would have been 81.
* If the foreground did not use 100% transparent dots, its maximum number of colors would have been 256.
* The display size is actually 319x200 dots to hide the leftmost column of dots, as PTDS requires a 1-dot shift to the right for the even bitplanes.
* The ball is rendered by scaling and flipping in real time a 128x128 chunky bitmap.
* The ball is wiped by means of both CPU and Blitter. The logic that handles the geometry still needs to be refined in order to provide a massive speedup.
* For convenience, the video has been recorded with WinUAE.
* On a stock Amiga 1200, the demo runs at 50 fps except when the ball covers most of the screen (in that case, the frame rate drops proportionally to the size of the ball); the slowdowns will be greatly reduced once the wiping is optimized.
* On an accelerated Amiga, the demo runs at steady 50 fps.
* YouTube's encoding reduced the saturation of colors.


CREDITS

The graphics have been obtained by processing the following pictures:
 * boing ball: from OBLIGEMENT / http://obligement.free.fr/gfx4/boingball_enregistree_amigacorporation.png
 * Earth: from https://cronianverse.fandom.com/wiki/Earth
 * plate: from Freepik / https://www.freepik.com/premium-ai-image/steampunk-frame-brass-metal-plate-with-empty-sheet-design-white-background_277147660.htm
 * porthole: by winwood1, from Wallpapers.com / https://wallpapers.com/png/round-porthole-window-png-05042024-zmsra0nm6gp8hvuv.html
« Last Edit: September 16, 2025, 08:48:06 AM by saimo »
RETREAM - retro dreams for Amiga, Commodore 64 and PC