Register - Login
Views: 99798458
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
05-03-22 06:08:11 AM
Jul - SM64 Hacking (Archive) - Strange color code New poll - New thread - New reply
Next newer thread | Next older thread
Ratchetfan19
Member
Level: 18


Posts: 29/50
EXP: 25684
For next: 4213

Since: 11-20-07


Since last post: 9.0 years
Last activity: 8.7 years

Posted on 05-16-08 09:26:03 PM (last edited by Ratchetfan19 at 05-16-08 09:39 PM) Link | Quote
I recently found this...

http://www.youtube.com/watch?v=0_j4hL2rBFw

Notice in the video that Mario's head geometry seems to be altered (from my standpoint), as polygons have been shifted. I asked papermario47 about the code, and I should get an answer soon. If I do get it, I'll let yoshiman look into it, since he's so good with RAM-related hacking.

Edit: It does work in Project 64, but it looks nothing like it does in the video. I'm not sure what caused it to look so different on the N64, considering most color codes don't work on the N64 anyway. So here's the code. It's probably nothing special; I just found it interesting that it turned out that way.

8107EC20 5000
8107EC22 0000
8107EC2A 0000
8107EC40 FFFF
8107EC38 5050
8107EC93 6623
yoshiman
Member
Level: 23


Posts: 62/95
EXP: 67067
For next: 656

Since: 12-21-07

From: London, England

Since last post: 13.2 years
Last activity: 12.9 years

Posted on 05-17-08 11:18:42 PM Link | Quote
I tried the code on Project64 and found nothing strange about the colours so could it have been his monitor/TV? Colour codes DO work on the N64 like my Yellow Yoshi code, the problem is adding the many codes to an N64 cheat device like the Equalizer I used.

James S.

____________________
We English do things a little differently...Anyone for a cup of tea while we hack?!
Ratchetfan19
Member
Level: 18


Posts: 30/50
EXP: 25684
For next: 4213

Since: 11-20-07


Since last post: 9.0 years
Last activity: 8.7 years

Posted on 06-05-08 12:04:24 AM Link | Quote
No, it's not his TV. I tried the code myself and got the same shocking results... some pics:

tinyshit/2iqn4o7.png
tinyshit/efkj9k.png
tinyshit/2pq84rb.png

At first it actually looked like his geometry had been changed, but it's evident that the gradient angle/mganitude is different on each polygon, making Mario's polygon edges very noticeable. I don't know what causes the N64 to shade Mario this way, especially since the conventional dual shading method is used to shade Mario with his original RGB values.
yoshiman
Member
Level: 23


Posts: 74/95
EXP: 67067
For next: 656

Since: 12-21-07

From: London, England

Since last post: 13.2 years
Last activity: 12.9 years

Posted on 06-05-08 10:49:05 PM Link | Quote
The code changes value in Mario's polygon data, near what appear to be RGB lighting of some sort. Since the pictures you provided were taken with a camera it's hard to compare.

____________________
James S.

We English do things a little differently...Anyone for a cup of tea while we hack?!
Ratchetfan19
Member
Level: 18


Posts: 31/50
EXP: 25684
For next: 4213

Since: 11-20-07


Since last post: 9.0 years
Last activity: 8.7 years

Posted on 06-06-08 01:08:10 AM Link | Quote
Sorry about the pictures, but there's really no other way to get screenshots from a real N64.
Lyskar
12210
-The Chaos within trumps the Chaos without-
Level: 192


Posts: 1535/12211
EXP: 99320774
For next: 552797

Since: 07-03-07

From: 52-2-88-7

Since last post: 7.4 years
Last activity: 7.3 years

Posted on 06-06-08 03:17:11 AM Link | Quote

Time/Date

06-05-08 09:17:11pm

Posts

1535

Days Here

338

Level

53
Metal_Man88
Local Moderator
We need somebody with a Capture card-possessing computer. That would allow us to capture direct, raw screengrabs from the N64.

____________________
Original Layout © Tobias Kelmandia
Ratchetfan19
Member
Level: 18


Posts: 32/50
EXP: 25684
For next: 4213

Since: 11-20-07


Since last post: 9.0 years
Last activity: 8.7 years

Posted on 06-06-08 12:16:54 PM (last edited by Ratchetfan19 at 06-06-08 09:40 AM) Link | Quote
Originally posted by Metal_Man88
We need somebody with a Capture card-possessing computer. That would allow us to capture direct, raw screengrabs from the N64.


o.0 D'oh, silly me. I'll try to get some screens via a capture device then.

Edit: Sorry, it doesn't work for me. My cap device doesn't handle composite video correctly for some reason. It may be because the input video is 320x240 and it expects 640x480, I don't know.
yoshiman
Member
Level: 23


Posts: 76/95
EXP: 67067
For next: 656

Since: 12-21-07

From: London, England

Since last post: 13.2 years
Last activity: 12.9 years

Posted on 06-06-08 09:27:01 PM (last edited by yoshiman at 06-08-08 07:22 PM) Link | Quote
I've got a capture device, that's how I record my videos from my N64. I've converted the code from NTSC to PAL and here are the screen captures:







Looking at the memory the code alters, it's not what I first assumed it to be.

____________________
James S.

We English do things a little differently...Anyone for a cup of tea while we hack?!
Ratchetfan19
Member
Level: 18


Posts: 33/50
EXP: 25684
For next: 4213

Since: 11-20-07


Since last post: 9.0 years
Last activity: 8.7 years

Posted on 06-10-08 03:36:34 PM Link | Quote
What's going on in RAM? And I don't visit these forums every day, so give me some time to respond.
yoshiman
Member
Level: 23


Posts: 80/95
EXP: 67067
For next: 656

Since: 12-21-07

From: London, England

Since last post: 13.2 years
Last activity: 12.9 years

Posted on 06-10-08 10:00:00 PM Link | Quote
I am not sure exactly what the code alters in the RAM, could it be the actual colour data?

____________________
James S.

We English do things a little differently...Anyone for a cup of tea while we hack?!
Ratchetfan19
Member
Level: 18


Posts: 34/50
EXP: 25684
For next: 4213

Since: 11-20-07


Since last post: 9.0 years
Last activity: 8.7 years

Posted on 06-11-08 01:18:33 AM Link | Quote
Well, it obviously changes RGB shading values for Mario's geometry. Here are known RAM offsets for shading data, according to the Super Mario 64 Color Code Tutorial...

8107EC40
8107EC42
8107EC38
8107EC3A
8107EC20
8107EC22
8107EC28
8107EC2A
8107EC50
8107EC52
8107EC58
8107EC5A
8107EC70
8107EC72
8107EC68
8107EC6A
8107EC80
8107EC82
8107EC88
8107EC8A
8107ECA0
8107ECA2
8107EC98
8107EC9A

Sorry for the annoyingly long list. You can go to one of these locations with your RAM viewer and see how everything is arranged. Check the video description to see which values represent which shade.

The only location out of the ordinary with this code is 8107EC93. It probably either changes the gradient angle, magnitude, or direction. I don't see where this parameter is actually used in-game. Maybe it's something related to special effects that Nintendo didn't use? You might want to look into this, VL-Tone. Who knows, maybe this parameter could be used in Toad's Tool someday!
messiaen
Catgirl
Level: 68


Posts: 133/1085
EXP: 2596326
For next: 132474

Since: 11-20-07


Since last post: 8.1 years
Last activity: 7.2 years

Posted on 06-12-08 08:17:30 PM Link | Quote
I'm not 100% sure, but all these offsets seem to be just colors/lightning used by the 0x03 RSP command (check the dedicated thread). 8107EC93 seems to be the same, as there isn't any relevant change of pattern in the data.

However, many other texture/geometry settings are embodied in the polygons commands, so that specific offset could be used by some highly specific set of polygon commands, thus producing the effect you noticed. I changed a few values for this but didn't notice nothing striking.
ReiNi
さよなら*へヴン
Level: 124


Posts: 842/4444
EXP: 21769113
For next: 67488

Since: 07-21-07


Since last post: 6.7 years
Last activity: 3.3 years

Posted on 06-12-08 08:26:16 PM Link | Quote
I should find a way to put random messages here.
----------------------------
The colors are just divided into the actual color of the polygon and the light it recives.

By altering the contrast between them, you can make something look shinier or like having a different texture.

I still have the original .txt with the info, but I can't access it and it's pretty messy anyways.

Also they are RGBA vaules. That 00 you see in some codes next to the blue vaule is the alpha, but it's ignored apparently.


Anyways no, it doesn't do any change to the geometry or anything.

____________________

Ratchetfan19
Member
Level: 18


Posts: 35/50
EXP: 25684
For next: 4213

Since: 11-20-07


Since last post: 9.0 years
Last activity: 8.7 years

Posted on 06-14-08 08:50:55 PM Link | Quote
Originally posted by Reimu Hakurei
Also they are RGBA vaules. That 00 you see in some codes next to the blue vaule is the alpha, but it's ignored apparently.


There's an alpha layer? Well I guess there has to be, seeing that Mario turns transparent when entering and leaving a warp. Someone should check those values when Mario warps, if possible. If they're changed, maybe we can find the command that enables the alpha layer.
ReiNi
さよなら*へヴン
Level: 124


Posts: 846/4444
EXP: 21769113
For next: 67488

Since: 07-21-07


Since last post: 6.7 years
Last activity: 3.3 years

Posted on 06-14-08 08:59:40 PM Link | Quote
I should find a way to put random messages here.
----------------------------
Originally posted by Ratchetfan19
Originally posted by Reimu Hakurei
Also they are RGBA vaules. That 00 you see in some codes next to the blue vaule is the alpha, but it's ignored apparently.


There's an alpha layer? Well I guess there has to be, seeing that Mario turns transparent when entering and leaving a warp. Someone should check those values when Mario warps, if possible. If they're changed, maybe we can find the command that enables the alpha layer.


That effect has nothing to do with these ram adresses apparently. These are loaded I think only at the start of the game.

It actually affects Mario's oppacity as a whole I think, but it's been too long since I documented this so maybe I could be wrong.

____________________

Ratchetfan19
Member
Level: 18


Posts: 36/50
EXP: 25684
For next: 4213

Since: 11-20-07


Since last post: 9.0 years
Last activity: 8.7 years

Posted on 06-14-08 11:10:24 PM Link | Quote
So you're saying opacity is a parameter, after all? And a useful one, at that?
Next newer thread | Next older thread
Jul - SM64 Hacking (Archive) - Strange color code New poll - New thread - New reply


Rusted Logic

Acmlmboard - commit 47be4dc [2021-08-23]
©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

30 database queries, 10 query cache hits.
Query execution time: 0.110583 seconds
Script execution time: 0.025676 seconds
Total render time: 0.136259 seconds