English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General > Coders. Tutorials

 
 
Thread Tools
Old 12 July 2018, 18:53   #1
Yragael
Registered User
 
Join Date: Jun 2017
Location: Paris
Posts: 51
New tutorial on BOBs

Hi


For those who need some basic code to start with BOBs in assembly language, I just published this article :


http://www.stashofcode.fr/afficher-s...s-sur-amiga-2/


Written in french, but if you don't read french and are looking for code, just download the archive that contains those basic samples :

bobRAW.s for displaying a a BOB in RAW format

bobRAWB.s for displaying a BOB in RAW Blitter format

unlimitedBobs.s for using BOBs in the unlimited BOBs FX

vectorBalls.s for using BOBs in the vector balls FX

Have fun!

Last edited by Yragael; 13 July 2018 at 09:04.
Yragael is offline  
Old 13 July 2018, 14:50   #2
Jeeg
Registered User
 
Jeeg's Avatar
 
Join Date: Jun 2016
Location: France
Posts: 18
Nice to share it with the whole community. :-)
Jeeg is offline  
Old 14 July 2018, 09:36   #3
turrican3
Moon 1969 = amiga 1985
 
turrican3's Avatar
 
Join Date: Apr 2007
Location: belgium
Age: 48
Posts: 3,913
excellent thank you guys.
turrican3 is offline  
Old 14 July 2018, 10:20   #4
meynaf
son of 68k
 
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
Always good to see quality french articles.
Don't hesitate to write more, english sux
meynaf is offline  
Old 14 July 2018, 18:21   #5
kamelito
Zone Friend
 
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,801
Quote:
Originally Posted by meynaf View Post
Always good to see quality french articles.
Don't hesitate to write more, english sux
Lexomil aussi...
http://flabrador.free.fr/lexo/amiga/index.html
kamelito is offline  
Old 14 July 2018, 19:31   #6
Steve
I Identify as an Ewok
 
Steve's Avatar
 
Join Date: Jul 2001
Location: North Lincolnshire
Age: 45
Posts: 2,356
Cool tutorials. Thanks!

I've tried compiling a couple but am getting compiler errors using Devpac 3.

I've attached a screenshot. Anyone got any clues about the errors?
Attached Thumbnails
Click image for larger version

Name:	027.png
Views:	315
Size:	28.7 KB
ID:	58821  
Steve is offline  
Old 14 July 2018, 22:28   #7
DrCinicus
Registered User
 
Join Date: Oct 2008
Location: Assemini/Italy
Age: 51
Posts: 23
Quote:
Originally Posted by Steve View Post
Cool tutorials. Thanks!

I've tried compiling a couple but am getting compiler errors using Devpac 3.

I've attached a screenshot. Anyone got any clues about the errors?
In the first errors you should change addi.w in add.w;in the others you should use dcb.b instead of blk.b
DrCinicus is offline  
Old 15 July 2018, 00:18   #8
Steve
I Identify as an Ewok
 
Steve's Avatar
 
Join Date: Jul 2001
Location: North Lincolnshire
Age: 45
Posts: 2,356
Quote:
Originally Posted by DrCinicus View Post
In the first errors you should change addi.w in add.w;in the others you should use dcb.b instead of blk.b
Hi DrCinicus

Thanks for your help. Works perfectly now. Cheers!
Attached Thumbnails
Click image for larger version

Name:	Devpac 3_001.png
Views:	345
Size:	26.0 KB
ID:	58841  
Steve is offline  
Old 12 August 2018, 01:26   #9
Yragael
Registered User
 
Join Date: Jun 2017
Location: Paris
Posts: 51
I added perfectBob.s to the ZIP file.

It is an enhanced version of bobRAWB.s: it displays a BOB that is masked (ie: the BOB may contain transparent pixels) and that is cleared from the background between frames (ie: the whole background is not cleared between frames, which saves a lot of time when there are numerous bitplanes).

Note that using masks to recover only the pixels of the rectangular area of the background that the BOB hides is certainly not the fastest way to recover the background if this background did not change between frames. A better option would be to recover all the WORDs that the BOB hides even partially, which means copying a WORD-aligned part of the background without masking any part of it. Still, a precise recovering routine may be useful. Moreover, it is another interesting example of one usage of the Blitter.

So, the code contains three routines that use data structures :

_drawBOB draws the BOB

_clearBOB recovers the background behind the BOB with a pixel precision

_clearBOBFast recovers the background behind the BOB with a WORD precision

Last edited by Yragael; 13 August 2018 at 08:24. Reason: I had trouble understanding myself :)
Yragael is offline  
Old 15 August 2018, 00:00   #10
Yragael
Registered User
 
Join Date: Jun 2017
Location: Paris
Posts: 51
The files bobRAW.s and bobRAWB.s have been updated in the archive. Sorry guys : the previous ones were bad versions, with no masking.
Yragael 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
Clipping bobs roondar Coders. General 18 24 September 2015 09:54
Blitter Objects (bobs) Lonewolf10 Coders. Tutorials 3 22 February 2013 22:24
FS: A4000/30 plus bits and bobs Interceptor MarketPlace 0 22 October 2011 22:52
FS: Various bits n bobs jujasi MarketPlace 0 12 July 2009 19:13
Bobs Garden Big-Byte Amiga scene 7 26 October 2002 11:24

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 13:12.

Top

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