English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 24 November 2007, 08:37   #1
Thorham
Computer Nerd
 
Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,770
Interlace question. Solved!

Good day folks,

Does anyone know how to setup an interlace screen using only the hardware registers? I currently have a 1280x256 ham8 screen up and running, and I want to make this 1280x512. Just setting the interlace bit in bplcon0 seems to be only one step, one would think it would be enough...

Any help is greatly appreciated.

Last edited by Thorham; 24 November 2007 at 16:01.
Thorham is offline  
Old 24 November 2007, 09:28   #2
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,002
You have to double the modulo so that only every second line is displayed and then you have to alternate the memory address every frame. Use the first line for a long frame and the second line for a short frame. I don't remember how to identify a long frame, though.

To do this with the copper only, you can use two copper lists and set the address of the second list at the end of the first one and vice versa.
thomas is offline  
Old 24 November 2007, 10:14   #3
Thorham
Computer Nerd
 
Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,770
Sounds good. Thanks

I seem to remember something about this, but only very vaguely.
Thorham is offline  
Old 24 November 2007, 10:27   #4
StrategyGamer
Total Chaos AGA is fun!
 
Join Date: Jun 2005
Location: USA
Posts: 873
Are you coding an interlace demo?
StrategyGamer is offline  
Old 24 November 2007, 10:52   #5
Thorham
Computer Nerd
 
Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,770
It works! Hurray!! There are still some issues, though. But I guess I can fix them (hopefully).

Major thanks to thomas
Thorham is offline  
Old 24 November 2007, 11:00   #6
Thorham
Computer Nerd
 
Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,770
Quote:
Originally Posted by StrategyGamer View Post
Are you coding an interlace demo?
It's for a bmp viewer example I've coded. I wanted to see how fast a 3x1 pixel shires ham8 24 bit bmp viewer with scaling would be. The program scales down a 24bit bmp to 33%x50% in good quality. I just needed the interlace mode to get the aspect ratio of the display right. It's a good idea, though, however I'm not really a graphics/music guy, so any demo I would make wouldn't really be very cool. Also, my current c2p routine is quite unoptimized so I wouldn't be able to code up anything impressive!
Thorham 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
Need a TV with flicker free interlace VoltureX support.Hardware 15 28 December 2011 21:37
interlace a3k lost_loven support.Hardware 11 27 November 2011 16:16
Resolution Autoswitch and Interlace Leandro Jardim support.WinUAE 4 06 April 2011 10:47
de-interlace algorythm VermillioN request.UAE Wishlist 4 15 August 2004 05: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 14:50.

Top

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