Professional Documents
Culture Documents
3D Network Visualizer
3D Network Visualizer (3DNV) functionality lets you create three-dimensional
animations based on topology information, node relationships, performance
statistics, and terrain data. You can, for example, use 3DNV to visualize network
characteristics such as node placement, line-of-sight restrictions, transmission
quality, throughput, delay, and message status information.
This tutorial provides a quick introduction to 3DNV. It shows how you can use
3DNV to do the following tasks:
OPNET Modeler
Wireless
Note that, because OpenFlight terrain is not supported on Linux, you can do this
tutorial only on Windows platforms.
You should have the following software and hardware installed on your
computer:
128-bit video card with at least 256MB of video memory and support for
OpenGL 2.1 or later
NoteIf you have problems with any of the 3DNV programs during this tutorial,
see Troubleshooting at the end of this tutorial.
3 The 3DNV tutorial network uses custom icons. Set the Icon Databases preference
to specify their location, as follows:
3.5 Click the Insert button, type wireless_corps, and press <Enter> to accept
the value.
3.6 Click OK to accept the changes and to close the Icon Databases dialog box.
4 The 3DNV tutorial uses custom node models. Set OPNET Modeler to recompile
models by removing any references to existing model repositories:
4.1 Type Network Sim in the Search box and press <Enter>.
4.2 If the Network Simulation Repositories preference value is not (), click in
the Value cell, delete all repository names, and close the
Network Simulation Repositories dialog box.
5 The 3DNV tutorial uses the same terrain database in OPNET Modeler and
3D Network Visualizer. To ensure that 3D positions are in synch between the two
programs, OPNET Modeler needs to use an ellipsoid representation of Earth
similar to the one used in 3D Network Visualizer. This replaces the default
spherical model (which is faster to compute):
5.2 If the Earth Geocentric Model preference value is not ellipsoid, click in the
Value cell and choose ellipsoid.
A dialog box appears indicating that the Earth Geocentric Model and
Icon Databases preferences require the tool to be restarted for the changes to
be taken into account. Click OK to dismiss this dialog box.
7 Quit and restart OPNET Modeler to make the icons available and to use the
ellipsoid earth model.
3DNV
Communications
If OPNET Modeler and 3DNV are installed on different computers, you must
configure the installation in two ways. (If they are on the same computer, skip
these steps and go to the Introduction.) First, edit the rid.mtl file on both
computers.
2 On the OPNET Modeler computer, use a text editor to open the file
<install_dir>\3DNV\3.0.0\configs\rid.mtl, where <install_dir> is the path to the
software (for example, C:\Program Files\OPNET).
where <ip_addr> is the IP address of the other computer (on which the 3DNV
Communications program will be run).
5 Repeat steps 24 on the 3DNV computer, verifying that the line exists and has the
IP address of the 3DNV computer.
When this tutorial asks you to run 3DNV programs (for example, 3DNV
Communications and 3D Network Visualizer), run them on one computer and
OPNET Modeler on the other.
Introduction
The 3DNV_Tutorial network consists of 20 mobile MANET nodes located in the
vicinity of Monterey, California. These nodes are clustered in four groups
representing tanks, troop carriers, airplanes, and helicopters.
3D Animation Architecture
OPNET Modeler and 3DNV work together as members of an HLA federation.
HLA (High-Level Architecture) is a protocol that allows two or more programs to
exchange data and run in time-step together.
Typically, you will also assign trajectories to mobile nodes, so that their
movement can be visualized. This is not a requirement for using 3DNV,
however.
Animation with 3DNV requires a network model with a terrain database and
nodes mapped to 3DNV entities.
4 Choose File > Save As and save the project in your default model directory as
<your_initials>_3dnv_tutorial.
The network model uses an elevation map of the Monterey region. A matching
terrain database must be specified. You will specify a terrain database in
OpenFlight format, which is the preferred type for 3DNV.
7 Click the Browse button and use the file browser to choose the file
<install_dir>\16.1.A\models\std\tutorial_req\module\3dnv\N36_45_0W121_30
_0.flt.
In most cases, you will need to add the 3DNV Mapping attribute to each site to
be displayed. A public attribute definition named 3DNV_Mapping comes with
OPNET Modeler. You can use this definition to add the 3DNV Mapping attribute
to most node models and to node and subnet instances.
You will now add a 3DNV Mapping extended attribute to each of the mobile
nodes in the model. You could do this by modifying the underlying node model,
but this requires OPNET Modeler and the ability to freely change node models
that might be shared by many users. Also, although a single node model is used
in this tutorial, it is much simpler to add an extended attribute to a set of nodes
without having to modify all of their models.
Procedure 9-4 Adding and Configuring the 3DNV Mapping Extended Attribute on
Each Mobile Node
The Manage 3DNV Entities and Associated Visualizations dialog box opens.
Figure 9-6 Manage 3DNV Entities and Associated Visualizations Dialog Box
Each node has a corresponding row in the table to the right. Because none of the
nodes have a 3DNV Mapping attribute yet, no values are shown in the table.
3 Under the Set 3DNV Mapping Attribute tab, choose Air - Plane - F-16 Falcon from
the Type pull-down menu.
A 3DNV Mapping extended attribute is added to each of the selected nodes, with
values based on the selected fields on the Set 3DNV Mapping Attribute page.
The F16 nodes will now look like F-16s in the 3DNV animation.
M113 nodes set Type to Land - Vehicle - M113 Armored Personnel Carrier
The network model is now configured for use with 3D Network Visualizer. Save it
and continue with the tutorial.
Planning mode lets you visualize node placement and movement from the
workspace, without running a simulation.
Procedure 9-5 Opening the Project and Starting the 3D Animation Software
2 In Windows, choose Start > Programs > OPNET 3D Network Visualizer 3.0.0 >
3DNV Communications 3.0.0.
3DNV Communications is the RTI that controls the transfer of data from
OPNET Modeler to 3DNV. It starts with no window. Instead, you should see an
icon in the Windows Tray. You can right-click on that icon to view information
about the HLA Federation.
3 In Windows, choose Start > Programs > OPNET 3D Network Visualizer 3.0.0 >
OPNET 3D Network Visualizer 3.0.0.
After a short delay, the 3D Network Visualizer window opens. At first, no terrain
or objects are displayed, as shown in Figure 9-10.
4 From the 3D Network Visualizer menu bar, choose File > Open > Terrain
A file browser opens with a list of available terrain configuration (.mtf) files.
These files specify various types of information needed by
3D Network Visualizer, including a reference to an OpenFlight terrain database.
This configuration file references the same terrain database specified earlier in
OPNET Modeler. 3D Network Visualizer displays the terrain.
Now you can select the node you want to watch in the animation. For this
tutorial, well follow one of the Black Hawk helicopters.
1 In 3D Network Visualizer, look at the Objects List Panel on the left-hand side of
the window.
You will see a treeview listing all of the nodes in the connected model.
Objects
List Panel
Black
Hawks
2 Right-click on the first Black Hawk object (UH60A_1) in the Objects List Panel and
choose Attach Tether in the pop-up menu.
The view mode is now tethered to the UH60A_1 object and will follow that object
if it moves. The entity name and view mode are listed in the Attachment Panel.
You can now see UH60A_1 in the 3D Network Visualizer window. It looks like a
helicopter, as specified by the DIS Entity Type attribute of the 3DNV Mapping
compound attribute (Air - Helicopter - UH-60A Black Hawk).
You should see a large blue circle in the center of the Black Hawk model, as well
as several others on the horizon. Each circle represents the location of an entity
and can be used to view information and perform right-click operations as in the
Objects List Panel.
If you move the cursor over the helicopters blue circle, you will see information
about the entity.
You can rotate the view around the associated tethered entity with the arrow
keys. For example, press the left-arrow key a few times to rotate the view to the
right and youll see two of the other Black Hawks.
Press the space bar to reset the viewpoint to its default position (in the case of
Tether, this is behind the entity, looking ahead).
You can use planning mode to help place nodes at desired points in the terrain.
As you move a node in the OPNET Modeler workspace, the animation view
changes correspondingly.
1 In OPNET Modeler, zoom in on the Black Hawk group and some of the surrounding
terrain.
The node moves in the 3D Network Visualizer window and the surrounding
landscape changes accordingly.
You will see several blue circles near UH60A_4. These represent the positions
of other nodes in the model. You can move the cursor near or over a circle to
display information about that object.
To see this, you must first add trajectories to the mobile nodes by editing their
Trajectory attributes. To save time here, you will use a scenario pre-configured
with four different trajectories.
This toggles 3D display off. The current scenario is disconnected from 3DNV
and all node objects disappear from the 3D Network Visualizer window.
A scenario that has been pre-configured with mobile node trajectories opens.
3 Connect the new scenario to 3DNV: choose 3DNV > Display 3D Network View.
To move the nodes automatically, you must use the OPNET Modeler time
controller. This will step through a specified time range, updating the position of
each mobile node at each time step.
1 In OPNET Modeler, choose View > Show Time Controller (or press Ctrl+Alt+T).
In your networks, you will need to set the time range and step size to useful values.
In this tutorial, however, the start and stop times have been preset to match the
duration of the mobile node trajectories. The time step needs some adjustment,
however.
2 Set the time controller for a smaller time step, to produce smoother-looking
animation:
2.3 Notice that the Loop checkbox is selected. This will cause the time controller
to loop repeatedly through the specified time range.
The time controller steps through its time range. At each time step, node
positions are updated in the OPNET Modeler workspace and
3D Network Visualizer shows the node movement between positions.
4 In the time controller, click the Pause ( ) button to stop the animation.
Move forward w
Move back s
Move right d
Move left a
Move up q, Ctrl + q
3DNV lets you view an animation from any location in or around the network
terrain. To get a different view of the node movement, change the animation
window to look down on the terrain.
1 Press the up arrow key repeatedly until you are looking straight down at the
helicopter.
2 Using the mouse wheel or the s key, zoom out until you can see all five
helicopters.
The time controller resumes stepping through its time range and you can see all
five helicopters moving over the terrain.
4 Let the animation run for a while, then click the Pause ( ) button to stop the
animation.
This overhead view will be useful later. 3D Network Visualizer lets you both
capture a view for reuse during the current run and also save sets of captured
views for use in later runs. A captured view includes the attached object, view
mode, observer location, and look direction.
1 In the Observer Views Panel of the 3D Network Visualizer window, click the Add
Current Observer View icon.
2 Double-click on the name of the captured view, type Overhead, and press
<Enter>.
3 In the Observer Views Panel, click on the Export All Views icon.
There are many other ways to view an animation. If you want, try moving the
observer and look direction for different views of the animation. You can also try
some shortcuts. For example:
Shift + left-click on a node makes that node the attached entity. (Press Space
to reset the attach position and orientation for a default view of the entity.)
Shift + left-click on the terrain teleports to that location. This changes the view
to a close-up of that location.
NoteThe functions of the navigation controls change in different view
modes. If you lose the attached node, press Space to return to the default
view for the current mode.
One interesting view is to attach to an object and press the left and right arrow
keys to orbit around the object.
This ends our look at using 3DNV in planning mode. Perform the following
procedure to disconnect the scenario and quit 3DNV.
The time controller closes and all nodes return to their starting positions.
2 In OPNET Modeler, choose 3DNV > Display 3D Network View to disconnect the
scenario.
3 From the 3D Network Visualizer menu bar, choose File > Exit and click Yes in the
confirmation dialog box.
4 Right-click on 3DNV Communications 3.0.0 in the Windows task bar and select
Shut Down All.
You can use the APIs in the 3D Network Visualizer Package to create custom
visualizations of other types of simulation data as well, such as:
To use simulation mode, you must first configure the network model for 3D
animation, as you did in the first part of this tutorial.
Next, specify the kinds of simulation data to visualize. OPNET Modeler provides
several utility objects that are pre-configured for certain kinds of simulation data.
The utility objects you will use in this tutorial are:
OPNET Modeler users can develop their own utility objects using the 3DNV
API, a extensive collection of functions that support custom 3D animation. You
can double-click on these utility objects to drill down to the process model and
examine the code used to generate the animation (primarily in the enter execs
and header block).
2 Scroll the palette tree till you see the 3DNV_Animations tree node, then expand
that node to display the content of the palette.
5 Drag an instance of the ovis_anim_pkstat object into the workspace and set its
attributes as follows:
Next, start the 3D animation software and prepare it to receive animation data
from a simulation.
1 In Windows, choose Start > Programs > OPNET 3D Network Visualizer 3.0.0 >
3DNV Communications 3.0.0.
2 In Windows, choose Start > Programs > OPNET 3D Network Visualizer 3.0.0 >
OPNET 3D Network Visualizer 3.0.0.
3 From the 3D Network Visualizer menu bar, choose File > Open > Terrain
Now prepare the OPNET Modeler simulation to send animation data to 3DNV.
2 Make sure the Use OPNET Simulation Debugger (ODB) checkbox is not
selected.
4 Make sure the selected Propagation model is not TIREM. If it is and you do not
have a TIREM license:
This tells the simulation to generate 3DNV data. The other 3DNV controls
become enabled.
All 3DNV data generated by the simulation via Ovis APIs will be recorded in this
file for later playback. This is independent of actually sending live 3DNV updates
to the 3D Network Visualizer during the simulation. This allows you to replay the
3DNV visualization afterwards from the graphical environment.
This tells the simulation to send generated animation data directly to the
3D Network Visualizer.
This tells the simulation to run at up to five times real-time speed. In other words,
the simulation will pace events so that the run takes about 6 minutes of clock
time (30 minutes of simulation time divided by the real-time ratio of 5).
Finally, run the simulation and view the animation in 3D Network Visualizer.
NoteIf the simulation and 3D Network Visualizer are running on the same
computer, they might run quite slowly. Typically, you should either run
OPNET Modeler and 3D Network Visualizer on different computers or capture
the simulation output and replay it in 3D Network Visualizer later (as you will do
in the next part of this tutorial).
For best results, quit all programs on your computer except those needed by this
tutorial.
After a delay, the simulation connects to 3DNV. (The delay will be longer the first
time the simulation is run, while OPNET Modeler compiles some of the models.)
2 After the node list appears, right-click on UH60A_3 in the Objects List Panel and
select Attach Tether.
Packet statistics for an object appear in associated text boxes around the entity. To
avoid an overly crowded and confusing display, these text boxes are not shown
initially. Instead, they are represented by small triangles near each entity. Moving
the cursor inside one of these triangles will display the information for that entity.
Clicking on a triangle toggles between displaying the information permanently or
only when the cursor is inside the triangle.
NoteYou might need to use the left or right arrow keys to rotate the view to
separate UH60A_3s information triangle from those of other entities.
The simulation time appears in the lower-left corner of the window. The simulation
time is updated when a packet is transmitted or received.
NoteUpdates to the animation display occur only when animation events are
generated by the simulation; for example, when packet broadcasts force node
position updates. As a result, updates occur at irregular intervals and the animation
can appear choppy at times.
3 After watching the animation for a while, you can switch to the overhead view you
saved; this provides a better view of the communication lines:
3.1 From the Observer Views Panel, click the Import and Replace Views icon.
The animation changes to the overhead view you saved earlier, showing
UH60A_3 and near-by objects.
4.1 In the Simulation Sequence dialog box, click the Close button.
4.3 From the 3D Network Visualizer menu bar, choose File > Exit and click Yes
in the confirmation dialog box.
Replaying 3D Animation
During the simulation all the 3DNV outputs were recorded in a 3DNV history file,
as well as sent out to the 3D Network Visualizer. The recorded history can be
played back later to show part or all of the 3D visualization.
Now you can play back the recorded animation and view it in
3D Network Visualizer.
1 In Windows, choose Start > Programs > OPNET 3D Network Visualizer 3.0.0 >
OPNET 3D Network Visualizer 3.0.0.
2 From the 3D Network Visualizer menu bar, choose File > Open > Terrain
5 Verify that the listed file matches the current scenario and click OK.
The treeview shows the Ovis entities and decorations that are defined after all
operations taking place during events at simulation time 0 have been applied.
At this point, none of the Ovis entities or decorations have been made known to
3D Network Visualizer. When this happens, any object with a checkmark will be
made known.
6 Uncheck all of the M1A2 tanks, F-16 planes, and M-113 armored carriers.
This creates appropriate Ovis entities for the five Black Hawk helicopters and
their associated entities.
8 After the node list appears, right-click on UH60A_3 in the Objects List Panel and
select Attach Tether.
As the time value increases, the corresponding Ovis changes for checked
objects are sent to the 3D Network Visualizer, exactly as happened in simulation
mode.
NoteAfter you stop the playback, 3D Network Visualizer will continue to display
animation until it catches up to the simulation time at which you paused the
playback.
The Ovis entities and decorations disappear from the 3D Network Visualizer.
Troubleshooting
This section provides solutions to some common problems that can occur when
using 3D Network Visualizer.
3D Network Visualizer no longer updates its display when nodes move in OPNET Modeler
Communications between OPNET Modeler and 3D Network Visualizer time out
after a period of disuse. To reestablish communications:
1) Disconnect the current scenario from 3DNV (in OPNET Modeler, choose
3DNV > Display 3D Network View).
While moving the observer, you lose sight of the attached object and cant find it again
Press Space to reset the view.
Summary
This tutorial has presented a quick introduction to 3DNV. You have seen how to:
For more information about using 3D animation in OPNET Modeler, see the
Animation Viewers documentation.