I’m trying to alpha blend sprites and backgrounds with devkitPro (including libnds, libarm, etc).
Does anyone know how to do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As a generic reference, i once wrote a small blog entry about that issue. Basically, you first have to define which layer is alpha-blended against which other layer(s). Afaik,
For the sprites, specifically, you then have 3 ways to achieve alpha-blending depending on what you need and what you’re ‘ready to pay’ for it:
BLEND_SRC_SPRITEinREG_BLDCNT[_SUB]… not that useful.ATTR0_TYPE_BLENDED. The blending level will be the same for all sprites (and layers)ATTR2_PALETTE()field of GBA sprites is useless and has been recycled intoATTR2_ALPHA.