Getting the WINDOW plane to work?
Moderators: BigEvilCorporation, Mask of Destiny
-
- Very interested
- Posts: 710
- Joined: Sat Feb 18, 2012 2:44 am
Getting the WINDOW plane to work?
Hi,
Is there anything I need to configure to use the WINDOW plane? I wanted to see how the WINDOW plane works but I'm not sure if it's even activated. I couldn't find anything obvious in the SGDK code.
I was attempting to just draw text with VDP_drawTextBG(WPLAN, ...) but nothing appeared on screen.
Thanks!
DJCC
Is there anything I need to configure to use the WINDOW plane? I wanted to see how the WINDOW plane works but I'm not sure if it's even activated. I couldn't find anything obvious in the SGDK code.
I was attempting to just draw text with VDP_drawTextBG(WPLAN, ...) but nothing appeared on screen.
Thanks!
DJCC
-
- Very interested
- Posts: 2442
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
You got to first enable window thorugh VDP registers, there's 2 registers controlling the appearance of it. Window can grow out from any side of the screen, one register is for X and other for Y, and highest bit determines from which side it grows out form.
Where there is Windows there is no A. Granularity is tile based and if you got empty holes in the window there won't be anything but B shining through them
Where there is Windows there is no A. Granularity is tile based and if you got empty holes in the window there won't be anything but B shining through them
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
-
- Very interested
- Posts: 710
- Joined: Sat Feb 18, 2012 2:44 am
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
You can use it this way, but don't see window as an extra plan but more as a fixed part of plan A...djcouchycouch wrote:I see. Then I don't think it'll be useful in my case. I was hoping to use it for a transparent UI overlay.TmEE co.(TM) wrote: Where there is Windows there is no A. Granularity is tile based and if you got empty holes in the window there won't be anything but B shining through them
Thanks!
-
- Interested
- Posts: 42
- Joined: Fri Sep 24, 2010 11:32 pm
- Location: toulouse
But Ghouls'N Ghosts game is have a transparent UI overlay. And so rain (!) level one:djcouchycouch wrote:I see. Then I don't think it'll be useful in my case. I was hoping to use it for a transparent UI overlay.TmEE co.(TM) wrote: Where there is Windows there is no A. Granularity is tile based and if you got empty holes in the window there won't be anything but B shining through them
Thanks!
http://www.youtube.com/watch?v=qkyxMQf0 ... el&list=UL
So i am interesting secret technique Window. Help us.
example plan A&B&sprites:
tilestravaux6_2.zip
http://www.mirari.fr/C5U9
-
- Very interested
- Posts: 710
- Joined: Sat Feb 18, 2012 2:44 am
-
- Very interested
- Posts: 710
- Joined: Sat Feb 18, 2012 2:44 am
-
- Interested
- Posts: 42
- Joined: Fri Sep 24, 2010 11:32 pm
- Location: toulouse
I use Rengen v0.97D emulatordjcouchycouch wrote:I spoke without actually checking! Not the first time.
I opened up Gens and took a look.The UI is actually the back layer with a priority set to be in front of the front layer.
When it rains, you can see the flicker between the rain and the background/ui.
Tool/VDP Layer Select
Background A
Background B
Window
Sprites
If not Window then not HUD (up: texte, scrore, time... down: arm&life)
background/ui
Window/ui --> yes ! For rain it's very nice ! For your game Goplanes plane with rain (screenshots military ballon) same technique (sorry my english i'am french)