![]() BSP Headquarters Logo by Chainsaw ![]() ![]() Lesson 12 - GroupsThis is going to be another short lesson. We're not actually going to draw anything in this lesson, but I'll show you how you can speed up working with BSP. As usual, let's make a copy of your 'lesson11.map', name it 'lesson12.map' and load it into BSP. (If you don't have 'lesson11.map', click here to get a copy). You'll notice as your maps grow larger that it becomes increasingly difficult to select particular brushes to work with. Also, 3-D rendering becomes slower the more brushes you have in your map. In small maps you'll hardly notice any slow down, but the lag seems to grow exponentially as your map grows. This isn't the fault of BSP; it just takes longer to draw all those brushes. We need a way to hide brushes in areas of the map we aren't working in. That way, we can concentrate on a specific area without having to suffer the overhead of all those other brushes. Fortunately, BSP provides a convenient way to do just that: Grouping. In BSP, you can select groups of brushes and make them invisible to the editor. This can speed things up by not having to re-draw all those brushes all the time. If that were all you could do with groups, that would be great, but there's more. You can copy and move entire groups as one. You can export and import groups between maps. The usefulness of groups is enormous. And you get all this power without much work on your part. (That's the really great part). So what do you say we get started. In our map we've been working on there are plenty of things that we are done working on that it would be nice to get out of our way. Our military-style lightposts for example. They are done and they just get in the way when we're trying to work on other areas of our map. Let's make a group and turn these invisible. It's probably going to be easiest to select these brushes in the 3-D wireframe view, so switch over there and move your camera position around so you can select each of the four lightposts in our first room. Remember that you can select multiple objects by Shift-Clicking on each brush, rather than just Clicking. Once you've got all four brushes selected, switch over to the Group window. ![]() Right-click on 'None' and the following menu will pop up: ![]() Select 'Add new group...' from this menu. A box will pop up and ask you for a name. Type 'LightPosts' in this box (without quotes) and click on OK. A color dialog box will pop-up. Pick a color you want to use for this group and click OK. Voila! You've just created a brush group. Your new group appears in the list of groups in the Group Window. If you look in the editing windows, you should see the brushes in your group have changed to whatever color you selected for this group. This lets you know they are grouped. Cool, eh? Now, in the Group window, make sure 'LightPosts' is selected in the group list right-click again. This time select 'Visible (LightPosts). Now your group has disappeared from view. Relax, it's still there, you just can't see it. (Re-select 'Visible' on the context menu if you don't believe me). These brushes will not show up in any of the view windows now, including the 3-D textured preview (this is where the speed savings really shows up) Of course, you can turn off multiple groups if you want. Personally, I like to turn off all the groups except the ones immediately surrounding whatever area I am currently working on. That way I can focus just on that one area. That's all you need to know to use groups, but you might be wondering what some of the other options on the context menu do. Well, here's what I know about them:
The name of the current group shows up in each command, so you know what group you are working with. In the above screenshot, it's [None]. There are a few things you'll need to know to make grouping work well for you: When you draw a new brush, it will be assigned to whatever group is currently selected. This is handy, but if you're not careful it's easy to draw a brush in a group you weren't expecting. That is one reason for the 'Move Selected To' option - so you can change a brush to another group after it's been drawn. Fortunately, you can see the name of the current group in the top of the editing window. That way you know at a glance which group you're adding brushes to. (Thanks Yahn for implementing my suggestion!) Whenever you copy a brush, the pasted copy get's assigned to the current group, regardless of whatever group the original copied brush belonged to. Whenever you load a map, all groups are set to the visibility status they had when you saved it. Go ahead and play around with the grouping window to get comfortable with it. You might want to assign all the brushes of our wind tunnel to a group. Also you might want to make one for your water pit, or your secret room. You can make as many or as few groups as you want. Just remember that on larger maps it really comes in handy to be able to hide a bunch of these. Here are the groups I used for my 'lesson12.map': ![]() Well, that's it for this lesson. Hope you find groups as easy and useful as I have. Next time I'll go over a few more triggers, including the exit trigger as we make an exit from our map. See you soon. ![]() ![]() BSP is the sole creation of
Yahn Bernier. I am only a
dedicated user, reporting news and making tutorials so Yahn can spend
more time enhancing BSP. QUAKE is a registered trademark of Id Software,
Inc. QUAKE(r), the stylized reproduction of the QUAKE(r) trademark,
including, without limitation, the Q in QUAKE(r), and the images
depicted in QUAKE(r) are the copyrighted property of Id Software, Inc.
So there :-P
This web page was created and is being maintained by me (DeadMeat). The main logo for this site was made by QuakeGod. Most everything else was made by me.
All content appearing on this site after August 30, 1997 was written by DeadMeat. Also, DeadMeat's BSP Tutorials were created entirely by DeadMeat. All unauthorized use is prohibited. (c) 1997 |