|
|
![]() |
|
by Mike Hurwicz The NavInfo node tells the browser:
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:
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 {
} ========== 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 | Ponytails | Propheads | Contact WDJ | Discuss | Web Audio | Search |