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 > Three pixel period pattern on upper/lower border
2010-04-10 16:24
Monte Carlos

Registered: Jun 2004
Posts: 370
Three pixel period pattern on upper/lower border

Any idea, how to create a hires pattern like this:

110110110110110110110110110110110110...

on the upper/lower border over the full width. Every trick allowed.

Btw: $3fff trick does not work, because then the pattern has a period of eight instead of three. Sprites cover only a width of 192 pixels!

Thank you Monte!
 
... 16 posts hidden. Click here to view all posts....
 
2010-04-11 13:01
Ninja

Registered: Jan 2002
Posts: 418
Tuffi: The 65816 (SCPU) can do this as well. And a C128, too, IIRC.
2010-04-11 13:08
Skate

Registered: Jul 2003
Posts: 506
@Oswald: consider $3fff at ZP. What is your solution for this? Will you be able to change $3fff (at ZP) each cycle? I don't think so. So, what kind of sprite + $3fff combination you planned?
2010-04-11 13:29
Oswald

Registered: Apr 2002
Posts: 5127
yeah, I was hoping no1 will notice I have made a mistake by that statement. I was still sleepy, so no idea how I thought it would work :D
2010-04-11 15:13
WVL

Registered: Mar 2002
Posts: 924
I think you should forget about this, and modify the picture instead :)
2010-04-11 15:16
chatGPZ

Registered: Dec 2001
Posts: 11523
i think skates proposal will work :)
2010-04-11 16:53
assiduous
Account closed

Registered: Jun 2007
Posts: 343
Quote: i think skates proposal will work :)

it wont. there are both 0->1 and 1->0 bit transitions so you need a MC sprite to cover the ghost byte pattern correctly and for this kind of transition pattern(0->1 between 1->0 and 1->1 & 1->0 between 0>1 and 1->1) MC sprites are out of question:

11011011->
01101101->
10110110->
11011011->
...

not even Crossbow will do it unless he can display something else than the ghost byte and sprites in the vertical borders.
2010-04-11 17:41
Oswald

Registered: Apr 2002
Posts: 5127
looking at the above ascii art gave me an idea:

bb0aa0bb
0bb0aa0b
a0bb0aa0
aa0bb0aa


sprites are X stretched, aa is made of sprite '1', bb is made of sprite '2', 0 is background, change the X coords each line to get the tilt effect, and you're done!! :D

edit: oh, I do realize the above is not the wanted pattern :) ok how about then:

aa0bb0aa0bb
aa0bb0aa0bb
aa0bb0aa0bb
aa0bb0aa0bb
aa0bb0aa0bb

tech teching is not needed, even simpler, tho full width is not possible... :/

edit2: ok case SOLVED!!!!

aa is made of X stretched sprites, and bb is made of $3fff. the bb pattern is 8 bits: bb0000bb, and the aa pattern is 8 bits aswell aa0000aa, only the sprite X coords are used to push them in place.

I is teh win! :)
2010-04-11 17:58
Hein

Registered: Apr 2004
Posts: 965
wow, was that your dream, Oswald? I'm affraid bb will shine through..
2010-04-11 18:51
WVL

Registered: Mar 2002
Posts: 924
oswald, what have you been using? :D

Think about your patterns again, and then draw how it should work for > 1 char please.. ;)
2010-04-11 18:53
Oswald

Registered: Apr 2002
Posts: 5127
oh shit >1 char case is wrong indeed :D
Previous - 1 | 2 | 3 - 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
DeepCore
Peiselulli/tRSi
Conjuror
t0m3000/bo0M!^hf^ibex
Krill/Plush
McMeatLoaf
DnP
The Codebreaker/PE
Guests online: 143
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Codeboys & Endians  (9.7)
4 Mojo  (9.6)
5 Coma Light 13  (9.6)
6 Edge of Disgrace  (9.6)
7 Signal Carnival  (9.6)
8 Wonderland XIV  (9.5)
9 Uncensored  (9.5)
10 Comaland 100%  (9.5)
Top onefile Demos
1 Nine  (9.7)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.5)
6 Scan and Spin  (9.5)
7 Onscreen 5k  (9.5)
8 Grey  (9.5)
9 Dawnfall V1.1  (9.5)
10 Rainbow Connection  (9.5)
Top Groups
1 Artline Designs  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Performers  (9.3)
5 Censor Design  (9.3)
Top Cover Designers
1 Duce  (9.8)
2 Electric  (9.8)
3 Junkie  (9.6)
4 The Elegance  (9.5)
5 Mermaid  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2025
Page generated in: 0.125 sec.