English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 01 April 2013, 01:37   #1
Vikke
Registered User
 
Join Date: Feb 2013
Location: Lovisa / Finland
Age: 53
Posts: 80
4th tutorial on ASM- and HW-coding

Hi again,

This time I make the same effect as last time, but on a larger copperbar. This needs a larger Hshift-value than 16px, so a little trick is used, but not modulos this time. In the LHA there are 2 executables, one is compiled from the given source, the other using a slightly different method. Compare the 2 methods, and you should notice that the one supplied in the source looks better.

Next time it will be a new "effect", using the Blitter and some fonts... what can it possibly be?

Site: http://vikke.net

Last edited by Vikke; 01 April 2013 at 04:45.
Vikke is offline  
Old 01 April 2013, 19:24   #2
hooverphonique
ex. demoscener "Bigmama"
 
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 1,636
in the description on your site, you mention "bitfield" multiple times.. I think the term generally used is "bitplane" :-)

also: sine scroller?
hooverphonique is offline  
Old 01 April 2013, 19:57   #3
Vikke
Registered User
 
Join Date: Feb 2013
Location: Lovisa / Finland
Age: 53
Posts: 80
Yes, I will change the wording to bitplane instead of bitfield. Not that bitfield is totally wrong, but bitplane is more commonly used in Amiga programming. I shouldn't be writing the tutorials in the middle of the night. But I just had to watch the Revision 2013 stream last night

Well, before you can make a sine-scroller you need to make a normal one first. But a sine-scroller will come soon.
Vikke is offline  
Old 01 April 2013, 20:11   #4
CFou!
Moderator
 
CFou!'s Avatar
 
Join Date: Sep 2004
Location: France
Age: 51
Posts: 4,277
Quote:
Originally Posted by Vikke View Post
Well, before you can make a sine-scroller you need to make a normal one first. But a sine-scroller will come soon.

but horizontal scolling code is completely different from sinus scroll
CFou! is offline  
Old 01 April 2013, 20:15   #5
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
Quote:
Originally Posted by CFOU! View Post
but horizontal scolling code is completely different from sinus scroll
Nope, not really. You still need a normal horizontal scroller for doing the sine scroll, a sine scroller is not much different to a normal scroller.
StingRay is offline  
Old 01 April 2013, 20:41   #6
CFou!
Moderator
 
CFou!'s Avatar
 
Join Date: Sep 2004
Location: France
Age: 51
Posts: 4,277
Quote:
Originally Posted by StingRay View Post
Nope, not really. You still need a normal horizontal scroller for doing the sine scroll, a sine scroller is not much different to a normal scroller.
so we have not same method to code it !
CFou! is offline  
Old 01 April 2013, 20:53   #7
Vikke
Registered User
 
Join Date: Feb 2013
Location: Lovisa / Finland
Age: 53
Posts: 80
I can think of 2 totally different methods for doing a sine scoller with the blitter. One implements a standard horizontal scroller to some degree, the other method is .... something I have never even tested, but it hit me as a possibility a couple of weeks ago.

Perhaps I will have to test out this "new" method at some point, it could be a really really good way of doing it, or really shitty
Vikke is offline  
Old 01 April 2013, 21:16   #8
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
Quote:
Originally Posted by CFOU! View Post
so we have not same method to code it !
While that might be true anyone who understands how to code a standard horizontal scroller is able to code a sine scroller too! Since the principle is the same: scroll some characters from right to left (or vice versa), the only difference is how you blit/draw the characters. A sine scroller is an "extended version" of a standard scroller just like a gouraud triangle filler is an "extended version" of a standard flat triangle filler.
StingRay is offline  
Old 02 April 2013, 09:59   #9
hooverphonique
ex. demoscener "Bigmama"
 
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 1,636
yes.. the revision stream was not to be missed saturday and sunday night :-)

in the past I've done my sine scrollers based on a regular horizontal scroll as well.. since then, I've thought that it must be possible to do one where you blit the vertical slice directly from the font data and onto the screen - never tried implementing it, though...
hooverphonique is offline  
Old 04 April 2013, 00:44   #10
musashi9
Registered User
 
musashi9's Avatar
 
Join Date: Jul 2003
Location: Japan
Posts: 178
Send a message via ICQ to musashi9
Great tutorials, I love them.
I can't wait for the next one.
musashi9 is offline  
Old 10 April 2013, 14:20   #11
leonard
Registered User
 
leonard's Avatar
 
Join Date: Apr 2013
Location: paris
Posts: 133
Hi,

thanks for these tutorials. I try to setup a small test on amiga 500, OCS. I'm looking for a good video registers init for 320*256 pixels, on OCS. ( I already have some code doing this, but for AGA)

In your sample I get that init, but it's for 320*200, how should I modify values to get 320*256 ?

move.w #$3200,$dff100 ; 3 bitplane lowres
move.w #$0000,$dff102 ; horizontal scroll 0
move.w #$2c81,$dff08e ; DIWSTRT - topleft corner (2c81)
move.w #$f4d1,$dff090 ; DIVSTOP - bottomright corner (f4d1)
move.w #$0030,$dff092 ; DDFSTRT - max overscan $0018
move.w #$00d0,$dff094 ; DDFSTOP - max overscan $00d8

thanks
leonard is offline  
Old 10 April 2013, 20:32   #12
Vikke
Registered User
 
Join Date: Feb 2013
Location: Lovisa / Finland
Age: 53
Posts: 80
For 256 scanlines,you have to change DIWSTOP to $2CC1.
Vikke 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
3rd tutorial on ASM- and HW-coding Vikke Coders. Asm / Hardware 6 26 March 2013 15:57
First tutorial on ASM- and HW-coding Vikke Coders. Asm / Hardware 46 18 March 2013 12:33
2nd tutorial on ASM- and HW-coding Vikke Coders. Asm / Hardware 10 17 March 2013 11:49
4th & Inches EreWeGo Games images which need to be WHDified 9 30 January 2012 08:54
REQ: AF 115 (C Coding Tutorial) quenthal AMR suggestions and feedback 2 23 July 2007 14:08

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 11:17.

Top

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