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
0 user currently in General Emulation.
Acmlm's Board - I2 Archive - General Emulation - What's the N64's graphic format?
  
User name:
Password:
Reply:
 

UserPost
Geiger
Posts: 107/460
The N64 can use either 15 or 24 bit color. If your colors do not look right, try swapping the red and blue channels.

---Evil Peer
HyperLamer
Posts: 1548/8210
Nope, they're bits. I think the t might be a transparency bit where 1=totally transparent.
Perhaps there's a problem with my code? This is how I read the colours:

X = CLng(fData(i)) + CLng(fData(i + 1)) * 256
N64Colour = (X And 31&) + (X And 992&) + (X And 31744&)

I've tried switching bytes in the first line and numbers in the second (if you're wondering about the numbers, check them out in Binary ), either way it always looks like this (3x magnified):

The fact that it's half missing isn't a problem, the game just mirrors it. Also notice there's 2 pixels missing from the bottom right. Er, nevermind that part, that did turn out to be a code problem.
MathOnNapkins
Posts: 431/2189
I would guess that t would stand for transparency, like an alpha channel.

Edit: hmm, I misread it the first time. I thought there were two t's. A question: those aren't bits are they? B/c that would be 15 bit color with some other flag called t. Does each letter represent a nibble? That would make a lot more sense since it would allow many levels of transparency and color I'd expect from the N64, though I know very little about that machine.
HyperLamer
Posts: 1546/8210
I'm trying to draw some graphics from a save state but can't get the colours to come out right. I have it as trrrrrgg gggbbbbb, is that right? And what's the t for?
Acmlm's Board - I2 Archive - General Emulation - What's the N64's graphic format?


ABII


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



Page rendered in 0.011 seconds.