Figure 14-1 Visionary Viewer in a Container Application
For a complete C++ example, see the sample source code in the ViewerApp directory on the Visionary installation CD. Launching in a Web Browser You can use the Visionary Viewer control in any Web browser that supports ActiveX. Figure 14-1 shows Visionary Viewer in a Web browser.
Figure 14-2 Visionary Viewer in a Web Browser
When you publish a Visionary world, you can generate a sample HTML page to test your Visionary world in a Web browser. The following code is an example of an HTML page for Microsoft Internet Explorer that calls Visionary Viewer using VBScript:
1. Create the object definition for Visionary Viewer. If you do not have software to create the object definition, you can download the Microsoft ActiveX Control Pad at no cost from http://www.microsoft.com.
2. After you have created the object definition, you can write an HTML page using any scripting language to load the control.