Hi,
I'm trying to do a transparency / light effect on SNES for my snes game. The goal is to do like in indiana game when the hero is not near the lights (it is darker when he is not near the light). I can see transparency is different when he is near the light (2132 register is increment as I can see with no$sns).
I use BG2 as topmost BG for mode 1, BG1/BG0 and SPRITES.
I did same bg as in indy for my gb2 background (circles with different greyscale).
The gloabl effect works and I can have a BG modified with some dark effect to the sides but ....
I want to change color with 2132 register but it has no effect, does someone has a correct example to do trnasparency / light effect as in indiana jones ?
I'm trying to do a transparency / light effect on SNES for my snes game. The goal is to do like in indiana game when the hero is not near the lights (it is darker when he is not near the light). I can see transparency is different when he is near the light (2132 register is increment as I can see with no$sns).
I use BG2 as topmost BG for mode 1, BG1/BG0 and SPRITES.
I did same bg as in indy for my gb2 background (circles with different greyscale).
The gloabl effect works and I can have a BG modified with some dark effect to the sides but ....
I want to change color with 2132 register but it has no effect, does someone has a correct example to do trnasparency / light effect as in indiana jones ?
Code:
I'm using register values as follow :
2130 : $02 -> b1 on for sub screen, math always for b4-5
2131 : $b3 - > math for back/obj/bg1/bG2
2132 for rgb modificaiton with a value between 0 and $1f and b7-5 set to 1
Sub screen for bg2 (and this one is on top for mode 1)
Main screen for bg0/bg1 and objs
2130 : $02 -> b1 on for sub screen, math always for b4-5
2131 : $b3 - > math for back/obj/bg1/bG2
2132 for rgb modificaiton with a value between 0 and $1f and b7-5 set to 1
Sub screen for bg2 (and this one is on top for mode 1)
Main screen for bg0/bg1 and objs