WebDevelopersJournal.comTips on Web Page Design, HTML and Graphics
SITE SEARCH
Newsletters
Java/Open Source Daily



Jobs at webdeveloper.com

Resources By Subject
Technical
Graphical
Authoring
Business
WDJ resources
Archive

internet.com

internet.commerce
  • Partner With Us
















Developer Channel


Find a web host with:
CGI Access DB Support Telnet Access
NT Servers UNIX Servers



Semi-automatic?

JavaScript
JavaScript Helper:
Meet Paige Turner, the least geeky geek we've ever come across.

Variables and Operators Explained:
First of a three part guide to JavaScript basics.

Controlling Forms:
Enhance your HTML forms with a touch of JS.

DHTML:
Forget how it works, let's see some in action!


Navinfo

by Mike Hurwicz

The NavInfo node tells the browser:

  • What type of navigation to allow
  • If the user can turn on a "headlight"
  • How far the user can see
  • How fast the user can move
  • The size of the virtual user (the "avatar"). This is required to detect collisions, for instance.
  • How close the user can get to something before colliding with it
  • How high above the terrain the avatar is.
  • How high the avatar can step.
  • The size of the NavInfo helper object in the 3DS MAX viewports. (Does not affect the VRML file.)


In the screen shot below, the NavInfo icon has been placed, and the parameters to be set appear in the rollout to the right.

In case you can't read the parameters clearly in the screen shot:

The navigation type is "FLY".

The "headlight" box is not checked.

The Visibility Limit is 1000.

Speed is 3.0.

Avatar Size is:

Collision: 0.25
Terrain: 1.6
Step Height: 0.75

Icon Size is 144.605

The meanings of these parameters are explained below.

==========

Here's a world with a NavInfo similar to the above, but with the headlight enabled. It's a very simple world, consisting merely of Phredd the Fish (shown above). There were no MAX lights in this scene. If you navigate or rotate Phredd, you will see that the MAX default light is not always sufficient to light a simple scene.

==========

TYPE

The Type parameter specifies what kind of navigation and movement you allow in your world: WALK, EXAMINE, FLY, NONE. The NavInfo helper does not allow you to specify that multiple types of navigation are allowed. However, you can edit the WRL file manually to include multiple navigation types, as shown here:

DEF NavInfo01 NavigationInfo {

avatarSize [0.25, 1.6, 0.75]
headlight FALSE
speed 3
type ["EXAMINE", "FLY", "WALK"]

}

==========

HEADLIGHT

The Headlight aims a directional light in the direction the user is looking. It's generally best to disable this and put in your own lights, because the headlight will not always do a great job of lighting your world. On the other hand, if you don't put in any of your own lights, be sure to enable the Headlight, or your world will be black. Don't leave the Headlight enabled if you put in your own lights, as the world may go black when users press Headlight, which is confusing and disconcerting.

Note: According to the VRML 97 Specification, Headlight should determine whether or not the user can turn on a headlight. In reality, with Cosmo Player 2.1.1, it merely determines whether the headlight is on initially by default. Even though the Headlight parameter is FALSE in the VRML file, the user can still turn on a headlight.

==========

VISIBILITY LIMIT

The Visibility Limit determines how close objects must be to the user before they come into the user's field of view. If Visibility Limit is set to zero, the user will see everything in the scene.

==========

SPEED

The default is 1. A higher speed is usually better. Experiment with values from 3 to 5.

==========

AVATAR SIZE

The avatarSize parameter is used primarily for collision detection.

==========

COLLISION

The distance at which a collision is detected between the avatar and an object.

==========

TERRAIN The avatar's height above the surface of the ground.

==========

STEP HEIGHT The height of the highest object that a user can step over without a collision.

Suits PonytailsPropheadsContact WDJDiscussWeb AudioSearch


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers