Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > sprite layer in SHF
2008-08-23 13:19
Axel
Account closed

Registered: Apr 2006
Posts: 42
sprite layer in SHF

Hello, I have question about this mode.
I am trying to make PC shower which will support these editors:
SHF-Editor V1.0
SHF-XL V1.0
but sprite layer information is spreded in whole file with picture. How to use this information? I can only display an AFLI layer.
Who can help me?
2008-08-23 23:34
Tao

Registered: Aug 2002
Posts: 115
Check the source code of cbmplugs (GIMP plugins); it supports SHF & SHF-XL.
2008-08-24 07:42
QuasaR

Registered: Dec 2001
Posts: 145
Check this out: http://unusedino.de/ec64/technical/aay/c64/frmmain.htm
2008-08-24 10:00
chatGPZ

Registered: Dec 2001
Posts: 11386
it's a bit hard to explain... took me a while aswell when making my converter stuff :)

what i did was writing a little program which for each rasterline checks the sprite pointers on that line, and then calculates were the data is located.

mmmh and now i remember... crossbow also explained it in go64, there is a (german i think) textfile floating around (shfli.txt) which explains how it works. cant find it atm though =P
2008-08-24 11:02
Dane

Registered: May 2002
Posts: 423
Read d018 on line 00. Check +$03f8 for spritepointers. Calculate where these are in the bank. Calculate what line you are on in the sprite - some modes use expanded sprites and some don't. The graphics that you now find from these calculations will be displayed on line 01.

SHF uses two layers of singlecolour sprites. SHF-XL uses one layer.

In next week's episode: Axel cracks the XFLI-format!
2008-08-24 13:08
Axel
Account closed

Registered: Apr 2006
Posts: 42
thanks ;) but how use spritepointers?
How can I calculate this?
2008-08-24 16:59
Dane

Registered: May 2002
Posts: 423
Either you cheat with some tables or you shift the spritepointer byte 6 bits to the left. $11 -> $0440 and so on. Don't forget to add $4000 or $c000 according to bank, of course.
2008-08-26 07:43
Axel
Account closed

Registered: Apr 2006
Posts: 42
Source code of cbmplugs is a great thing :)
Thanks for help, very much :D
2008-08-26 07:56
Frantic

Registered: Mar 2003
Posts: 1648
Groepaz: Is this the mag your thinking of?

http://codebase64.org/doku.php?id=magazines:discovery2

It has an article about shifli by Crossbow and Count Zero.

2008-08-26 08:06
chatGPZ

Registered: Dec 2001
Posts: 11386
yay, no... i was thinking about go64 (german paper mag) - but it's infact the same article =)
2008-08-27 18:18
algorithm

Registered: May 2002
Posts: 705
Mapping a sprite layer to SHFLI format is trivial, analyse the routine via monitor and you will have a rough idea which locations each sprite line etc should be in. Its just a case of then scattering the sprite y lines to the required places.
Now a mode such as MUFLI would be more awkward in comparison due to sprite color changes y expansion etc
 
... 2 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Acidchild/Padua
HCL/Booze Design
BYB/Hokuto Force
DJ Space
rexbeng
deetsay
heavymett
Peacemaker/CENSOR/Hi..
Guests online: 139
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Original Suppliers
1 Derbyshire Ram  (9.7)
2 Fungus  (9.3)
3 Black Beard  (9.2)
4 Baracuda  (9.2)
5 hedning  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.046 sec.