Func_detail
#13807 posted by killpixel on 2014/05/28 17:09:05
I wasn't aware it cast shadows and isn't counted as an entity. That's pretty nice.
My understanding of portals is pretty shoddy, an article for them has yet to be written on quakewiki.
I'm not able to see if TxQBSP supports func_detail in any documentation, I guess I'll run some tests after work.
That Third
#13808 posted by ijed on 2014/05/28 18:07:14
Article I linked explains portals relatively concisely.
I'm using Tyrann's compilers for the detail support since they've also got a load of nice little features like per brush entity minlight and coloured lighting as well as all the light controls you'd expect coming from Tx.
http://www.disenchant.net/
I'll Have To Try Those Out
#13809 posted by killpixel on 2014/05/28 18:35:13
#13810 posted by metlslime on 2014/05/28 21:32:18
vis does not respect vertical height (if its open at any point vertically it's considered completely open)
I don't think this is true, is there an authoritative source for this?
#13811 posted by Lunaran on 2014/05/29 02:55:57
yeah, I read that and declared aloud "are you fucking kidding me?"
Surely this would be testable ny making a vertical map
Huh
#13813 posted by ijed on 2014/05/29 15:15:16
Nope. It's something I got from early Q2 mapping and assumed was the same for all.
Maybe I should do a test map before each post.
#13814 posted by JneeraZ on 2014/05/29 15:34:04
It almost reads like mapping lore they gets passed along and nobody ever really understands or questions it.
Like, I have friends who make Quake maps who clip and miter every brush so that nothing ever overlaps. Ever. Totally clean construction. I've tried to explain they are wasting their time and QBSP takes cares of all that but they will hear none of it! "It makes for cleaner and better performing maps", they say. I say it makes for a lot of wasted time that could be spent more productively...
Willem
#13815 posted by killpixel on 2014/05/29 15:40:21
Mitering convex corners is optimal.
#13816 posted by JneeraZ on 2014/05/29 15:58:39
In what sense? I mean, if you're slamming up against engine limitations, sure, go for it but otherwise ... What's the point?
For The Sake Of Optimiztion I Suppose
#13817 posted by killpixel on 2014/05/29 16:08:07
It still comes out a more efficient map to run, however negligible the gains might be.
A few weeks ago I went through my map to try to get some vertexes back, as I'm nearing the limits of bsp29. I mitered most convex corners and got about 2k verts back from that alone.
I also fixed a lot of my early brushwork, it was really shoddy. brushes in brushes in brushes in bushes, all sorts of random shit of all sizes, off the grid even, all in one big mass of noob mapping.
After going through and optimizing the map, I had about 6k back and shaved 30 minutes off the compile time.
I can't explain it, those were my results.
You better miter those brushes damnit!!
I'm partway through making a vert map right now with a door in every ceiling (it's a 768 map), I just tested this theory using r_showtris 1 and it doesn't appear to be true, it's definitely not drawing every single floor.
#13819 posted by Joel B on 2014/05/29 21:45:01
Prepare for a possibly dumb contribution to the visibility discussion, but FWIW, what I remember from Q3 mapping was along these lines (it would be easier to do this with pictures but oh well):
Let's say you have a big cube of open space. A vertical wall divides the cube into two halves, but the wall is only half as tall as the cube. So you essentially have two rooms sharing an open space overhead.
The visibility here depends on how the compiler chooses to subdivide the space.
If it first cuts horizontally along the top of the divider wall, then the nodes for the space of each "room" will end up being only as tall as the divider wall, and they can't see each other.
However if the compiler first cuts vertically up the side of the divider wall, then there is going to be a tall node on that side of the wall, that goes all the way to the ceiling of the cube. In this case the nodes on each side of the wall can see each other.
The solution in Q3 was to have a horizontal hint brush face dividing the cube at the level of the top of the divider wall. So even if the compiler chose to chop vertically along the wall face first, the cut and therefore the room node would stop at the hint face.
If I'm misremembering/misunderstanding, or if the Q1 visibility issues are different, please clue me in...
#13820 posted by Lunaran on 2014/05/30 03:51:17
That's a really clear explanation.
#13821 posted by Lunaran on 2014/05/30 04:04:44
In that example, the compiler is going to prefer cutting up the side of the divider, without being given a hint. Every plane in the map is ordered based on preference for splitting. Vertical planes are higher priority than horizontal ones, and axial planes are higher priority than slanty ones. The map is assumed to be architectural in nature, so this assumption makes the compiler more likely to catch doorways or subdivide large spaces in a way that respects the layout. I think that's what we're really talking about.
This is why outdoor bits with lots of rocks tend to go kaleidoscopic, the compiler doesn't have a lot of vertical axial faces to go on so it digs deeper and starts using the sides of your wacky boulders to slice the space up.
#13822 posted by necros on 2014/05/30 04:12:24
qbsp will usually clobber any fancy brush mitering you've done anyway.
i remember the doom3 compiler being really amazing about mitering things. i don't remember ever seeing it cut a wall up in anything but the best way.
quake bsp compilers aren't that good and rarely make the right cuts. to be fair, they are working under more stringent limitations (such as max face size) than doom3.
Append
#13823 posted by necros on 2014/05/30 04:13:56
you can FORCE qbsp to honour your face divisions by offsetting textures by 1 unit (because then the compiler must consider them as a separate face) but you're just giving the compiler less leeway to work with and it'll probably perform even worse.
i find it's better to keep your brushwork clean enough so you can work well but to not fuss overmuch with what the compiler is doing.
Q1/D3
#13824 posted by Spiney on 2014/05/30 12:25:16
Isn't Q1BSP more of a software era thing? Cutting things into small triangles to minimize overdraw. Iirc the software renderer only uses z-buffer reads for models and the world bsp is rasterized front to back? D3 doesn't have those limitations and does a fair bit of culling at runtime afaik.
#13825 posted by negke on 2014/05/30 14:07:36
IIRC the old QBSP used to or at least had a tendency to produce weird results on overlapping brushes or multi-face walls even if they were all on the same plane with the same texture and offset. This is why "clean" brushwork was propagated. Another well-known example apart from mitered corners is that technique where the brushes on arches are turned into triangles that meet in the upper corners.
Newer compilers take better care of such cases, although their results can still be arbritary at times. I found that occasionally "sloppy" constructions caused better splitting than "clean" brushwork for whatever reason.
#13826 posted by Lunaran on 2014/05/31 18:32:44
Newer compilers can combine faces, while older ones only split them. Doom3 doesn't need you to do any mitering because any extra cuts in a continuous surface that are introduced by the brushwork are optimized away again.
Doom3 also doesn't do any previs calculations, instead relying entirely on designer-placed portal surfaces that it tests for overlap in screen space in real time. (you can turn on r_showportals or something and see them turn red and green as you run around.) This is much simpler, and completely avoids any wacky how-is-qbsp-hacking-my-rooms-apart trouble, but also means you can't build any kind of large or interesting space that can't have its visibility constrained by little doorways. Yada yada yada and you get Doom3's level design.
This room was a bitch:
http://matthewbreit.com/images/q4dm11/1.jpg
That big solid platform in the middle blocks the view of doorways on either side of it from each other, but because those portals overlap in screen space they were always considered open. The proper solution is to have some kind of occluder or antiportal inside the platform, which doom3/quake4 didn't have, so we had to - surprise - cut the room apart in wacky ways with huge portals instead.
Oohh
#13827 posted by killpixel on 2014/05/31 18:43:20
wow, that looks really pretty.
I Read About D3's Occlusion Culling System
#13828 posted by Spiney on 2014/05/31 23:41:16
And assumed there was some stuff I was missing because of handling cases as described above. The reality seems rather depressing :)
#13829 posted by necros on 2014/06/01 02:32:46
but only for special cases like that. i found that usually it was a very easy system to use.
Was it similar to how mapping in Unreal Tournament was by putting a non solid plane in doorways to make each room its own portal?
#13831 posted by necros on 2014/06/01 16:20:15
sounds very similar.
in d3, you make a brush with a non-solid texture on all but one face. on the last face, you put the portal texture and that becomes the portal.
|