12 July 2018, 18:53 | #1 |
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. |
13 July 2018, 14:50 | #2 |
Registered User
Join Date: Jun 2016
Location: France
Posts: 18
|
Nice to share it with the whole community. :-)
|
14 July 2018, 09:36 | #3 |
Moon 1969 = amiga 1985
Join Date: Apr 2007
Location: belgium
Age: 48
Posts: 3,913
|
excellent thank you guys.
|
14 July 2018, 10:20 | #4 |
son of 68k
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 |
14 July 2018, 18:21 | #5 | |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,801
|
Quote:
http://flabrador.free.fr/lexo/amiga/index.html |
|
14 July 2018, 19:31 | #6 |
I Identify as an Ewok
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? |
14 July 2018, 22:28 | #7 |
Registered User
Join Date: Oct 2008
Location: Assemini/Italy
Age: 51
Posts: 23
|
In the first errors you should change addi.w in add.w;in the others you should use dcb.b instead of blk.b
|
15 July 2018, 00:18 | #8 | |
I Identify as an Ewok
Join Date: Jul 2001
Location: North Lincolnshire
Age: 45
Posts: 2,356
|
Quote:
Thanks for your help. Works perfectly now. Cheers! |
|
12 August 2018, 01:26 | #9 |
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 :) |
15 August 2018, 00:00 | #10 |
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.
|
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 |
|
|