gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > Background Problems

#842 - darkcloud - Sat Jan 11, 2003 2:54 am

I have a problem with the backgrounds I use. I am using text backgrounds (with various dimensions). The problem is that the backgrounds wraparound, even though I didn't specify them to wraparound. Why does this happen?
_________________
Maybe in order to understand mankind, we have to look at the word itself: "Mankind". Basically, it's made up of two separate words - "mank" and "ind". What do these words mean ? It's a mystery, and that's why so is mankind.

#843 - Saikou - Sat Jan 11, 2003 3:04 am

As far as I understand it, that's normal. It's only with rotation backgrounds that you can tell them not to wrap.

#844 - darkcloud - Sat Jan 11, 2003 3:06 am

Ohhhhhh, thanks.
_________________
Maybe in order to understand mankind, we have to look at the word itself: "Mankind". Basically, it's made up of two separate words - "mank" and "ind". What do these words mean ? It's a mystery, and that's why so is mankind.

#847 - darkcloud - Sat Jan 11, 2003 3:36 am

Now when I change the background to a rotation background, the background isnt displayed properly. My 512x512 bg gets cut up into chucks about 256x256 (1/4 pieces). And that top corner chunk just keeps repeating. Whats wrong?
_________________
Maybe in order to understand mankind, we have to look at the word itself: "Mankind". Basically, it's made up of two separate words - "mank" and "ind". What do these words mean ? It's a mystery, and that's why so is mankind.

#856 - Splam - Sat Jan 11, 2003 10:11 am

You've not set it up correctly :)

Remember rot/scale backgrounds are byte per tile and therefore can only have 256 unique tiles. Also for the setting which would give you a 256x256 text background you only get 128x128 rot/scale.

#890 - darkcloud - Sat Jan 11, 2003 9:18 pm

Ah yes now I understand. Is there a way to stop a text bg from wrapping around?
_________________
Maybe in order to understand mankind, we have to look at the word itself: "Mankind". Basically, it's made up of two separate words - "mank" and "ind". What do these words mean ? It's a mystery, and that's why so is mankind.

#891 - Splam - Sat Jan 11, 2003 9:35 pm

One way to do it would be to replace the tiles with blank ones when they're about to wrap OR use a couple of windows one for the desired side and another for the top or bottom (just need a maximum of 2 left or right + top or bottom) just need to update a few registers then instead of changing tiles (and maybe having to replace them later).