Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Nov 4, 2021 14:36:12 GMT
x
|
|
pokun
Gun-headed
Posts: 85
Homebrew skills: HuC6280 assembly
|
Post by pokun on Nov 5, 2021 0:42:18 GMT
The palette is really the same idea as sprites and BG characters. Instead of having the full defenition of a color you just have a single number (an index) for each sprite and BG character that indicates which palette is used, and patterns have indexes for which palette entry is used for each pixel. The palette area (or "Color Table RAM" as Hudson calls it) itself has the full color definition as a 9-bit RGB value for each color. Likewise, each BG character in the BAT (Background Attribute Table) area of VRAM and each sprite in the SAT (Sprite Attribute Table) area of the VRAM both just contains indexes for what patterns they are using instead of the full pattern definition. The patterns themselves are defined in the VRAM areas CG (Character Generator) and SG (Sprite Generator) respectively. This way it's easy to change how a sprite looks like by just changing its pattern index in the SAT. And by changing a color index in its palette you can easily change its colors or do things like flashing the sprite by repeatedly changing the colors in a palette.
Understanding all these components that makes up a sprite or BG character and how to change them is all you need for placing them on the screen.
|
|
|
Post by turboxray on Nov 5, 2021 4:47:55 GMT
(or "Color Table RAM" as Hudson calls it) It's funny. Because it's like 3 layers of indirection. Relative 4bit pixel -> "color table ram" -> direct YUV color table hahah.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Nov 5, 2021 12:20:03 GMT
|
|
|
Post by Galahad on Nov 14, 2021 3:52:59 GMT
Your desire to know exactly how it works is a very good thing,don't worry that you "don't get" some of these things..it takes time to grasp and we all go through that.Understanding how palettes work and how to modify them is something you'll want to learn as it's used in a lot of 8bit and 16bit games. Example,the floor effect on master system Space Harrier,the floor isn't moving it's modifying the palette colors
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Nov 17, 2021 12:02:22 GMT
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jun 24, 2022 18:19:16 GMT
Oct 30, 2021 19:06:13 GMT -7 Galahad said: How is your progress going?I'm doing another port of a puzzle game,you're welcome to my source code. Only coming to this now, but I should have taken you on your offer as having another source code would have been helpful to me. I've finally gotten around to reading all the functions in the HuC's library and I'm currently going through the speccies source code and obey tutorials and writing in code examples. Anyway, I appreciate your help and the time you took to help me. I would have put much more into this sooner, but I was dealing with some pain issues, which I have to take acupuncture to resolve. I hope you are doing okay. I know that Zack character passed away recently. Sometimes stuff like that hits me hard. Jul 30, 2021 9:11:52 GMT -7 Galahad said: I learnt 6502 with this book 6502 Programming redirect.viglink.com/?key=71fe2139a887ad501313cd8cce3053c5&subId=6929551&u=https%3A//archive.org/download/6502_Assembly_Language_Programming/6502_Assembly_Language_Programming.pdf>Multiple choice questions! When in doubt pick C, am I right? I'm also studying the Copetti.org article on the PC Engine Hardware and the tech docs in HuC, and I've pretty much memorized everything up to the HuC6270. I think someone recommended a NES book to me, so it might be fun to read it (just for the pleasure) to understand NES architecture.
|
|
|
Post by Galahad on Jul 16, 2022 6:30:02 GMT
Multiple choice questions! When in doubt pick C, am I right? I'm also studying the Copetti.org article on the PC Engine Hardware and the tech docs in HuC, and I've pretty much memorized everything up to the HuC6270. I think someone recommended a NES book to me, so it might be fun to read it (just for the pleasure) to understand NES architecture. You impress me with your persistence,you can reach me at omegamax40@gmail.com
|
|