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


Forums > C64 Pixeling > Coloring around a multicolor bitmap
2008-04-24 12:54
The Phantom

Registered: Jan 2004
Posts: 360
Coloring around a multicolor bitmap

Hey all.

Hopefully this doesn't confuse anybody..

I'm trying to plot colors around a logo, so I can manipulate "things" in the background of the logo. My problem being is whenever I plot close to the logo, I get wrong coloring or something.

In certain areas, I can do direct screen plotting, like:

lda backdrop+1
sta $05e1

or

sta $d9e1

For some other areas, I'm using:

ldx #$00
ldy backdrop+1,x
ora sh4tab,y
sta $05e1

sh4tab
.byte $00,$10,$20,$30, etc

I've been playing with this for quite some time and starting to get a bit frustrated because I know it can be done, I just haven't a clue HOW to do it.

Any ideas?
2008-04-24 13:07
Oswald

Registered: Apr 2002
Posts: 5017
in a multicolor bitmap each 2 bits represents a pixel. this is how these 2 bits will get colored:

00 = d021 color
01 = screen mem high 4 bits of the corresponding charplace
10 = screen mem low 4 bits of the corresponding charplace
11 = d800 of the corresponding charplace

if you understand this you will know whats the bug.

anyway a screenshot or something would help, since its hard to understand what is your problem.

("I get wrong coloring or something."- WTF?!)
2008-04-24 13:51
The Phantom

Registered: Jan 2004
Posts: 360
Here's a peek...

http://h1.ripway.com/ThePhantomFOE/peek.gif


My problem is around the lettering, as you'll see.
2008-04-24 13:56
Zyron

Registered: Jan 2002
Posts: 2381
Secret Censor Tools can help you doing things like that.
2008-04-24 13:59
Oswald

Registered: Apr 2002
Posts: 5017
the probem is that the character where the bug appears uses a different bitpattern for the grey color than the other ones near to it. try to change d800 or the low/high4 bits in the screen ram of that character, one of them ought to do the trick.
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
grennouille
Broti/DT/KRN
csabanw
Sentinel/Excess/TREX
Guests online: 86
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 The Ghost  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.8)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 Wafer Demo  (9.5)
7 TRSAC, Gabber & Pebe..  (9.5)
8 Onscreen 5k  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Swappers
1 Derbyshire Ram  (10)
2 Jerry  (9.8)
3 Violator  (9.8)
4 Acidchild  (9.7)
5 Starlight  (9.6)

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