Is zoning a house with open windows useful?

Tutorials and discussions about Mapping - Introduce your own ones!
Post Reply
User avatar
Barbie
Godlike
Posts: 2808
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Is zoning a house with open windows useful?

Post by Barbie »

In an outdoor level is a house (H768 x W512 x B1024) that has 3 floors and 4/4/1 windows per floor. You can enter the house through the windows. Is it useful for the rendering engine to separate the inner house with some zone sheets or do I just create useless more BSP cuts with it?
Attachments
ZonedHouse.jpg
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
Higor
Godlike
Posts: 1866
Joined: Sun Mar 04, 2012 6:47 pm

Re: Is zoning a house with open windows useful?

Post by Higor »

Useful if:
- The portals completely hide the side surfaces of the windows (contiguous to outer wall)
- The houses have high poly/actor count inside.
- You want zone name.
- The outer part has high poly count and there's lots of inner areas.
- There's water zones and you spot a software rendering glitch.

The higher the poly count in the map, the better.
User avatar
Barbie
Godlike
Posts: 2808
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Is zoning a house with open windows useful?

Post by Barbie »

Higor wrote:The higher the poly count in the map, the better.
May I express that in my words: the higher the poly count the more useful is zoning that area.
Until now I was convinced that higher poly count in a map means lower performance.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
Higor
Godlike
Posts: 1866
Joined: Sun Mar 04, 2012 6:47 pm

Re: Is zoning a house with open windows useful?

Post by Higor »

Yeah I meant that.
A zone portal is a good way to avoid checking like 500 nodes, hiding loads of polys behind a zone portal is great practice, so the more polygons there are, the better is the usage of portals.
Just make sure the amount of portal polygons don't exceed 1/2 of the polygons behind it or you're actually adding checks.

Also, if you're forced to zone the house for some reason... might as well overdecorate it inside the house since you know the portal will take care of reducing the impact in performance.
SzGergo
Skilled
Posts: 213
Joined: Fri Aug 27, 2010 2:48 pm

Re: Is zoning a house with open windows useful?

Post by SzGergo »

Interesting question... i tend to believe, that zoning actually doesn't do much at all. One usually places a a sheet into a "bottleneck" in the geometry, and "forces" the program to make a cut where actually it most likely made one anyways... I mean, most if the time it works like some kind of superstition... It just feels right to place some zp in the doorway, since this is how it is done... and you twist some branches of the tree of the graph... but how would one tell if this version of the graph is like "more optimal" than the other one...
All this binary space partitioning theoretically looks so simple a nice when one just think about the concept, but in practice it is quite confusing if you think about a 3D instance, like a simple ut map... especialy when practical questions are asked, like, hey, what happens if i a cut is place here, is the tree gets wider, or is ti gets deeper, and srsly, witch is more "optimal" to compute...
User avatar
Barbie
Godlike
Posts: 2808
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Is zoning a house with open windows useful?

Post by Barbie »

I can even go more into detail: If I want to put a zone portal into an opening (a window for example), do I have to put it on the inner side, the outer side, on both sides, in the middle of the opening or doesn't it matter, where exactly the location of the zone portal within the opening is? :omfg:
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
User avatar
papercoffee
Godlike
Posts: 10449
Joined: Wed Jul 15, 2009 11:36 am
Personal rank: coffee addicted !!!
Location: Cologne, the city with the big cathedral.
Contact:

Re: Is zoning a house with open windows useful?

Post by papercoffee »

Barbie wrote:I can even go more into detail: If I want to put a zone portal into an opening (a window for example), do I have to put it on the inner side, the outer side, on both sides, in the middle of the opening or doesn't it matter, where exactly the location of the zone portal within the opening is? :omfg:
Putting it on the inside or outside exactly on the edge should have the same effect and "can" reduce bsp cuts. But also can it produce errors. I placed them in the middle of the opening... out of habit.
But my understanding of the engine is too shallow and I did it maybe wrong all the time. But till now it worked.
Red_Fist
Godlike
Posts: 2166
Joined: Sun Oct 05, 2008 3:31 am

Re: Is zoning a house with open windows useful?

Post by Red_Fist »

I always go by 2 units overlap, and 2 units from face surface edges.

If the outside zone is really big, (or any bigger zone)
I figure the smallest zone should be as big as possible therefor chopping a little away from the huge big zone.
so I would put the brush 2 units away from the outer edge, or to make the largest zone smaller, even if it's a minuscule amount to chop from the larger zone.

The one brush per row of windows way I think would depend on how the BSP house was made, placing individual sheets give you more freedom to edit, one zone brush goes through a pile of brushes don't feel right, but if it's just one hole in the wall in a row and a small-ish sheet brush would be better to use one zone brush. IMO
Last edited by Red_Fist on Sat Sep 03, 2016 5:53 am, edited 1 time in total.
Binary Space Partitioning
User avatar
Dr.Flay
Godlike
Posts: 3348
Joined: Thu Aug 04, 2011 9:26 pm
Personal rank: Chaos Evangelist
Location: Kernow, UK
Contact:

Re: Is zoning a house with open windows useful?

Post by Dr.Flay »

Bury them in the BSP, is all you need to worry about.
In a window or door it would be useful to put it half way. If you have a transparent window or movable door, it should line up with that.

You can either zone each window manually, or make 1 big sheet per wall, and line it up inside the wall.
Post Reply