Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
1 user currently in Super Mario World hacking: labmaster | 3 guests
Acmlm's Board - I2 Archive - Super Mario World hacking - PalEnemy | |
Pages: 1 2Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
d4s

Panser
Level: 29

Posts: 313/325
EXP: 142151
For next: 5734

Since: 03-23-04

Since last post: 13 days
Last activity: 1 day
Posted on 09-28-05 11:58 AM Link | Quote
Originally posted by Glyph Phoenix
SNES does not have a RGB color system. It only has 2 bytes, and it should be the second byte that it reads.


haha, of course it does.
just because its using 2 bytes instead of 3, that doesnt mean that one of the r,g and b colors is missing.
that'd be totally stupid, cause you wont be able to produce the full color spectrum with only 2 of these.

the solution is that the snes uses 5 bits per color, not 8, of course.
therefore, you can fit an individual r, g and b value for each color into 2 bytes.




(edited by d4s on 09-28-05 02:59 AM)
(edited by d4s on 09-28-05 03:02 AM)
Glyph Phoenix

Level: 39

Posts: 586/745
EXP: 385876
For next: 18895

Since: 11-07-04

Since last post: 2 hours
Last activity: 2 hours
Posted on 09-28-05 12:14 PM Link | Quote
I meant that it didn't follow the R-to-byte, G-to-byte, B-to byte system. I was not aware that there was any other kind, such as the 5-bit system.

And Darkflight, yeah, I could use that code.
d4s

Panser
Level: 29

Posts: 315/325
EXP: 142151
For next: 5734

Since: 03-23-04

Since last post: 13 days
Last activity: 1 day
Posted on 09-29-05 09:34 PM Link | Quote
Originally posted by Glyph Phoenix
I meant that it didn't follow the R-to-byte, G-to-byte, B-to byte system. I was not aware that there was any other kind, such as the 5-bit system.

And Darkflight, yeah, I could use that code.



yeah, thats what i figured.
i was confused by the color format myself when i first encountered it.


(edited by d4s on 09-29-05 12:36 PM)
(edited by d4s on 09-29-05 12:36 PM)
Juggling Joker

Boomerang Brother
SMW Hacking Moderator
Yeah, JAMH is still being worked on.
Level: 48

Posts: 1016/1033
EXP: 811447
For next: 12096

Since: 03-15-04
From: Wyoming

Since last post: 2 days
Last activity: 3 hours
Posted on 09-29-05 11:39 PM Link | Quote
Is the left over bit used for anything?
BMF98567
BLACK HAS BUILT A SILLY DICE-MAZE!
GO!

Current list of BURNING FURY >8( recipients:
- Yiffy Kitten (x2)
- Xkeeper
Level: 53

Posts: 1164/1261
EXP: 1094149
For next: 62970

Since: 03-15-04
From: Blobaria
Special Move: Rising Meatloaf Backhand Combo

Since last post: 21 hours
Last activity: 1 hour
Posted on 09-30-05 01:06 AM Link | Quote
Nope, it's ignored. (What would its function be? Placing the color on top of all others? Flipping it horizontally? )
TapTap

Nipper Plant
Level: 24

Posts: 100/405
EXP: 68995
For next: 9130

Since: 08-22-05
From: Yoshi's Island
Current Posting Mode: Spree

Since last post: 7 hours
Last activity: 6 hours
Posted on 09-30-05 01:29 AM Link | Quote
Flip a color horizontally? how can you do that?

Note: Post #100! Hooray!


(edited by Zachio on 09-29-05 04:29 PM)
Smallhacker

Green Birdo

SMW Hacking Moderator
Level: 68

Posts: 2123/2273
EXP: 2647223
For next: 81577

Since: 03-15-04
From: Söderhamn, Sweden

Since last post: 10 hours
Last activity: 9 hours
Posted on 09-30-05 01:35 AM Link | Quote
Imagine that you've got a color. Ok? Now flip it horizontally. That's how you do it.

(Also, don't tell anyone, but if you set the "ignored" bit of the last sprite palette's last color, it will activate the SNES's TOP SECRET 3D mode. Write polygon data to 7F0221, texture data to 7F0222. 7F0223 - 7F0228 are the settings bytes. (7F0229 have got a yet to be documented part of it all.)

More info can be found here: Link
TapTap

Nipper Plant
Level: 24

Posts: 101/405
EXP: 68995
For next: 9130

Since: 08-22-05
From: Yoshi's Island
Current Posting Mode: Spree

Since last post: 7 hours
Last activity: 6 hours
Posted on 09-30-05 01:39 AM Link | Quote
Now I understand for some reason. I saw your hex numbers and remembered.
So, 667788 would become 887766?
Juggling Joker

Boomerang Brother
SMW Hacking Moderator
Yeah, JAMH is still being worked on.
Level: 48

Posts: 1017/1033
EXP: 811447
For next: 12096

Since: 03-15-04
From: Wyoming

Since last post: 2 days
Last activity: 3 hours
Posted on 09-30-05 01:39 AM Link | Quote
No need to be sarcastic you meany jerk heads. I'm sure SOMETHING useful could be done with it by a clever hacker (or programmer, I guess).
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 7340/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 09-30-05 02:05 AM Link | Quote
Originally posted by Smallhacker
Imagine that you've got a color. Ok? Now flip it horizontally. That's how you do it.

(Also, don't tell anyone, but if you set the "ignored" bit of the last sprite palette's last color, it will activate the SNES's TOP SECRET 3D mode. Write polygon data to 7F0221, texture data to 7F0222. 7F0223 - 7F0228 are the settings bytes. (7F0229 have got a yet to be documented part of it all.)

More info can be found here: Link

Why did you link there?

And there is one use for the extra bit... you can store a one-bit variable in it! (Hey, it could be useful for things like PalASM, where the colour isn't used and is interpreted as a 16-bit address.)
Pages: 1 2Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Super Mario World hacking - PalEnemy | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.020 seconds.