public class SoVRMLFog extends SoVRMLNode
SoVRMLFog node provides a way to simulate atmospheric effects.
<font color="#0000FF">NOTE:</font> This class does not exist in Open Inventor 10.0 and later.
This section describes the expected behavior of the node in a conforming VRML97 browser application. In some cases, the application is responsible for implementing portions of the expected behavior. Open Inventor viewer classes and IVF classes implement some of the application behaviors.
This section may reference portions of the VRML97 specification that are not present in this help file. The complete VRML97 spec is available at
SoVRMLFog node provides a way to simulate atmospheric effects by blending objects with the color specified by the
color field based on the objects' distances from the viewer. The distances are calculated in the coordinate space of the
SoVRMLFog node. The
visibilityRange specifies the distance (in the
SoVRMLFog node's coordinate space) at which objects are totally obscured by the fog. Objects located
visibilityRange meters or more away from the viewer are drawn with a constant color of
color. Objects very close to the viewer are blended very little with the fog
visibilityRange of 0.0 or less disables the
SoVRMLFog node. Note that
visibilityRange is affected by the scaling transformations of the
SoVRMLFog node's parents - translations and rotations have no affect on
SoVRMLFog nodes are bindable children nodes and thus there exists an
SoVRMLFog stack, in which the top-most
SoVRMLFog node on the stack is currently active. To push an
SoVRMLFog node onto the top of the stack, a true value is sent to the set_bind eventIn. Once active, the
SoVRMLFog is then bound to the browser's view. A false value of set_bind pops the
SoVRMLFog from the stack and unbinds it from the browser viewer. See "Concepts - Bindable Children
Nodes" for more details on the
fogType field controls how much of the fog color is blended with the object as a function of distance. If
fogType is "LINEAR" (the default), then the amount of blending is a linear function of the distance, resulting in a depth cuing effect. If
fogType is "EXPONENTIAL" then an exponential increase in blending should be used, resulting in a more natural fog appearance.
For best visual results, the
SoVRMLBackground node (which is unaffected by the
SoVRMLFog node) should be the same color as the fog node. The
SoVRMLFog node can also be used in conjunction with the visibilityLimit field of
SoVRMLNavigationInfo node to provide a smooth fade out of objects as they approach the far clipping plane.
See the section "Concepts - Lighting Model" for details on lighting calculations.
|color||1 1 1|
|Modifier and Type||Field and Description|
|Constructor and Description|
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
Generated on December 18, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com