Jump to content
Heaven/TQA

My WIP Christmas Contribution

Recommended Posts

ok...as last year I wanted to contribute with a small demo screen...

 

here is the WIP which has some bugs and no music yet...

 

so if there is anybody who has some Christmas track in RMT just let me know... or more ideas... ;) feel free to post it...

christ1.zip

post-528-1229890582_thumb.png

Share this post


Link to post
Share on other sites

Looks great so far ;)

 

More than I did till now... I thought I could do something yet, but always there are other things to do, than coding for a8 :( Sometimes I wish a day could have some more hours...

Share this post


Link to post
Share on other sites
Sometimes I wish a day could have some more hours...
I looked for a solution to this problem and found that the answer was sleep deprivation! :sleep: :woozy:

Merry coding.. I mean Christmas :D

 

Good stuff Heaven, Merry Christmas to you too ;)

Edited by Tezz

Share this post


Link to post
Share on other sites

Will you be adding to it?

 

I've got a music piece sitting here that I'll be using with mine.

So far all I have planned is a static pic with extra colours.

 

Something like that would go well with some more text (greets etc), but it would have to be restricted to about 1/4 screen, and has to leave enough CPU cycles free to run a stereo RMT song (my pic will have a full-length kernal).

Share this post


Link to post
Share on other sites

Nice font.

 

I've gotta get going with my stuff - couple of hours today and it's from nothing to hopefully almost there.

Actually, it's been more like 4 hours spread about the place doing stuff as notes before any real programming got done.

Share this post


Link to post
Share on other sites

font is from one of my fave site:

 

http://cgi.algonet.se/htbin/cgiwrap?user=g...script=fonts.pl

 

and was converted with PaintShop Pro XI (aligned on a 8x8 raster plus 160x200 bitmap) which then got loaded into g2f to save as MIC. Then own turbo basic converter to put the merry christmas on 32x256 bitmap format for the scroller... ;)

 

with 256 byte scanlines the building of the dlist per frame was easy... ;)

 

for the swining of the dlist I did a nice trick... i have a dummy displaylist with 240x empty scanlines and a jump instruction to the scroller displaylist...

 

so a simple sintable ranging from 0-239 and I can easily write that into the low byte of the dlistv and voila my scroller swings... ;)

 

so...how would a VIC do this??? ;) of course possible with badline trickery and FLDs...but the twist is nice, too... and I am not finished yet... ;)

Share this post


Link to post
Share on other sites
font is from one of my fave site:

 

http://cgi.algonet.se/htbin/cgiwrap?user=g...script=fonts.pl

 

and was converted with PaintShop Pro XI (aligned on a 8x8 raster plus 160x200 bitmap) which then got loaded into g2f to save as MIC. Then own turbo basic converter to put the merry christmas on 32x256 bitmap format for the scroller... ;)

 

with 256 byte scanlines the building of the dlist per frame was easy... ;)

 

for the swining of the dlist I did a nice trick... i have a dummy displaylist with 240x empty scanlines and a jump instruction to the scroller displaylist...

 

so a simple sintable ranging from 0-239 and I can easily write that into the low byte of the dlistv and voila my scroller swings... ;)

 

so...how would a VIC do this??? ;) of course possible with badline trickery and FLDs...but the twist is nice, too... and I am not finished yet... ;)

 

small update... bugs ironed out and I have some ideas regarding the up/lower part of the scroller or to say for the background layer...

 

ps. did someone test the stuff on NTSC machines?

christ1.zip

Share this post


Link to post
Share on other sites

Picture looks great ;)

 

The bouncing scroller should be no problem above a picture - I did it in an ABBUC Magazin intro - off course only GR.15 pictrue and normal scroller - but with your advanced skills it can´t be any problem ;)

Share this post


Link to post
Share on other sites

Jesus... ;) why the hell do I force myself to finish the damned beast til tomorrow... ;)

 

not caught in a mosh but caught by some bugs... ;)

 

 

I was not aware of that a tip pic needs 24k alone!

Share this post


Link to post
Share on other sites

ok...the tricky part is that the tip fx is done via a one huge DLI... hmmm... the scroller has DLIs too...hmmm... so I squeeze both together in 1 monster DLI...

Share this post


Link to post
Share on other sites

well... what I am trying is to have a big DLI on the special y-pos I am switching to new dlist of the scroller by altering $d402,$d403... now did anybody tried to avoid the $01 in the end of the displaylist? I just want to blend the new display list via DLI and switch back?

Share this post


Link to post
Share on other sites

Why the need to avoid the $41 (JVB) ?

 

You could use the same technique - reload the DList pointer directly on the second last scanline.

 

It shouldn't matter too much - as long as the last scanline isn't Mode 2,3 or F since that will cause the screen-roll "bug". But, the DList pointer then must be reloaded by the system VBlank routine. Stage 2 does that but it's not guaranteed execution, e.g. it's skipped if an IRQ was in progress or IRQs are masked, or CRITIC flag is set.

 

I suppose you could just ensure it's loaded by doing it in your Stage 1 routine.

Share this post


Link to post
Share on other sites

no... Rybags...

 

consider the TIP picture... now you want to "insert" the scroller display list (32x3 bytes)... the DLI is a huge $76*2 rasterline DLI. so...I had the idea that on y-pos the DLI code is setting $d402,$d403 and the DLI is continuing with 32 STA Wsyncs and then I had the idea to switch back to the correct dlist pos of the TIP while the DLI continues to make the TIP fx...

 

the scroller dlist does not contain any $01 or $41...

Share this post


Link to post
Share on other sites

Shouldn't be a problem...

 

Loop in the TIP part whatever number of iterations needed, then load Antic's DList pointer at the relevant time.

Remembering you need to do it pretty quickly since the fetch occurs not long after WSync.

 

Empty loop then reload the pointer again. But, shouldn't you need to calculate what address to resume (LMS) at ?

 

I assume you'd want the scroller to overlay the picture rather than split it into two (if you know what I mean).

 

Makes it a bit easier if your TIP pic has LMS every scanline anyway, then all you need to do is a quick multiplication by 3 to work out addresses.

Share this post


Link to post
Share on other sites

yup. the TIP has standard 3 byte LMS so no trickery here. So I can precalc the entry points in the VBL. As the scroller occupies 32 scanlines I know how many lms i need to skip of each dlist.

 

but maybe i am too tired.

Share this post


Link to post
Share on other sites

To make it much easier, why not just build the DList with LMS on every single line.

 

Costs a little more RAM and 2 cycles are then lost every scanline - but saves you the task of having to calculate and insert the address in the VBL. All that remains is to calculate the reload address for the end of the inserted text part.

Share this post


Link to post
Share on other sites

it is little bit tricky due to the interlace nature and the "complicated" TIP dlists...

 

you have to be carefull not to miss the entry point to the correct scanline in the display list otherwise your TIP gets out of sync or the pic get starting rolling...

 

btw. the original pic is from the desktop background of Mirror's Edge... http://www.mirrorsedge.com/

post-528-1230107305_thumb.png

Edited by Heaven/TQA

Share this post


Link to post
Share on other sites

should swing over the TIP as soon as I have implemented the missing DLI code + lookup tables for the dlist entry points.

 

I am glad that I reached this point at all... ;)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...