Live Distributed Objects

 

Using the AF Demo (Public Models)

 

Introduction

The LiveObjects Air Force (AF) Demo was created to show the XNA and .liveobject folder capabilities of the LiveObjects distribution to the Air Force in a mock "Battlefield Command and Control" scenario.  Please see the excellent video on the LiveObjects Codeplex Home page for a complete demonstration.  The demo uses MSN Virtual Earth maps (either road or aerial) with overlaid 3D models and a few other example .liveobjects, including a text box.  The original demo contains 3D models that are property of the Air Force which we are not able to distribute.  The available Public Models version of the demo contains models obtained from TurboSquid.  If you'd like to see the demo with the original models, and thus planes whose nomenclature actually match their models, please contact us.

 

Using the Demo (Single Host)

  1. Install the current LiveObjects distribution available on the Downloads tab of liveobjects.codeplex.com.  Be sure to install all prerequisites, including XNA Framework.
  2. Download the AF Demo (Public Models) from the same tab
  3. Extract the AF Demo .zip file, the resulting folder contains all of the .liveobjects that have been prepared and are used in the demo.  The public models that these LiveObjects point to are already included in the distribution under the \content folder.
  4. Open a command prompt with Administrator privileges (right click and select "Run as administrator").
  5. Execute the following in that command prompt, to launch the channels_server: "C:\liveobjects\bin\liveobjects.exe C:\liveobjects\examples\channels_server.liveobject".  You may also choose to launch the channels_server.liveobject that is contained in the AF Demo folder, as these are identical and simply launch the server listening on localhost.

Now you are ready to run through the demo.

  1. Double click on "xna_window_freestyle_shared_1.liveobject" to launch the XNA window.
  2. Drag the map_aerial or map_road LiveObjects onto that window to load an MSN Virtual Earth map.
  3. Double click on "FolderControl.liveobject" to launch the FolderControl window.
  4. Drag the shared_folder_1.liveobject onto the FolderControl window to load the shared folder that the XNA Window is looking at by default.
  5. Double click on "Folder 1" inside the FolderControl window to navigate inside the shared folder.  You should see the "VE Road Maps" or "VE Aerial Maps" that you've already loaded by dragging it into the XNA window.
  6. Click on the XNA window and use the cursor and scroll wheel to zoom in towards the Northeast of the United States.
  7. Drag the Scenario folder into the FolderControl window to load the bulk of the demo's objects.  You should see [Battle Space] appear in the top right of the window.  You can click on this and the rest of the folders that appear in order to view the same folder structure from the FolderControl window in the XNA window.  You can also click on individual objects to toggle them on/off.  At this point, all buildings ("Structures") are loaded, but only the "Enemy" vehicles appear.  The rest of the Scenario is contained inside the Pieces folder.
  8. Double click on the Pieces folder in Windows Explorer.
  9. Navigate to the Friendly folder in the FolderControl window (first, double click on Battle Space)
  10. Drag the "F - Air" and "F - Ground" folders to the FolderControl window.  An "Air" and "Ground" folder will appear inside FolderControl and a whole new set of models, representing the "Friendly" side in this conflict, will appear in the XNA window.
  11. Navigate inside Friendly\Air in the FolderControl window and drag the Bomber folder (from Pieces) there to add Friendly Bombers.
  12. Navigate inside Friendly\Air\Fighter and drag the "Fighters 1", "Fighters 2" and "Fighters 3" folders there to add the 3 additional Friendly Fighter squads.
  13. Go back to the AF Demo folder (navigate out of Pieces) and double click on shared_text_1.liveobject.  Type text in that box and see a communication box appear near NYC with that text.
  14. Double click on building_1_publisher.liveobject and zoom in on the XNA window to the Enemy Structures (east of Allentown, PA).  Change the color of the northeast Enemy building by using the controls on the building_1_publisher window.


Using More Hosts

LiveObjects inherent power is in the distributed nature.  You can connect to the host which is running the channel_server by editing the communication_c.liveobject registry object (as described in the Configuring Network Communication section of the Documentation) under C:\liveobjects\registry\011E83FA6A9F426993BB8EF26FF7D7B8 on each additional host.  After configuring the communication_c, simply launch xna_window_freestyle_shared_1.liveobject on that host.  All changes made at either host will appear on the other's screen.  Each host can itself choose to toggle on/off any particular object to customize its view.

 

Last edited Oct 21, 2010 at 10:59 PM by mikeryan, version 6

Comments

No comments yet.