12.07.2015 Views

Creating Custom 3D Network Visualizations with OPNET Modeler®

Creating Custom 3D Network Visualizations with OPNET Modeler®

Creating Custom 3D Network Visualizations with OPNET Modeler®

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1588 <strong>Creating</strong> <strong>Custom</strong> <strong>3D</strong> <strong>Network</strong> <strong>Visualizations</strong> <strong>with</strong> <strong>OPNET</strong> Modeler®12. Edit the Exit Executives of the set_entity state as follows:Deleted:If you don’t wish to actually type this code, here it is in a form can be copied and pasted into theeditor:entity = Ovis_Entity_Create ("top.Monterrey.bradley", OPC_NIL, OPC_NIL);Ovis_Entity_Animation_Set (entity, OPC_NIL, OvisC_Aggregation_Entity,bradley_dis, OvisC_DIS_Force_Friendly, OvisC_DIS_DR_Static);Ovis_Entity_Animation_Enable (entity);Ovis_Updates_Flush ();This creates an entity associated <strong>with</strong> the top.Monterrey.bradley node, then sets the entityanimation information, such as its DIS type (to have an appropriate <strong>3D</strong> model). Once theinformation is set, we enable the animation and force the information to be sent to the Visualizer.Decoupling the setting from the update allows you to create a large set of entities then perform oneupdate for all of them.13. Click on the File menu. Note that there isn’t a ‘Save’ menu entry, but instead a ‘Commit’ one(associated <strong>with</strong> the Ctrl-S shortcut). Starting in 14.5, saving the changes no longerautomatically close the associated editor. This way you can regularly save your editing whichpushes the data back into the model, and keep editors around to easily copy/paste data. You willstill need to save the whole model from the Process Model editor’s File/Save menu to have yourchanges written to disk.You can use the Close Edit Pad after Saving preference to revert back to the pre-14.5 behaviorof closing when saving.14. Select Commit to push the changes back to the model stored in memory.You can leave the editor open. It will be closed automatically when you close the model.Once the entity is in place, we want to have a translucent sphere displayed around it and movingalong <strong>with</strong> it. This is convenient if you intend to look at the <strong>3D</strong> scene from far away where theentities might not be visible anymore.15. Edit the Exit Executive of the set_sphere state as follows:Formatted: Bullets and NumberingOvis_<strong>3D</strong>_Position_Entity_Set (&pos, entity);CONFIDENTIAL – RESTRICTED ACCESS: This information may not be disclosed, copied, or transmitted in any format <strong>with</strong>out the prior written consent of <strong>OPNET</strong> Technologies, Inc.© 2010 <strong>OPNET</strong> Technologies, Inc.Page 9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!