Communauté PortableDev

Développement SNES => PVSnesLib English section => Discussion démarrée par: faeldaniel le 26 Septembre 2013 à 20:46:26

Titre: SOLVED - Background Priority Bit (Tiles With Priority in background)
Posté par: faeldaniel le 26 Septembre 2013 à 20:46:26
Hello alekmaul,

I have this problem in my initial studies and whait becouse this is not important in moment, i soluvied all problems for my game but the only one persister, this Background Priority, i need with the background layer in mode 1:

"Front" < BG3, BG2, SPRITES, BG1 > "Behind"

I control individual layers perfectly in VRAM, i developed my implementation for show dialog for texts in BG3 its it work very good because I have had problem with native consoleDrawText() in BG3.

My view structure is thus:

<Front Screen>
BG3 -> Here Dialog texts (I need set bit priority for 1, default is 0)
BG2 -> Here will be for example, leaf of trees, to create depth effect for the sprite (I need set bit priority for 1, default is 0)
OBJ -> Are all sprites (The priority i set in 2 and working becouse is native in function OamSet)
BG1 -> Here all background for my map (the bit priority default is 0, so no need to do anything)
<Behind>


From what I read this is possible becouse i see in the official documentation as provided by Nintendo in the page 214, this point talk about this http://99.10.161.154/alcaro/docs/book1_text.pdf (http://99.10.161.154/alcaro/docs/book1_text.pdf) simply to set priorities so:
BG3 -> priority 1
BG2 -> priority 1
OBJ -> priority 2
BG1 -> priority 0


I see too in No$sns in Vram Viewer in tabs individual BGs i see filder "Priority".

Talking with KungFuFurby he also commented that:
CitationThis is how you get that type of arrangement (if I interpreted http://nocash.emubase.de/fullsnes.htm#snespictureprocessingunitppu (http://nocash.emubase.de/fullsnes.htm#snespictureprocessingunitppu) 's background priority chart correctly)

I need set this priority flag, this should be done with graphics (gfx2snes) converter correct?
Titre: Re : Background Priority Bit (Tiles With Priority in background)
Posté par: faeldaniel le 30 Septembre 2013 à 21:03:56
Sorry  :-[ i did not read the documentation of gfx2snes, just use the parameter -mp (Convert the whole picture with high priority) and the graphic is convert with high priority.  ;D
Titre: Re : SOLVED - Background Priority Bit (Tiles With Priority in background)
Posté par: alekmaul le 08 Octobre 2013 à 06:14:24
And sorry for the lack of reply, I was very busy last weeks :(.
Nice to see that you solved your problem.
Don't hesitate to query some new feature for gfx2snes !
Titre: Re : SOLVED - Background Priority Bit (Tiles With Priority in background)
Posté par: faeldaniel le 08 Octobre 2013 à 16:57:39
 ;) thanks