<li><aclass="backlink"title="Click to do a full-text search for this title"href="./LevelEditor_BasicRoom?action=fullsearch&value=linkto%3A%22LevelEditor+BasicRoom%22&context=180">LevelEditor BasicRoom</a></li>
<spanclass="anchor"id="line-4"></span><pclass="line874">This tutorial assumes a two mouse button configuration. <spanclass="anchor"id="line-5"></span><spanclass="anchor"id="line-6"></span><pclass="line867"><imgclass="attachment"src="./LevelEditor_BasicRoom?action=AttachFile&do=get&target=image01.jpg"title="attachment:image01.jpg"/><spanclass="anchor"id="line-7"></span><spanclass="anchor"id="line-8"></span><pclass="line862">Don’t be alarmed that yours looks different, you can shuffle windows around to get a workspace that works best just by dragging and resizing the windows. Colors customization can be accessed through the top menu “Misc > Colors” <spanclass="anchor"id="line-9"></span><spanclass="anchor"id="line-10"></span><oltype="1"><li>Main View – This is where most of your work is done. You can use “ctrl-tab” to toggle between your side, front, and top views. Note when you hit ctrl-tab that the text indicator in the top left changes to show you what view you’re currently looking at. <spanclass="anchor"id="line-11"></span></li><li>3D Preview Window – You can view your work here as well as preview lights in this window. <spanclass="anchor"id="line-12"></span></li><li>Entity/Media/Texture/Console Window – Select one of the tabs to view the appropriate information. <spanclass="anchor"id="line-13"></span></li><li>Z Window – Used primarily for moving and sizing geometry vertically. <spanclass="anchor"id="line-14"></span></li><li>Status Bar – Displays important information such as xy position, grid settings, and texture lock. Important items to note: <spanclass="anchor"id="line-15"></span><oltype="a"><li><pclass="line891"><em>G</em> - Grid size 8.00 is 8x8, etc <spanclass="anchor"id="line-16"></span><spanclass="anchor"id="line-17"></span></li><liclass="gap"><pclass="line891"><em>R</em> - Rotation Lock <spanclass="anchor"id="line-18"></span><spanclass="anchor"id="line-19"></span></li><liclass="gap"><pclass="line891"><em>L</em> - Texture lock modes. Textures stay locked to your brush as you either move them "M" or rotate them "R." Turn this off if you do not wish the texture to stay with the object as you move it. <spanclass="anchor"id="line-20"></span><spanclass="anchor"id="line-21"></span></li></ol></li></ol><pclass="line867">
<spanclass="anchor"id="line-22"></span><pclass="line874">The blue Z in the middle of the main view is used in conjunction with the Z Window. You can move this around using shift-middle click and if you have brushes intersecting it vertically they will show up in your Z Window. It’s used more or less as a guide so you can see where your floor and ceilings are in the Z Window. <spanclass="anchor"id="line-23"></span><spanclass="anchor"id="line-24"></span><pclass="line874">The small diamond with the lines extending from it is your current position and view in 3D space. The lines extending is your view direction. You’ll see more of how this works later as you build your first room but for now just keep in mind it’s your view. <spanclass="anchor"id="line-25"></span><spanclass="anchor"id="line-26"></span><pclass="line867">
<spanclass="anchor"id="line-27"></span><pclass="line874">Radiant has a nonstandard interface for moving about in 3D space but after some time you’ll find that it’s really quite simple and very fast. After completeing this tutorial you should have a basic understanding on how to create and resize brushes as well as move the 3D view around. <spanclass="anchor"id="line-28"></span><spanclass="anchor"id="line-29"></span><pclass="line874">To start left click in the 2D main view and draw out a square. <spanclass="anchor"id="line-30"></span><spanclass="anchor"id="line-31"></span><pclass="line867"><imgclass="attachment"src="./LevelEditor_BasicRoom?action=AttachFile&do=get&target=image02.jpg"title="attachment:image02.jpg"/><spanclass="anchor"id="line-32"></span><spanclass="anchor"id="line-33"></span><pclass="line874">You’ve just created a brush. If you release the mouse button you can still resize the selected brush by left clicking outside the brush on the particular side you wish to resize and drag it where you need to. If you left click inside the bounds of the brush you can move the brush around. <spanclass="anchor"id="line-34"></span><spanclass="anchor"id="line-35"></span><pclass="line874">To deselect the brush hit “Escape.” To select the brush again use shift-left click. <spanclass="anchor"id="line-36"></span><spanclass="anchor"id="line-37"></span><pclass="line874">If you accidentally created another brush after deselecting your first brush you can delete it first by selecting it, shift-left click, and then hitting “Backspace.” <spanclass="anchor"id="line-38"></span><spanclass="anchor"id="line-39"></span><pclass="line874">Now that your brush is created you probably want to look at it better in the 3D view to see exactly what you’ve made. To do this there are several keys for navigation: <spanclass="anchor"id="line-40"></span><spanclass="anchor"id="line-41"></span><ul><listyle="list-style-type:none">C – Move Up <spanclass="anchor"id="line-42"></span>D – Move Down <spanclass="anchor"id="line-43"></span>A – Rotate Up <spanclass="anchor"id="line-44"></span>Z – Rotate Down <spanclass="anchor"id="line-45"></span>Arrows – Move <spanclass="anchor"id="line-46"></span><spanclass="anchor"id="line-47"></span></li></ul><pclass="line874">Using these you can rotate and look around at your newly created brush. <spanclass="anchor"id="line-48"></span><spanclass="anchor"id="line-49"></span><pclass="line874">Now that you’ve got your first brush created let’s go ahead and turn it into something. This first brush will be our floor for your first room. <spanclass="anchor"id="line-50"></span><spanclass="anchor"id="line-51"></span><pclass="line874">Next we need to build up one of the walls for your room. Make sure your brush is deselected and then draw out a new brush making sure that it touches the floor: <spanclass="anchor"id="line-52"></span><spanclass="anchor"id="line-53"></span><pclass="line867"><imgclass="attachment"src="./LevelEditor_BasicRoom?action=AttachFile&do=get&target=image03.jpg"title="attachment:image03.jpg"/><spanclass="anchor"id="line-54"></span><spanclass="anchor"id="line-55"></span><pclass="line874">While the brush is still selected hit ctrl-tab to switch to a side view and drag the upper edge of the brush up. Once satisified with the height, hit ctrl-tab twice more to return to the top view. You should have a view similar to something like this: <spanclass="anchor"id="line-56"></span><spanclass="anchor"id="line-57"></span><pclass="line867"><imgclass="attachment"src="./LevelEditor_BasicRoom?action=AttachFile&do=get&target=image04.jpg"title="attachment:image04.jpg"/><spanclass="anchor"id="line-58"></span><spanclass="anchor"id="line-59"></span><pclass="line874">In the grid view it looks the same as before but in the 3D view we now have what appears to be a wall. In order to complete the room we’ll need a few more walls. You can accomplish this in one of two ways. The fi
<h2id="head-269df2cfdb7ba2f482278db0d717d9b93bfbaf15">Save Your Work (Often)</h2>
<spanclass="anchor"id="line-90"></span><pclass="line874">Time to save your map. Save it in q4base/maps/tutorial/room.map (you may need to create the “maps” and “tutorial” directories as needed). You can save it anywhere you want within maps, but it has to be somewhere in q4base/maps in order for the game to load it. <spanclass="anchor"id="line-91"></span><spanclass="anchor"id="line-92"></span><pclass="line867">
<spanclass="anchor"id="line-93"></span><pclass="line874">Being able to move and resize textures is a key aspect of building your level. You’ll notice in the example map the edges of the plating panel doesn’t line up with the corner of the room. To fix this first we’ll have to turn on Texture Lock in the preferences: <spanclass="anchor"id="line-94"></span><spanclass="anchor"id="line-95"></span><pclass="line874">Hit “P” for Preferences and then select “Snap T To Grid.” Make sure this is checked and select ok. What this does is allows you to move textures based on your grid size. More on grid sizes later. <spanclass="anchor"id="line-96"></span><spanclass="anchor"id="line-97"></span><pclass="line874">With the one wall selected, hold shift and hit an arrow button. You’ll notice the texture begins to shift. You can use this to line up the edges of your textures with your world architecture: <spanclass="anchor"id="line-98"></span><spanclass="anchor"id="line-99"></span><pclass="line867"><imgclass="attachment"src="./LevelEditor_BasicRoom?action=AttachFile&do=get&target=image08.jpg"title="attachment:image08.jpg"/><spanclass="anchor"id="line-100"></span><spanclass="anchor"id="line-101"></span><pclass="line874">To further expand on texture manipulation and grid sizes let’s build a pillar somewhere in the room. To do this, let’s make the pillar 64x64 units. One way to do this is to draw it out on our current grid size to be the size that we want, or we can switch the grid to a larger size to make sure our brush is exactly the size we want it. <spanclass="anchor"id="line-102"></span><spanclass="anchor"id="line-103"></span><pclass="line874">Hit “7” on your keyboard. The minor grid lines should disappear and leave you with just the major grid lines. You are now on the 64x64 grid. Draw a new brush somewhere in your room. You’ll notice that you have to draw it slightly bigger for it to appear and it’ll snap to these larger grid lines. Hit the number “4” to go back to the 8x8 grid and you’ll see all the minor grid lines appear. <spanclass="anchor"id="line-104"></span><spanclass="anchor"id="line-105"></span><pclass="line874">Play with the numbers 1-7 to view the different grid sizes available to you. <spanclass="anchor"id="line-106"></span><spanclass="anchor"id="line-107"></span><pclass="line874">Finish your pillar by selecting it and using either the Z Window or using ctrl-tab to switch views to stretch it out vertically: <spanclass="anchor"id="line-108"></span><spanclass="anchor"id="line-109"></span><pclass="line867"><imgclass="attachment"src="./LevelEditor_BasicRoom?action=AttachFile&do=get&target=image09.jpg"title="attachment:image09.jpg"/><spanclass="anchor"id="line-110"></span><spanclass="anchor"id="line-111"></span><pclass="line874">Now we’re going to need to texture this pillar with a cool pillar texture to make it look interesting. To do this, load the common_walls directory the same way that we loaded them in previous. Select a texture that looks like it’ll fit on the pillar: <spanclass="anchor"id="line-112"></span><spanclass="anchor"id="line-113"></span><pclass="line867"><imgclass="attachment"src="./LevelEditor_BasicRoom?action=AttachFile&do=get&target=image10.jpg"title="attachment:image10.jpg"/><spanclass="anchor"id="line-114"></span><spanclass="anchor"id="line-115"></span><pclass="line874">We’ve now got a pillar set up. If you wanted to get a bit more in depth you can also select faces to texture them differently. To do this you can ctrl-shift-left click on any surface in the 3D window and select it. Do this on one of the faces of the pillar and then once it’s selected, select a new Texture in the Texture window: <spanclass="anchor"id="line-116"></span><spanclass="anchor"id="line-117"></span><pclass="line867"><imgclass="attachment"src="./LevelEditor_BasicRoom?action=AttachFile&do=get&target=image11.jpg"title="attachment:image11.jpg"/><spanclass="anchor
<spanclass="anchor"id="line-124"></span><pclass="line862">Given that lights are entities we’ll cover both quickly in the same group. To drop any entity in the game (an entity could be spawn points, lights, or creatures for example) right click in the 2D window. A menu will appear. Select “Info > info_player_start from the list. <spanclass="anchor"id="line-125"></span><spanclass="anchor"id="line-126"></span><pclass="line874">There will now be a player start somewhere in your map. This is where the player spawns so it’s important to make sure this is inside your room somewhere. Go ahead and move it like you would a brush into your room and align it with the floor. <spanclass="anchor"id="line-127"></span><spanclass="anchor"id="line-128"></span><pclass="line867"><imgclass="attachment"src="./LevelEditor_BasicRoom?action=AttachFile&do=get&target=image12.jpg"title="attachment:image12.jpg"/><spanclass="anchor"id="line-129"></span><spanclass="anchor"id="line-130"></span><pclass="line874">Add a light to the scene to allow the player to see his surroundings. Right click in the main view again and select “Light.” A light will now be somewhere in the map, move this light inside of the box room. <spanclass="anchor"id="line-131"></span><spanclass="anchor"id="line-132"></span><pclass="line874">Hit F3 and your 3D preview will turn into a preview of what your room will look like in game. Go ahead and move the light around to get a placement that you’d like. <spanclass="anchor"id="line-133"></span><spanclass="anchor"id="line-134"></span><pclass="line867">
<spanclass="anchor"id="line-135"></span><pclass="line862">Save the map and select BSP > BSP from the menu. The editor will compile your map in a few short seconds and then you’ll be done. When the console is done writing out all the files go ahead and hit F2 to load a window copy of the game. <spanclass="anchor"id="line-136"></span><spanclass="anchor"id="line-137"></span><pclass="line874">For simplicity sake we’re going to run the map using the F2 button. This can be unstable however and it is a lot safer to run two copies of the game (one editor, one windowed game instance) and then just tab between the two for testing or building. <spanclass="anchor"id="line-138"></span><spanclass="anchor"id="line-139"></span><pclass="line874">Load your map using the map command: <spanclass="anchor"id="line-140"></span>map yourmapname” <spanclass="anchor"id="line-141"></span><spanclass="anchor"id="line-142"></span><pclass="line874">If you saved it in the same spot as described in this tutorial it would be: <spanclass="anchor"id="line-143"></span>“map tutorial/room.map” <spanclass="anchor"id="line-144"></span><spanclass="anchor"id="bottom"></span></div><pid="pageinfo"class="info"lang="en"dir="ltr">LevelEditor BasicRoom (last edited 2005-11-15 14:40:21 by <spantitle="CoreyPeters @ 24-179-217-25.dhcp.mdsn.wi.charter.com[24.179.217.25]"><aclass="nonexistent"href="./CoreyPeters.html"title="CoreyPeters @ 24-179-217-25.dhcp.mdsn.wi.charter.com[24.179.217.25]">CoreyPeters</a></span>)</p>
<li><ahref="http://moinmoin.wikiwikiweb.de/">MoinMoin Powered</a></li><li><ahref="http://www.python.org/">Python Powered</a></li><li><ahref="http://validator.w3.org/check?uri=referer">Valid HTML 4.01</a></li>