ParallelGraphics
Home  »  Developer Zone  »  Products  »  Cortona VRML Client  »  Using in HTML
Up to Cortona VRML Client

OBJECT and EMBED parameters 


Subscribe to Newsletter
 


Google Searchsite search:

 

%(domain)s %(domain)s
Install Cortona VRML Client!

Outline 3D

Try RobinZone!


Using in HTML
Scene size: 886bytes


To display a VRML world in a Web browser authors should use the EMBED or OBJECT (supported by Microsoft Internet Explorer) elements with the proper attributes in an HTML document.

 
Using EMBED tag
 
Using OBJECT tag
 
Automatic Installation of Cortona under Mozilla Firefox and Netscape Browser



Using EMBED tag

where:
 
SRC specifies the name of the VRML scene to be loaded.
 
TYPE MIME type (must be "model/vrml" for Cortona browser)
 
WIDTH, HEIGHT standard formatting attributes.
 
VRML_SPLASHSCREEN "TRUE" - turns on Cortona SplashScreen; "FALSE" - turns off.
 
VRML_DASHBOARD "TRUE" - turns on horizontal and vertical toolbars; "FALSE" - turns off.
 
VRML_BACKGROUND_COLOR "#rrggbb" specifies the background color of the 3D window (hexadecimal).
 
CONTEXTMENU "TRUE" - enables context menu in the 3D window; "FALSE" - disables.

See full list of properties



Using OBJECT tag
Internet Explorer can automatically download Cortona if it is not already installed. It gives the opportunity to reduce download size and choose Cortona as VRML viewer despite the fact that the other VRML browser is installed on the user's computer. This technology provides to developers the CAB file for HTML-based Internet installations of Cortona.

component CAB file: cortvrml.cab, size: 1.28MB

where:
 
CLASSID identifies the Cortona ActiveX control for the browser. The value must be entered exactly as shown.
 
CODEBASE CAB file with Cortona VRML Engine.
 
WIDTH, HEIGHT standard formatting attributes.
Params (properties):
 
SRC specifies the name of the VRML scene to be loaded.
 
VRML_SPLASHSCREEN "TRUE" - turns on Cortona SplashScreen; "FALSE" - turns off.
 
VRML_DASHBOARD "TRUE" - turns on horizontal and vertical toolbars; "FALSE" - turns off.
 
VRML_BACKGROUND_COLOR "#rrggbb" specifies the background color of the 3D window (hexadecimal).
 
CONTEXTMENU "TRUE" - enables context menu in the 3D window; "FALSE" - disables.

See full list of properties



Automatic Installation of Cortona under Mozilla Firefox and Netscape Browser
To install Cortona under Mozilla Firefox and Netscape Browser 8.x, the browser should call the downloadNow function from an HTML page:

After the installation procedure is completed, the downloadNow function invokes the on_load_cortvrml function that can be used to inform the user on the result of Cortona installation:

More information about the XPInstall technology is available at http://www.mozilla.org/catalog/architecture/xpinstall.


Last updated: Tue, 08 Jul 2008
© 2000-2008 ParallelGraphics. All rights reserved. Terms of use.