623 626














Open GL Super Bible:OpenGL on the 'Net:VRML















To access the contents, click the chapter and section titles.


Open GL Super Bible


(Publisher: Macmillan Computer Publishing)

Author(s): Waite group Press

ISBN: 1571690735

Publication Date: 08/01/96



function isIE4()
{
return( navigator.appName.indexOf("Microsoft") != -1 && (navigator.appVersion.charAt(0)==
'4')
); }
function
bookMarkit() {varurl="http://www.itknowledge.com/PSUser/EWBookMarks.html?url="+window.location+"&isbn=0";
parent.location.href=url;
//var win = window.open(url,"myitk");
//if(!isIE4())
// win.focus();

}

 




Previous
Table of Contents
Next




WebSpace
Silicon Graphics was naturally the first to have a fully compliant, commercially available VRML Web browser. WebSpace was its name, and it set the standard by which all other VRML browsers were to be compared. WebSpace was developed to run on SGIÅ‚s own workstations, but a third party, Template Graphics Software, has been allowed to develop a version for Microsoft Windows and other platforms. All versions of this browser now fully support the VRML 1.0 standard and make use of OpenGL to render the scenes.

Installation
WebSpace can be installed as a helper application in most WWW browsers. For installation instructions, see the README file for your browser. WebSpace loads VRML files with a .wrl extension as well as Open Inventor scene files with an .iv extension. In addition, the latest version of WebSpace from Template Graphics will automatically load .wrl files that have been compressed with gzip, a popular Internet file-compression format. This makes for substantially smaller files and thus faster loading.


WebSpace on CDA copy of Template Graphicsłs Windows version of WebSpace is available on this bookłs CD in the Chapter 20 subdirectory. The software and sample VRML scenes are courtesy of Silicon Graphics Inc. and Template Graphics Software. These files are provided as shareware. If you use this software for more than evaluation purposes, you should register your copy. See the README file for licensing information.

The Walk Viewer
There are two modes of operation for navigation in WebSpace. The first is the Walk Viewer, which lets you actually navigate through the model presented, such as a museum or architectural model. The second is the Examiner Viewer, which is used to examine objects in WebSpace, such as an airplane, tool, or piece of furniture. Youłll see both of these modes in action shortly.

Figure 20-2 shows WebSpace viewing a sample VRML scene in the Walk Viewer mode. This mode is used when the browser is being used to travel through a 3D scene. It could be a simple 3D terrain, an architectural view of a building, a shopping mall, or even a small city area (as shown).

Figure 20-2  WebSpace in the Walk Viewer mode

Detailed Use InstructionsThis chapter is an introduction to VRML and Virtual Reality on the Internet. We used WebSpace as our baseline to demonstrate the concepts of 3D Web navigation. For more detailed information on use and features of the WebSpace browser, see the README and help files that accompany the program.

Some objects in the scene may be hot-linked to other sites or to HTML documents, just like a 2D Web page. The controls at the bottom of the window are collectively called the Dashboard; they are used to navigate throughout the scene. The diamond on the far left is the Seek tool; it helps you rapidly navigate to a point of interest in the scene. To use the Seek Tool, simply click on it to activate the Seek mode and then click anywhere else in the scene. The navigator smoothly proceeds to that place without your having to use any of the other navigation tools.

The tool on the far right is an Arrow Pad that is used to slide the view of the scene vertically or horizontally. This view is only a translation along the x- or y-axis (side-to-side or up-and-down). The camera point of view is not tilted or rotated in any way.
Finally, in the center of the dashboard is the Joystickused to move forward and backward through the scene, turn left and right, and tilt the view up and down. Simply click on the joystick and drag it up or down to move forward or backwards, and left or right to twist the view to the left or right.

3D NavigationThe 3D interface of WebSpace may seem somewhat primitive to up-to-the-minute Internet users. Itłs reminiscent of a flight simulator or arcade game, and could use some improvement in its ease of use. You can expect dramatic improvements in the coming years as more browsers are introduced.

There is a red knob on the right side of the joystick, called the Tilt Knob, that is used to tilt the view up or down. Click on the Tilt Knob and drag it up or down to view the ceiling or floor, respectively. In Figure 20-3, the Tilt Knob is being used to look up at the top of some buildings.


Figure 20-3  Using the Tilt Knob to look “up" at the rooftops
The Examiner Viewer
The Examiner Viewer mode is for exploring an object, rather than traveling through a virtual scene. Figure 20-4 shows WebSpace examining a model of the first Kitty Hawk airplane. Imagine walking through a virtual museum in the Walk Viewer, then clicking on a small picture of the plane. When the browser switches to the Examiner mode, you get a closer look at the plane. In addition, there may be other hypertext links to a report about flight, or the Wright brothers.


Figure 20-4  Examiner Viewer
Youłll notice the Dashboard in Figure 20-4 looks similar to that of the Walk Viewer, but the joystick is now replaced by a Trackball and Thumbwheel. The Thumbwheel lets you move the object closer or farther away from the point of view. Click on the Thumbwheel and drag up to move the object farther away, or down to move the object closer. Figure 20-5 shows the Kitty Hawk airplane at a greater distance.


Figure 20-5  The Examiner Viewer with the object at a greater distance away from the viewer
With the Trackball you rotate the viewed object in any direction. Click anywhere on the Trackball, and drag it to spin the object being viewed. If you release the left mouse button while moving the mouse, the Trackball will continue to spin the principle object.




Previous
Table of Contents
Next














 


Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc.
All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement.












Wyszukiwarka