[N-World Contents] [Book Contents] [Prev] [Next] [Index]

Magnet Operations


In this chapter you'll learn how to use N-Geometry's magnet operation technique to distribute the effect of a command over a selected area of a model.


In this Chapter

You'll learn about the following concepts:


Building a Mountain Range

1. (CLICK-L) on GeoMenus>File>New Object.

2. (CTRL-L) on Grid.

The following dialog box is displayed:

Figure 5.1 Starting with a primitive

Note. Holding down the CTRL key when creating any primitive lets you specify additional parameters about how the primitive is created.
Additional parameters typically let you specify size, orientation, number of subdivisions in the object, and so forth.

3. Set the Orientation to Y and (CLICK-L) on the Make Grid button.

A grid appears in the N-Geometry window:

Figure 5.2 A simple grid, oriented along the Y plane


Using Magnet Operations

Magnet moves let you perform an operation on an entire area of an object; the effect of the operation is strongest at the center of the area, and falls off toward the edge. We can use this magnet feature to create some very natural looking deformations. We'll use it in the sample below to pull up a natural looking mountain from a flat surface:

4. (SHIFT-L) on a vertex near the corner of the grid.

This will be the "peak" of our first mountain:

Figure 5.3 Select the peak of the mountain

5. (ALT-M) on Axis Move.

Hold down the ALT key when you (CLICK-L) on Axis Move.

6. (CLICK-L) on Y to select the Y Axis.

Now, move the cursor over the grid again. You'll notice that as you move the cursor over the model, the vertex under the cursor is highlighted.

When the cursor is in this mode, you're being asked to select a point that defines the perimeter for the area of influence for the magnet move.

7. (CLICK-L) on a vertex two units away from your peak.

Figure 5.4 Choose a point a short distance from the "center" of the magnet move

This defines the area of influence for the move.

8. Move the mouse to the right.

The vertex at the center rises the most; those toward the edge are affected less and less the further they are from the original point selected:

Figure 5.5 Drag the mouse right and left to pull up the mountain

Magnet Moves on Multiple Elements

How is influence calculated if you have multiple elements selected?

Try this:

9. Collect several points on the grid that are somewhat separated from each other.

Figure 5.6 Select several vertices on the grid

10. (ALT-M) on Axis Move.

11. (CLICK-L) on Y to select the Y Axis.

12. (CLICK-L) on a vertex one square away from the peak closest to the upper right grid.

Figure 5.7 Select an area of influence

13. Move the mouse to the right and pull up several mountains.

Note that all the mountains are identical; the sphere of influence is based on the distance of the point selected in step 12 and the nearest selected element.

Note. The "sphere of influence" is calculated based on the defining vertex's distance from the closest selected element.

Figure 5.8 The sphere of influence is the same for each selected element

Note. This feature makes it easy to create features such as scales on a dragon (or other types of bumps across a wide surface) using a uniform area of influence.

If you want to have different areas of influence for different elements, you should select them independently.

Try pulling out several different mountains, using different areas of influence.

Performing Magnet Moves on Other
Element Types

You can perform a magnet move using a vertex, segment, or face as the "center" for the area of influence.

Repeat steps 4 through 8, selecting a segment or face (instead of a vertex) in step 4.

Figure 5.9 A mountain range landscape with 101 polygons (1 on bottom!)

Which Commands?

The magnet feature can be used with almost any modify operation in N-Geometry.

Conceptually, the important thing to understand is that there is a falloff across the defined area. Some other example might produce results like those shown below.


Making an Egg

1. (SHIFT-L) on the face on top of the sphere, then (ALT-M) on Axis Move>Y.

Figure 5.10 Select the top face on the sphere

2. Select a point somewhere near the sphere's "equator" to set the area of influence.

3. Move the mouse to the right.

Figure 5.11 Magnet with Scale operation


Creating a "Vacuum" Effect

If you want to simulate part of a model being "pulled," or sucked into a vacuum, you want to use a magnet move.

Try this:

1. (SHIFT-L) on the face on top of the sphere.

2. (ALT-M) on Rotate>X.

3. Select a point somewhere near the sphere's "equator" to set the area of influence.

4. Move the mouse to the right.

(Note that in the example below, note that the object we're performing the magnet move on has been moved from global center.)

Figure 5.12 Magnet with Rotate operation

We'll use magnet operations in several of the other N-Geometry tutorials.

How the Area of Influence is Calculated

There are several methods for determining the area of influence when performing a magnet move; these methods are described in detail in the N-Geometry Reference Guide. Some methods use a "spherical" area of influence, while others measure the area along the surface.

Specifying an Area of Influence Numerically

If you want to specify the area of influence numerically, hold down both the ALT and CTRL keys when selecting the operation like Axis Move. This brings up the following menu, which is described in the following section:

Figure 5.13 Specifying an area of influence numerically


Congratulations!

You've now learned how to use magnet moves to create natural looking features on a landscape. You can use the magnet feature with most of N-Geometry's commands.



[N-World Contents] [Book Contents] [Prev] [Next] [Index]

Another fine product from Nichimen documentation!

Copyright © 1996, Nichimen Graphics Corporation. All rights reserved.