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


Forums > C64 Coding > AGSP stop
2018-04-08 22:03
DKT

Registered: Aug 2004
Posts: 49
AGSP stop

Howdy!
How to "stop" AGSP and show another static gfx starting at some position of the screen? AGSP starts from the top of the screen and I would like to show static logo at the bottom of the screen.
VSP is possible to stop with "anti" VSP, but what to do with Linecrunch? Is it possible with some trickery or do I have to move regions of mem to show gfx in a right place?
DKT
2018-04-08 22:31
Oswald

Registered: Apr 2002
Posts: 4230
anti linecrunch is what I can think of.
2018-04-08 22:44
DKT

Registered: Aug 2004
Posts: 49
Hehe.
I would like to not loose to much raster lines (max 1 char) for that in a "switch area". Any examples (demo link)? Thanks in advance.
2018-04-08 23:32
Oswald

Registered: Apr 2002
Posts: 4230
I think if there was another method to skip current char row, or manipulate char row displayed it'd had been discovered already.

better redesigning your effect, so that static part is on the upper area.
2018-04-09 07:23
ChristopherJam

Registered: Aug 2004
Posts: 777
Yes, the only way you can restore the character pointer to what it would have otherwise been is with anti-AGSP.

Even with Oswald's suggestion of swapping the AGSP area with your logo, you're still stuck running an AGSP routine in the middle of the screen. That would make it a lot easier to display graphics over that area mind; check out GOLC for one technique..

Simplest route of course would be to display your logo with sprites instead of chars/bitmap.
2018-04-09 13:03
Copyfault

Registered: Dec 2001
Posts: 238
Maybe it is feasible to just stick to VSP and do the y-mopvement the "hard" way, i.e. do softscrolling via $d011 but the hardscrolling by copying the gfx data. Ofcourse depends on scrolling speed and what other heavy duty tasks the cpu has to cope with;)

If you do it the other way around (copy the gfx data for the logo), you'll be forced to copy all data within one frame (whenever there is a linecrunch-event) whereas you have up to 8 frames time for the y-hardscroll as skteched above.

And this "anti"-VSP is needed in any case if I get it right atm...
2018-04-09 20:37
Compyx

Registered: Jan 2005
Posts: 306
Like others have mentioned, it's probably best to move the AGSP effect higher in the screen.

But displaying a logo after the AGSP can be achieved when using a charset-based logo. Just use a different screenram you can just 'plot' a 6x40 logo using the AGSP X and Y coords to store the logo at the correct position (wrapping around when required, which will slightly slow down the coying).

Of course sprite pointers will at some point be used as screen data, so unless you adjust the AGSP movement, sprites won't be possible.
Another possibility, as others have mentioned, is using just sprites. You can make 40-char wide dycp with just 14 sprites.
2018-04-09 22:03
DKT

Registered: Aug 2004
Posts: 49
Thanks guys for the tips. I can see some workarounds and will try to find most optimized to get best looking effect.
2018-04-09 22:21
Oswald

Registered: Apr 2002
Posts: 4230
"40-char wide dycp with just 14 sprites."


what?
2018-04-10 00:52
ChristopherJam

Registered: Aug 2004
Posts: 777
Well, you know, each sprite is 3 chars wide, so 14*3=42, enough to cover the width of the screen.

Just write $3fff to register $d015 to enable them.

(No time to open borders though, with all that DMA going on.)
2018-04-10 07:48
קєคςє๓คкєг

Registered: Sep 2004
Posts: 184
14 sprites at same rasterline(s)?
did i miss something? :D
2018-04-10 08:40
Spinball

Registered: Sep 2002
Posts: 82
Just make shure the sinus of the DYCP never gives you more then 8 sprites per line?
2018-04-10 09:03
Oswald

Registered: Apr 2002
Posts: 4230
Quote: Well, you know, each sprite is 3 chars wide, so 14*3=42, enough to cover the width of the screen.

Just write $3fff to register $d015 to enable them.

(No time to open borders though, with all that DMA going on.)


ok you need 14 physical multiplexed sprites. thats cool :) $3fff = typo ?
2018-04-10 09:44
ChristopherJam

Registered: Aug 2004
Posts: 777
Nah, I was just being silly because I didn't follow what compyx was getting at :)

Kind of skimmed over the dycp bit because DKT had been talking about displaying a logo rather than a scroller (besides, would that not be a dysp??)
2018-04-14 21:23
Golara

Registered: Jan 2018
Posts: 60
Quote: Nah, I was just being silly because I didn't follow what compyx was getting at :)

Kind of skimmed over the dycp bit because DKT had been talking about displaying a logo rather than a scroller (besides, would that not be a dysp??)


I guess one can draw a logo with each letter being the size of a sprite so they can move up and down.
2018-04-14 22:25
Compyx

Registered: Jan 2005
Posts: 306
I see I caused some confusion here :)

But yes, using a 14-sprite multiplexer with fixed Y-values will allow you to create the illusion of a DYCP when moving the sprites in the X-direction really fast. This will make rendering chars in the sprites really simple, the Y-offsets are fixed and there's no need to clear the chars. (Somewhat similar to plotters cheating with fixed X-positions)

An example is in the final part of Untouchable II where I use this trick to have DYCP over a bitmap logo, another example is the 'DYCP' over a FLI logo in Not Worthy .
2018-04-15 04:29
Perplex

Registered: Feb 2009
Posts: 205
First time I can remember seeing that particular trick was in the final part of Digital Delight by Panoramic Designs.
2018-04-15 19:41
Digger

Registered: Mar 2005
Posts: 272
Ah these logos Compyx, such mastery.
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
ilesj/TRIAD
Guests online: 33
Top Demos
1 Uncensored  (9.7)
2 Edge of Disgrace  (9.7)
3 Coma Light 13  (9.6)
4 The Shores of Reflec..  (9.6)
5 Comaland 100%  (9.6)
6 We Come in Peace  (9.6)
7 Lunatico  (9.6)
8 Incoherent Nightmare  (9.5)
9 Wonderland XII  (9.5)
10 Wonderland XIII  (9.5)
Top onefile Demos
1 Dawnfall V1.1  (9.5)
2 Synthesis  (9.5)
3 FMX Music Demo  (9.5)
4 Pandemoniac Part 2 o..  (9.5)
5 Daah, Those Acid Pil..  (9.5)
6 Treu Love [reu]  (9.5)
7 Merry Xmas 2017  (9.4)
8 Dawnfall  (9.4)
9 Gubbdata 2017 Invite  (9.3)
10 SidRok  (9.3)
Top Groups
1 Oxyron  (9.4)
2 Booze Design  (9.4)
3 Censor Design  (9.4)
4 Finnish Gold  (9.4)
5 Crest  (9.3)
Top Crackers
1 S!R  (10)
2 Mr. Z  (10)
3 Mr Zero Page  (9.9)
4 OTD  (9.9)
5 Mitch  (9.8)

Home - Disclaimer
Copyright © No Name 2001-2018
Page generated in: 1.413 sec.