| |
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? |
|
... 2 posts hidden. Click here to view all posts.... |
| |
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 |
| |
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! |
| |
Axel Account closed
Registered: Apr 2006 Posts: 42 |
thanks ;) but how use spritepointers?
How can I calculate this? |
| |
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. |
| |
Axel Account closed
Registered: Apr 2006 Posts: 42 |
Source code of cbmplugs is a great thing :)
Thanks for help, very much :D
|
| |
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.
|
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
yay, no... i was thinking about go64 (german paper mag) - but it's infact the same article =) |
| |
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 |
| |
Axel Account closed
Registered: Apr 2006 Posts: 42 |
ok thanks :D SHF and SHF-XL is now supported :D
Who can tell me how is packed SHIF picture from Crest editor |
| |
Raf
Registered: Nov 2003 Posts: 343 |
Now I know who Ramos told me about is about to make another c64 pictures viewer for pc...
I'm just curious if you are writing such prgoram from scratch or maybe extending something already written, as I don't see a point in making another prgoram for viewing, rather extending something already written
(Ramos asked me for VICPC sourcecode for you... I don't mean it's ideal piece of code anyway ;-) )
www.vulture.c64.org |
Previous - 1 | 2 - Next |