#101861 - PypeBros - Fri Sep 08, 2006 1:56 pm
I've been crawling for info on doing alpha-blending between background layers, but i cannot get it working on my DS.
basically,
* i have SUB_BG0_CR= ...|BG_PRIORITY(1)|BG_256_COLOR, which i'd like to remain "solid" pixels
* i have SUB_BG1_CR= ...|BG_PRIORITY(0)|BG_256_COLOR, which i'd like to have translucent, on top of BG0, but which simply stays "solid".
then i do
and there, nothing actually happens. I tried toying with other values for A and B or to swap BLEND_SRC_* with BLEND_DST_* ...
Anyone knows of a demo / tutorial or whatever which would explain that with a bit more details on what the "source" and "destination" actually means here ?
thanks in advance.[/list]
basically,
* i have SUB_BG0_CR= ...|BG_PRIORITY(1)|BG_256_COLOR, which i'd like to remain "solid" pixels
* i have SUB_BG1_CR= ...|BG_PRIORITY(0)|BG_256_COLOR, which i'd like to have translucent, on top of BG0, but which simply stays "solid".
then i do
Code: |
SUB_BLEND_CR = BLEND_SRC_BG0|BLEND_DST_BG1|BLEND_ALPHA; SUB_BLEND_AB = 16 | (4<<8); |
and there, nothing actually happens. I tried toying with other values for A and B or to swap BLEND_SRC_* with BLEND_DST_* ...
Anyone knows of a demo / tutorial or whatever which would explain that with a bit more details on what the "source" and "destination" actually means here ?
thanks in advance.[/list]