English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 16 July 2009, 06:57   #1
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
AGA color depth - HAM style

Hi,

I just stumbled across the MooVid which appears to be able to display HAM 8 mode in realtime on a AGA chipset? Is this correct? I thought the HAM modes were too slow/difficult to use in realtime?

I've heard of a few AGA demos that use use animated HAM modes and this awesome [ Show youtube player ] seems to show more than 8bit colors in realtime animation.

Does anyone know of any other AGA games/apps that display and animate more than 256 colors at once?

NovaCoder is offline  
Old 16 July 2009, 12:54   #2
Leffmann
 
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
Dithering arbitrary truecolor images to good HAM8 representations can be costly, but a typical left to right scanline rasterizer can do HAM8 in realtime, and has been done in several Amiga demos. One that comes to mind is Dolphin's Dream by Push Entertainment. Because of how the HAM mode works you would typically resort to only having 1/3 horizonal resolution, which would speed rendering up as well.
Leffmann is offline  
Old 17 July 2009, 06:10   #3
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
Quote:
Originally Posted by Leffmann View Post
Dithering arbitrary truecolor images to good HAM8 representations can be costly, but a typical left to right scanline rasterizer can do HAM8 in realtime, and has been done in several Amiga demos. One that comes to mind is Dolphin's Dream by Push Entertainment. Because of how the HAM mode works you would typically resort to only having 1/3 horizonal resolution, which would speed rendering up as well.
Hiya,

Well I knew that you could do a static HAM backround with an animated 8bit object overlay but I didn't know you could animate HAM in realtime. Did any games every use this technique?

I finally got the MooVid player working last night and although it won't render HAM to a window, it will full-screen and it's very impressive
NovaCoder is offline  
Old 17 July 2009, 13:29   #4
Leffmann
 
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
What the HAM mode does is give each pixel the ability to either take its color value from one of the color registers, or to take the color value of the pixel to its left and replace one of the R, G or B components, so you can't set any pixel to any color value you want, and arbitrary drawing operations on single pixels can become very costly. I don't know of any game that uses HAM for moving graphics. Since AmigaOS doesn't offer the HAM mode for the Workbench there's no way of getting software to display HAM other than in fullscreen.

How's the player working? Do you get a good picture with a decent frame rate?
Leffmann is offline  
Old 17 July 2009, 14:26   #5
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
Quote:
Originally Posted by Leffmann View Post
What the HAM mode does is give each pixel the ability to either take its color value from one of the color registers, or to take the color value of the pixel to its left and replace one of the R, G or B components, so you can't set any pixel to any color value you want, and arbitrary drawing operations on single pixels can become very costly. I don't know of any game that uses HAM for moving graphics. Since AmigaOS doesn't offer the HAM mode for the Workbench there's no way of getting software to display HAM other than in fullscreen.

How's the player working? Do you get a good picture with a decent frame rate?
Yep it only displays 'high color' in fullscreen. The frame-rate is not great (about 8fps) but it is not only doing the HAM render, it's also decoding the AVI and mixing the sound.
NovaCoder is offline  
Old 17 July 2009, 15:18   #6
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,985
I already told you on Utilitybase that RGB-to-HAM conversion is faster than RGB-to-greyscale conversion if you use lowest quality, i.e. stupidly use one pixel to change red, one to change green and one to change blue. HAM is similar to JPEG: it is great for smooth color changes but fails completely on sharp contrasts. So for a movie player using HAM8 gives better results than greyscale if the movie shows a landscape and not a computer screen.

Some examples:
Attached Thumbnails
Click image for larger version

Name:	001.jpg
Views:	1257
Size:	72.6 KB
ID:	22115   Click image for larger version

Name:	002.jpg
Views:	847
Size:	54.5 KB
ID:	22116   Click image for larger version

Name:	003.jpg
Views:	570
Size:	80.5 KB
ID:	22117   Click image for larger version

Name:	tiger_800x600.jpg
Views:	979
Size:	94.1 KB
ID:	22118   Click image for larger version

Name:	parrotsbandg800x600.jpg
Views:	525
Size:	41.7 KB
ID:	22119  

Click image for larger version

Name:	sunflower_800x600.jpg
Views:	996
Size:	107.8 KB
ID:	22120  
thomas is offline  
Old 18 July 2009, 15:22   #7
NovaCoder
Registered User
 
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
Hiya Thomas,

Nice pics

I'm just amazed to find that you can get generate HAM images so quickly, I always thought HAM was only used for static images....very cool stuff for my old machine
NovaCoder 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
Color Saturation and Color Tint/Hue Retro-Nerd support.WinUAE 22 02 August 2018 10:38
Can't change color depth or screen mode VoltureX support.Apps 4 19 September 2011 11:39
ISO true color to 256 color algorithm Lord Riton Coders. General 19 15 April 2011 17:49
Any interest in: Toado, Depth Charge or Applejack AGA? jimmy2x2x Games images which need to be WHDified 0 12 April 2011 00:34
indivision aga and ham mode pbareges support.Hardware 3 03 February 2009 12:25

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 15:10.

Top

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