Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
InventorApplication example

Use RemoteViz with an Open Inventor viewer component.

This example shows you how to use RemoteViz with an Open Inventor viewer component. The scene graph is shared between the viewer component and the RemoteViz application.

Run the example:

  1. Go to "OIVHOME/examples/bin/OIVARCH/RemoteViz" and run the executable "InventorApplicationRenderingService".
  2. Go to "OIVHOME/examples/source/RemoteViz/InventorApplication/Clients/HTML5" and open the "index.html" file inside a web browser.

Note: In this example, the RemoteViz service uses the localhost IP address (127.0.0.1) by default. To run it on a web server, start the example by passing the service IP address and port as arguments (ex : InventorApplicationRenderingService 192.168.0.1 8082) and edit the file "index.html" (client side) to modify the IP address and the port.

FILES:

    • RemoteViz/InventorApplication/InventorApplicationRenderingService/include/InventorApplicationServiceListener.h
    • RemoteViz/InventorApplication/InventorApplicationRenderingService/src/InventorApplicationServiceListener.cxx
    • RemoteViz/InventorApplication/InventorApplicationRenderingService/src/main.cxx
    • RemoteViz/InventorApplication/Clients/HTML5/index.html