Sprite Graphics

Share and discuss all facets of DKC ROM hacking...

Re: Sprite Graphics

Postby Cyclone » July 15th, 2023, 10:26 am

So i know how the tiles are ordered in the ROM according to your examples. But I'm not sure i understand how the second example wastes space.

I'm also not really sure what a DMA group is lol. Is it just groups of tiles?

Sorry for being dumb and thank you for your patience!



Edit.
Does it have anything to do with the game having to skip bytes when displaying the 2x2 chars in the second example? The one that wastes space...
Expedition Leader
Bananas received 559
Posts: 1211
Joined: 2008

Re: Sprite Graphics

Postby rainbowsprinklez » July 15th, 2023, 11:52 am

Cyclone wrote:I'm also not really sure what a DMA group is lol. Is it just groups of tiles?

Sorry for being dumb and thank you for your patience!


Not dumb. You just don't know. Yes. DMa groups are just a group of tiles and where to put them in vram. If you run into garbage while there are still more tiles, a second DMA group is needed. Garbage space is not reflected in ROM. That is the key, i think. So the example is stored in ROM as

Image

After dividing the dma groups like i showed you, just remove all garbage space and the tiles are stored sequentially like that
Veteran Venturer
Bananas received 108
Posts: 568
Joined: 2016

Re: Sprite Graphics

Postby Cyclone » July 16th, 2023, 4:17 am

hmmm... still hasn't clicked in my head yet.
What exactly are "garbage tiles" are they the ones in red in your previous image?

Edit...

When you said no space is wasted do you mean VRAM or the ROM?
Expedition Leader
Bananas received 559
Posts: 1211
Joined: 2008

Re: Sprite Graphics

Postby rainbowsprinklez » July 16th, 2023, 4:44 am

Cyclone wrote:hmmm... still hasn't clicked in my head yet.
What exactly are "garbage tiles" are they the ones in red in your previous image?


Image

Tiles, chars, I hop back and forth between these names, but probably shouldn't.

Cyclone wrote:When you said no space is wasted do you mean VRAM or the ROM?


Think about it and tell me. Where are we cutting down on space used?
Veteran Venturer
Bananas received 108
Posts: 568
Joined: 2016

Re: Sprite Graphics

Postby Cyclone » July 16th, 2023, 8:39 am

rainbowsprinklez wrote:The way you propose would have the data arranged like this in the ROM
Image


For clarification purposes what would this image look like without the garbage cells?

How do we know when we encounter a garbage cell?

rainbowsprinklez wrote:
Cyclone wrote:When you said no space is wasted do you mean VRAM or the ROM?


Think about it and tell me. Where are we cutting down on space used?


Not sure. I'm guessing the ROM...




Edit.

Are 16x16 sprites always arranged like that in the VRAM?
I mean the Left and Right tiles are on the first row and the bottom ones on the second row?
Expedition Leader
Bananas received 559
Posts: 1211
Joined: 2008

Re: Sprite Graphics

Postby rainbowsprinklez » July 16th, 2023, 11:23 am

Cyclone wrote:How do we know when we encounter a garbage cell?


Reread our previous convo in this thread. YOU successfully identified.
Veteran Venturer
Bananas received 108
Posts: 568
Joined: 2016

Re: Sprite Graphics

Postby Cyclone » July 17th, 2023, 11:29 am

Thanks for pointing me to the right direction. I think I understand it now... I think...

One thing though. What program did you use to view those sprites in VRAM with?
Reason is I want to write a tutorial.

Thanks again.
Expedition Leader
Bananas received 559
Posts: 1211
Joined: 2008

Re: Sprite Graphics

Postby rainbowsprinklez » July 17th, 2023, 12:09 pm

Cyclone wrote:One thing though. What program did you use to view those sprites in VRAM with?
Reason is I want to write a tutorial.


You JUST said you are unsure if you 100% get this, do you really feel like you are equipped enough to write a tutorial? It sounds like you are sharing answers without fully understanding. I'm unsure, but something tells me that this is not the best idea right now. I recommend taking time to let it soak in. Mattrizzle? As an OG like Cyclone here, what are your thoughts?
Veteran Venturer
Bananas received 108
Posts: 568
Joined: 2016

Re: Sprite Graphics

Postby Cyclone » July 17th, 2023, 12:46 pm

The tutorial is meant mainly for me.
It’s a way to sort out my thoughts.
Yes I am sharing things.

I already made a tutorial on bitplains and it has helped me a lot.

And I need to do the tutorial soon while it’s still in my head

Am I making sense?
Expedition Leader
Bananas received 559
Posts: 1211
Joined: 2008

Re: Sprite Graphics

Postby rainbowsprinklez » July 17th, 2023, 1:58 pm

Cyclone wrote:Am I making sense?


Yes. Ahh for you. Wish I did that myself. I just relearn things as I need them. Which is terribly inefficient.

***EDIT***
Those images were created with a combination of Mesen-S and Microsoft paint.
Veteran Venturer
Bananas received 108
Posts: 568
Joined: 2016

Re: Sprite Graphics

Postby Cyclone » July 17th, 2023, 2:09 pm

Yes I did a quick search and found that.

Thanks!
Expedition Leader
Bananas received 559
Posts: 1211
Joined: 2008

Previous

Return to ROM Hacking

Who is online

Users browsing this forum: No registered users and 21 guests