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.

C/C++ > Mosaic

#3080 - np_soft - Mon Feb 17, 2003 9:02 pm

Hi, I have a question about mosaic effects.
I can make my backgrounds mosaic, but my sprites wont go mosaic on me. I've set their attribute 0 to use mosaic, and i've used setMosaic to make the effect happen, but nothing happens, only my backgrounds work..

Does anyone have any suggestions or can direct me to some mosaic demo code?
Thanks

Edmund

#3092 - tepples - Tue Feb 18, 2003 4:17 am

I assume setMosaic() is a function or macro. Does it allow you to specify different mosaic sizes for the background and sprites? It may only set the background mosaic size and write 0's to the bits that control the sprite mosaic size.
Code:
fedcba9876543210  Mosaic Control (0x0400004C)
||||||||||||||||
||||||||||||++++- Background mosaic width
||||||||++++----- Background mosaic height
||||++++--------- Sprite mosaic width
++++------------- Sprite mosaic height

If you post your definition of setMosaic() here, I'll help you debug it.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.