WDFUSE Tutorial - Basic Geometry II

From DF21 Wiki

Basic Operations and Modifying Geometry

While square sectors may be fun you may want to vary your geometry in your custom missions. Here we will talk about ways to add, remove and alter map components to suit your needs. Lets switch back to Sector Mode.

Adding Map Components

To add a new components (Remember: They are Sectors/Walls/Vertices/Objects - or SWVO) simply select it by clicking on it (it will turn red) and press the Insert button (To the right of the Backspace key). Do it now while selecting the sector. A new Sector will appear where your mouse pointer is located .

thumb

Additionally, you can Right Click on the map to bring up the Pop-Up menu and choose Duplicate. It's the same thing as pressing insert.

thumb


This new sector is an exact copy (Same shape, height, textures etc...) as your original. You can keep pressing insert as often as you'd like and more and more copies of the sector will appear. Remember you can move the copies around around by holding the CTRL button. This will work for any map component.

Now switch to the Wall Mode and hover over any of the Sector's walls. Press Insert and the wall will be split in two. You will get a pop-up confirming that you want to split the wall. Choose Yes.

thumb


The sector will have now have five walls and 5 vertices. You can move the new wall around (with CTRL ) just like any other component.

thumb


Just like the sectors you can Right-Click and choose Split-Wall to split the wall instead of pressing the insert button.

thumb


If you switch to Vertex Mode and press Insert you will be greeted with the same split-wall pop-up confirmation as in the Wall Mode. This is because for every new wall you create a new vertex will also be made and vice-versa. You can also insert more vertices by choosing the duplicate from the right-click menu. Once created, you should be able to move it around with CTLR button.

thumb

One more thing about Vertices. If you hold CTRL button and left click while in Vertex Mode you can add additional vertices without pressing the Insert button. It's a quick way to add them if you want to draw a particular shape.

Finally, In Object Mode, you can create more objects by pressing the Insert button and just like the rest you will get an exact duplicate of the original object, at the position where you were pointing to with your mouse at that very moment.

thumb

Deleting Map Components

To delete a map component in any map mode, simply press the Delete key underneath the Insert key. You will get a prompt to confirm you want to delete the component.

thumb

You can also delete a component by Right-Clicking on the map and choosing Delete from the pop-up menu.

thumb

If you ever make a mistake and delete something important, don't forget you can Undo an action by holding CTRL and pressing Z or bringing up the pop-up menu (by right clicking) and choosing Undo.

thumb

Selecting Multiple Components

Now that you have multiple sectors you can make editor operations on them all at once.

To select more than one component hold Shift and Left-click on the item in question. Try clicking on multiple sectors holding Shift.

thumb

Here you can see that there are multiple sectors selected because their color changed. Items that are multi-selected will turn White in color. You can remove items from the multi-selection by left-clicking the selected component again. And if you ever want to clear your multi-selection completely simply press the Backspace key. You can also bring up the pop-up menu and choose Clear Multiselection option.

Here are something you can do when items are multi-selected.

  1. You can move them at once by holding the CTRL button.
  2. You can Add your selection at once by using the Insert key. So if you have 3 sectors selected you will create 3 more in another location.
  3. You can Delete your selection by using the Delete key. Please be careful, you may be accidentally delete more sectors than you want !

There is another way you can select multiple map components.

If you hold ALT you will create a white selection rectangle with which you can cover multiple map components.

thumb

Here you can see the white dotted rectangle. When you let go, all the sectors will be selected.

Copying and Pasting

Another way you can add components to your mission is by using Copy and Paste. To do that select any component, hold CTRL and then press C to store the item in memory and then hold Ctrl and press V to paste it anywhere on the map. You can also bring up the pop-up menu and choose Copy/Paste options.

thumb

This will work with multi-selected items and will even work between different instances of WDFUSE. So you can have two WDFUSE editor open at a time, copy a sector from the first one and be able to paste it into your own map. What's more - you can have a friend copy their own sector, paste the text representation of it (from Clipboard) and send it to you by email or chat. You can then select the text, copy it and then paste it into your map!

Sector Pop-Up Operations

When you Right Click on the sector you will get a popup with various options. Many are self-explanatory but we will concentrate on Rotate, Flip and Stitch.

thumb

Rotate

You can rotate a sector by 10, 45 or 90 degrees as well as the inverse of those numbers by selecting the rotation values from the pop-up menu.

thumb

Here the square sector now was turned 45 degrees.

thumb

You can also use the hotkeys Shift+Up or Shift+Down to move a sector (or sectors) by 10 degrees or Shift+Left and Shift+Right to rotate a sector by 90 degrees.

Flip

You can flip a sector horizontally (X axis) or vertically (Z axis) from the pop-up menu.

thumb

You can see that the sector was flipped.

thumb

You can also flip a sector with ALT+Left or ALT+Right hotkeys.

Scale

You can also scale the size of your sectors. You can make them bigger or smaller from the pop-up menu. (There are more advanced options allowing you to scale with any desired factor - but here the two most common are offered.)

thumb

You can also use the hotkey ALT+Up or ALT+Down hotkeys.

The tutorial continues with the 3D Renderer article.


WDFUSE Tutorials

  1. Introduction
  2. WDFUSE Tutorial - Configuration
  3. WDFUSE Tutorial - Basic Geometry
  4. WDFUSE Tutorial - Basic Geometry II
  5. WDFUSE Tutorial - 3D Renderer
  6. WDFUSE Tutorial - Advanced Geometry
  7. WDFUSE Tutorial - Advanced Geometry II
  8. WDFUSE Tutorial - Advanced Geometry III
  9. WDFUSE Tutorial - Objects
  10. WDFUSE Tutorial - Scripting
  11. WDFUSE Tutorial - Scripting II
  12. WDFUSE Tutorial - Scripting III