Stacked Sectors

Handy guides on how to do things, written by users for users.

Moderators: GZDoom Developers, Raze Developers

Forum rules
Please don't start threads here asking for help. This forum is not for requesting guides, only for posting them. If you need help, the Editing forum is for you.
User avatar
Rachael
Posts: 13530
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Stacked Sectors

Post by Rachael »

Considering this setup is so hard to understand, at first, until you've done it a few times, and it's hard to understand it when it's put into words, I figured I'd try and put it in a diagram.

Keep in mind, it's hard for me to put this in words, so forgive me if this explanation is too brief. I am hoping the diagram says more than I can typing it out.
StackedSectors.png
Also, here is an example map, with the setup working.
StackedSectors.wad
(6.64 KiB) Downloaded 285 times
Basically, think of it this way - the "source" is inside the tagged sector, and it *exactly* matches a "target" linedef in the exact same spot in the target sector, except for "misc" being set to 1 in the target.

If someone can put it to words better than I can, feel free. >_<
User avatar
Kappes Buur
 
 
Posts: 4114
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: Stacked Sectors

Post by Kappes Buur »

I don't know if this is supposed to be like that or if it is a bug,
the stacked sector effect does not show up for me
Spoiler:
I expected to be able to see into the upper sector.
User avatar
Rachael
Posts: 13530
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Stacked Sectors

Post by Rachael »

Wow - thanks - I really wish somebody would've said something sooner. Fixing now.
User avatar
Tormentor667
Posts: 13530
Joined: Wed Jul 16, 2003 3:52 am
Contact:

Re: Stacked Sectors

Post by Tormentor667 »

This is of good use, thanks for the thread
User avatar
Rachael
Posts: 13530
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Stacked Sectors

Post by Rachael »

Thank you, Torm! :)
User avatar
Zen3001
Posts: 412
Joined: Fri Nov 25, 2016 7:17 am
Location: some northern german shithole

Re: Stacked Sectors

Post by Zen3001 »

is there a reason to use this instead of 3d floors?
I'm guessing it takes less performance
User avatar
Rachael
Posts: 13530
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Stacked Sectors

Post by Rachael »

Performance doesn't really have much to do with it.

The primary reason is to be able to map an upper and lower area separately, in a way that is more flexible than 3D floors. It's especially useful when a 3D "open area" is relatively small as opposed to the rest of the areas above and underneath them. In truth, both this method and 3D floors have their advantages and disadvantages.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Stacked Sectors

Post by Graf Zahl »

Not to mention that both methods can be combined to use the strengths of each.
User avatar
Tormentor667
Posts: 13530
Joined: Wed Jul 16, 2003 3:52 am
Contact:

Re: Stacked Sectors

Post by Tormentor667 »

Just noticed that the diagram isn't right as well - it says both times "ceiling plane" but that way it doesn't work. It needs two of them to be "floor plane"
User avatar
Rachael
Posts: 13530
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Stacked Sectors

Post by Rachael »

Crap, you're right.
User avatar
Rachael
Posts: 13530
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Stacked Sectors

Post by Rachael »

Redone. Used Photoshop this time instead of MSPaint to make it slightly better.
User avatar
Darkcrafter
Posts: 562
Joined: Sat Sep 23, 2017 8:42 am
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support

Re: Stacked Sectors

Post by Darkcrafter »

I once tried to understand what holy doom scriptures say but then my brain explodes and... I do it just like shown here and it works like a charm lol.
User avatar
Snarboo
Posts: 2599
Joined: Tue Nov 29, 2005 4:37 am

Re: Stacked Sectors

Post by Snarboo »

Thanks a lot for this! I've been investigating portals and stacked sectors for a future project, and this helped me work out how they function.
User avatar
Rachael
Posts: 13530
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Stacked Sectors

Post by Rachael »

Snarboo wrote:Thanks a lot for this! I've been investigating portals and stacked sectors for a future project, and this helped me work out how they function.
You're welcome, and I am very glad that it has helped you!
User avatar
RailedRobin
Posts: 37
Joined: Thu Aug 01, 2019 5:00 pm

Re: Stacked Sectors

Post by RailedRobin »

I just want to add that you can stack multiple sectors on top of each other. You just need to follow Rachael's example for all sectors. So if you have three sectors on top of each other, the bottom and top one will have two of the connecting linedefs, while the middle sector will have four (two for each connecting sector, with the proper tags).
Post Reply

Return to “Tutorials”