Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Harvey ! (Registered 2024-11-25) You are not logged in - nap
CSDb User Forums


Forums > C64 Productions > Limitations - Sprites in the Borders
2006-08-26 19:38
Wile Coyote
Account closed

Registered: Mar 2004
Posts: 646
Limitations - Sprites in the Borders

hello,

I was thinking, has anyone drawn up a doc with (pictures :)explaining *all known* possibilities with placing sprites into the border areas of the screen.

I know:
8 sprites can be placed in the upper and lower borders.
7 sprites can be placed in the side borders.

I was thinking, what about the corner borders,is that classed as a sideborder or a top or bottom border (8 sprites).

Another question :) when 7 sprites are placed into the sideborders can the 8th free sprite be placed into the main (center) screen areas or by opening up the side borders, is the option for an 8th sprite not available.

I am asking these questions as i am thinking about designs that use the border areas :)

thanks
/wec
 
... 35 posts hidden. Click here to view all posts....
 
2006-08-27 09:41
JackAsser

Registered: Jun 2002
Posts: 2014
Also, if you wanna use sprites in the sideborder together with badlines (i.e. char data or bitmap data) you're limited to only 4 sprites per raster line iirc. At least not as high as 7.

Bad line = 40c
Sprite setup = 1-3c
Cycles per sprite = 2c
Cycles per line = 63c
Minimum cycles requires for removing the sideborder = 8c (higly theoretical)

63-40-1-8 = 14c

14/2 = 7 sprites, but this assumes 1 cycle sprite setup time and 8 cycles for removing the sideborder, I'm sceptical... F.e. to make use of the 2 cycles in the sprite setup time you need to use a RMW-instruction to remove the border which will in practice make the border removal 10cycles, i.e. nothing gained.

Anyways, my VIC-schooling has taught me that 4 sprites in the sideborder + normal badlines is the max you can get. I'd like to hear a nice theoretical explanation for this though...

7 sprites + sideborder and char graphics is possible only if you dis-allow new badlines to form. The $d011 trick required to do this unfortunatly collides with sprite fetch 0, hence only sprites 1-7 are usable (I use this trick in Panta Rhei and LCP Memories f.e.). But not allowing badlines to form, limits the graphics possibilities quite alot, although having a WEC logo which is rather simple is not a problem at all, if you have that in mind.
2006-08-27 09:46
tlr

Registered: Sep 2003
Posts: 1787
Quote: The intro picture of Deus Ex Machina is very well thought out.


.at the moment Tlr i'm just looking into design ideas :)


Actually that was Jetboy's post, but I can help out too if you like. :)
Breakpoint 06 c64 Graphics Seminar does some explanation on how the Deus Ex Machina picture was created (in Photoshop), and much more.

Basically you can have 7 (usually just 4) sprites per line in the "screen" part of the y-coordinates, and 8 in the rest.
There are many restrictions based on this. I haven't seen anybody manage FLI every line with 7 sprites in the border for example.
If you stay on the standard VIC-II modes (MultiColor/Hires) + sideborder you'll be safe. Otherwise I suggest you present an idea, and then someone codes a viewer to test if it is possible to display it before you draw it.

Oswalds comment about the X-coordinates is just that coordinate 0 is not the leftmost location.

Also what usually limits you from displaying many sprites in the "screen" area is that every 8th line is a "badline", i.e less raster time to open the border.

There are ways to manipulate these badlines (e.g FLI which adds them).

You could for example work with the restriction that some parts of the screen have more sprites, but doesn't open the border in some of the raster lines. Note that when not opening the border in a line, the border color will show one raster line lower on the left side than on the right side.
2006-08-27 10:01
Graham
Account closed

Registered: Dec 2002
Posts: 990
I have to agree with JackAsser, under normal circumstances you won't get more than 4 sprites in the sideborders.

Quote:
I haven't seen anybody manage FLI every line with 7 sprites in the border for example.

And I haven't seen anybody managing FLI every line with even 1 sprite in the border.
2006-08-27 10:17
tlr

Registered: Sep 2003
Posts: 1787
Quote: I have to agree with JackAsser, under normal circumstances you won't get more than 4 sprites in the sideborders.

Quote:
I haven't seen anybody manage FLI every line with 7 sprites in the border for example.

And I haven't seen anybody managing FLI every line with even 1 sprite in the border.


@Graham: I stand corrected.
I must admit I stopped coding demos for the c64 in 1988, although I followed the developments since then. ;)
2006-08-27 11:08
Wile Coyote
Account closed

Registered: Mar 2004
Posts: 646
Quote: Actually that was Jetboy's post, but I can help out too if you like. :)
Breakpoint 06 c64 Graphics Seminar does some explanation on how the Deus Ex Machina picture was created (in Photoshop), and much more.

Basically you can have 7 (usually just 4) sprites per line in the "screen" part of the y-coordinates, and 8 in the rest.
There are many restrictions based on this. I haven't seen anybody manage FLI every line with 7 sprites in the border for example.
If you stay on the standard VIC-II modes (MultiColor/Hires) + sideborder you'll be safe. Otherwise I suggest you present an idea, and then someone codes a viewer to test if it is possible to display it before you draw it.

Oswalds comment about the X-coordinates is just that coordinate 0 is not the leftmost location.

Also what usually limits you from displaying many sprites in the "screen" area is that every 8th line is a "badline", i.e less raster time to open the border.

There are ways to manipulate these badlines (e.g FLI which adds them).

You could for example work with the restriction that some parts of the screen have more sprites, but doesn't open the border in some of the raster lines. Note that when not opening the border in a line, the border color will show one raster line lower on the left side than on the right side.


thanks, although there is nothing to help out with at the moment. I have simply been thinking about possibilities and clever design :)

So 4 sprites is the way to go. 4 sprites for the side borders and the other 4 sprites can be used on the (main) screen (or should that be 3 (7 total)).

..and what about hires, multi colour, expanded sprites. Can this affect the timing? or is a sprite a sprite :)

Crossbow spoke of displaying a sprite, but not a whole sprite (during Krestage or Krestage 2). I'll have to see the demo again, i think he speaks of displaying only the first 16 or 18 pixels of the sprite.
2006-08-27 11:22
tlr

Registered: Sep 2003
Posts: 1787
Quote:
So 4 sprites is the way to go. 4 sprites for the side borders and the other 4 sprites can be used on the (main) screen (or should that be 3 (7 total)).

Only 4 sprites in total on a given raster line with the normal screen open. That is 4 sprites that can be either in the border or in the middle of the screen.

Typical example of the simplest form is the first part of Bonanza.

Quote:
..and what about hires, multi colour, expanded sprites. Can this affect the timing? or is a sprite a sprite :)

A sprite is a sprite. If a sprite is active on a given line it affects timing.

Quote:
Crossbow spoke of displaying a sprite, but not a whole sprite (during Krestage or Krestage 2). I'll have to see the demo again, i think he speaks of displaying only the first 16 or 18 pixels of the sprite.

I don't remember the height, but I don't think you will benefit from this on a static image.

A sprite can change it's x-pos and color on a raster line in the middle of it so you can emulate this anyway.
2006-08-27 11:33
enthusi

Registered: May 2004
Posts: 677
Look for ESCOM-pictures.
Iirc they use all borders with xy-expanded sprites.
Wait I will check.
Airwolf
Nice example.
Most look worse :)
Anyway - there you go.
2006-08-27 11:47
tlr

Registered: Sep 2003
Posts: 1787
Quote: Look for ESCOM-pictures.
Iirc they use all borders with xy-expanded sprites.
Wait I will check.
Airwolf
Nice example.
Most look worse :)
Anyway - there you go.


ESCOS. Expanded Screen COnstruction Set
2006-08-27 13:42
JackAsser

Registered: Jun 2002
Posts: 2014
Phat moving ESCOS by HCL in Totally Stoned 2 ... FYI.
2006-08-27 14:15
Wile Coyote
Account closed

Registered: Mar 2004
Posts: 646
Quote: Quote:
So 4 sprites is the way to go. 4 sprites for the side borders and the other 4 sprites can be used on the (main) screen (or should that be 3 (7 total)).

Only 4 sprites in total on a given raster line with the normal screen open. That is 4 sprites that can be either in the border or in the middle of the screen.

Typical example of the simplest form is the first part of Bonanza.

Quote:
..and what about hires, multi colour, expanded sprites. Can this affect the timing? or is a sprite a sprite :)

A sprite is a sprite. If a sprite is active on a given line it affects timing.

Quote:
Crossbow spoke of displaying a sprite, but not a whole sprite (during Krestage or Krestage 2). I'll have to see the demo again, i think he speaks of displaying only the first 16 or 18 pixels of the sprite.

I don't remember the height, but I don't think you will benefit from this on a static image.

A sprite can change it's x-pos and color on a raster line in the middle of it so you can emulate this anyway.


The height thing, i thought the benefit could be from the added color made available :)

So how do you explain the note to *Don't Meet Crest*
There appears to be a character logo, rasterbars and 7 sprites. The sprites bunch up and appear to overlap each other and enter into the side borders. Mind you it could be an illusion, as while the 7 sprites appear to be on the same horizontal line, the sprites bunch up as they enter the side border, so maybe only 4 sprites are in the one location.

Previous - 1 | 2 | 3 | 4 | 5 - 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
manganoid/Hokuto Force
A3/AFL
Bob/Censor Design
Alakran_64
OEP/AoD
PopMilo/TempesT
The Syndrom/TIA/Pret..
Didi/Laxity
Flex/Artline Designs
zscs
saimo/RETREAM
Laurikka
MaD ][/Starship
Mr. Sex/Byterapers
encore
Guests online: 118
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 The Demo Coder  (9.6)
5 Edge of Disgrace  (9.6)
6 Mojo  (9.6)
7 What Is The Matrix 2  (9.6)
8 Uncensored  (9.6)
9 Wonderland XIV  (9.6)
10 Comaland 100%  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Party Elk 2  (9.6)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.6)
5 Libertongo  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Morph  (9.5)
9 Dawnfall V1.1  (9.5)
10 It's More Fun to Com..  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Nostalgia  (9.3)
5 Triad  (9.2)
Top Graphicians
1 Mirage  (9.7)
2 Archmage  (9.7)
3 Mikael  (9.6)
4 Carrion  (9.6)
5 Sulevi  (9.6)

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