| 1 |
X3DViewpointNode : X3DBindableNode { |
| 2 |
SFBool [in,out] autoCenterOfRotation FALSE |
| 3 |
doc: """ |
| 4 |
When @true, the center of rotation is automatically calculated looking at the middle of scene bounding box. The @link(CenterOfRotation) value is ignored then. |
| 5 |
|
| 6 |
This field is a Castle Game Engine extension of the X3D standard. The default value (@false) makes behavior compatible with X3D standard. Note that, in contrast, @link(TCastleExamineNavigation.AutoCenterOfRotation) default is @true -- because TCastleExamineNavigation doesn't have to match X3D standard, and the default @true makes it work out-of-the-box on more scenes. |
| 7 |
""" |
| 8 |
SFVec3f [in,out] centerOfRotation 0 0 0 |
| 9 |
range: (-Inf,Inf) |
| 10 |
SFString [in,out] description "" |
| 11 |
change: chNone |
| 12 |
SFBool [in,out] jump TRUE |
| 13 |
SFRotation [in,out] orientation 0 0 1 0 |
| 14 |
range: [-1,1],(-Inf,Inf) |
| 15 |
doc: Orientation of the viewpoint, expressed as rotation to transform default direction and up (DefaultX3DCameraDirection, DefaultX3DCameraUp). |
| 16 |
SFBool [in,out] retainUserOffsets FALSE |
| 17 |
|
| 18 |
# CASTLE GAME ENGINE EXTENSIONS: |
| 19 |
SFMatrix4f [out] cameraMatrix |
| 20 |
SFMatrix4f [out] cameraInverseMatrix |
| 21 |
SFMatrix3f [out] cameraRotationMatrix |
| 22 |
SFMatrix3f [out] cameraRotationInverseMatrix |
| 23 |
SFBool [in,out] cameraMatrixSendAlsoOnOffscreenRendering FALSE |
| 24 |
MFVec3f [in,out] direction [] |
| 25 |
MFVec3f [in,out] up [] |
| 26 |
SFVec3f [in,out] gravityUp 0 1 0 |
| 27 |
doc: Specify the gravity vector explicitly. See https://castle-engine.io/x3d_implementation_navigation_extensions.php . @deprecated |
| 28 |
SFBool [in,out] gravityTransform TRUE |
| 29 |
doc: Should the gravity vector be affected by the viewpoint transformation, that is by the @link(TTransformNode) instances that contain this TAbstractViewpointNode. |
| 30 |
} |
| 31 |
|
| 32 |
Billboard : X3DGroupingNode { |
| 33 |
SFVec3f [in,out] axisOfRotation 0 1 0 |
| 34 |
range: (-Inf,Inf) |
| 35 |
doc: Axis around which the billboard rotates to face the camera. Can be zero to rotate freely. |
| 36 |
} |
| 37 |
|
| 38 |
Collision : X3DGroupingNode, X3DSensorNode { |
| 39 |
SFBool [in,out] enabled TRUE |
| 40 |
change: chEverything |
| 41 |
SFTime [out] collideTime |
| 42 |
SFBool [out] isActive |
| 43 |
SFNode [] proxy NULL |
| 44 |
range: X3DChildNode |
| 45 |
change: chEverything |
| 46 |
} |
| 47 |
|
| 48 |
LOD : X3DGroupingNode { |
| 49 |
SFInt32 [out] level_changed |
| 50 |
SFVec3f [] center 0 0 0 |
| 51 |
range: (-Inf,Inf) |
| 52 |
# Just redisplay, and new appropriate LOD children will be displayed |
| 53 |
change: chRedisplay |
| 54 |
SFBool [] forceTransitions FALSE |
| 55 |
MFFloat [] range [] |
| 56 |
range: [0,Inf) or -1 |
| 57 |
# Just redisplay, and new appropriate LOD children will be displayed |
| 58 |
change: chRedisplay |
| 59 |
} |
| 60 |
|
| 61 |
NavigationInfo : X3DBindableNode { |
| 62 |
MFFloat [in,out] avatarSize [0.25, 1.6, 0.75] |
| 63 |
range: [0,Inf) |
| 64 |
change: chNavigationInfo |
| 65 |
SFBool [in,out] headlight TRUE |
| 66 |
change: chHeadLightOn |
| 67 |
doc: Control the headlight. @deprecated Instead of this, control the headlight by placing light component (like TCastleDirectionalLight or TCastleSpotLight) as child of TCastleCamera. |
| 68 |
SFFloat [in,out] speed 1.0 |
| 69 |
range: [0,Inf) |
| 70 |
change: chNavigationInfo |
| 71 |
doc: Movement speed. @deprecated Instead of this, control the move speed using @link(TCastleWalkNavigation.MoveSpeed). |
| 72 |
SFTime [in,out] transitionTime 1.0 |
| 73 |
range: [0, Inf) |
| 74 |
MFString [in,out] transitionType ["LINEAR"] |
| 75 |
range: ["TELEPORT","LINEAR","ANIMATE",...] |
| 76 |
MFString [in,out] type ["EXAMINE", "ANY"] |
| 77 |
# Note: default value was ["WALK", "ANY"] in VRML 97. |
| 78 |
# X3D changed default value. We follow newer X3D. |
| 79 |
range: ["ANY","WALK","EXAMINE","FLY","LOOKAT","NONE",...] |
| 80 |
change: chNavigationInfo |
| 81 |
SFFloat [in,out] visibilityLimit 0.0 |
| 82 |
range: [0,Inf) |
| 83 |
SFBool [out] transitionComplete |
| 84 |
SFString [in,out] blendingSort "DEFAULT" |
| 85 |
range: ["AUTO", "NONE", "2D", "3D", "3D_ORIGIN", "3D_GROUND"] |
| 86 |
enumerated-type: TShapeSort ShapeSortNames sortAuto |
| 87 |
change: chRedisplay |
| 88 |
doc: """ |
| 89 |
Best blending sort for this scene. It may be honored by some model viewers, e.g. castle-model-viewer honors this to display currently loaded scene. |
| 90 |
|
| 91 |
Note: In CGE applications, the blending sort is determined by @link(TCastleViewport.BlendingSort). It is up to each particular application if, and how, to honor this value on @className. In general, CGE applications may display multiple models (multiple TCastleScene) and there's not necessarily any scene that is "central" or "main", so most CGE applications will just ignore this, at least on most loaded models. |
| 92 |
|
| 93 |
If an application wants to honor this property of @className, then set @link(TCastleViewport.BlendingSort) based on the bound navigation info node. For example like this: |
| 94 |
|
| 95 |
@longCode(# |
| 96 |
if (Scene.NavigationInfoStack.Top <> nil) and |
| 97 |
(Scene.NavigationInfoStack.Top.BlendingSort <> sortAuto) then |
| 98 |
MainViewport.BlendingSort := |
| 99 |
Scene.NavigationInfoStack.Top.BlendingSort; |
| 100 |
#) |
| 101 |
|
| 102 |
The value sortAuto (specified as string "AUTO" in X3D file) |
| 103 |
says to not change @link(TCastleViewport.BlendingSort). |
| 104 |
The @link(TCastleViewport.BlendingSort) may be, in turn, also sortAuto, |
| 105 |
which means that we will detect whether to use sort2D or sort3D depending |
| 106 |
on camera. |
| 107 |
""" |
| 108 |
SFBool [] timeOriginAtLoad FALSE |
| 109 |
doc: @deprecated When this is @true, world time @link(TCastleSceneCore.Time) equals 0 when the scene is loaded. Otherwise (when this is @false, by default) world time 0 means "January 1, 1970" and when the scene is loaded the world time is a big number (and should only be processed as Double, not Single floating-point value). See https://castle-engine.io/x3d_time_origin_considered_uncomfortable.php for discussion. |
| 110 |
SFFloat [in,out] headBobbing TCastleWalkNavigation.DefaultHeadBobbing |
| 111 |
range: [0,1) |
| 112 |
change: chNavigationInfo |
| 113 |
doc: Intensity of head bobbing. 0 means to not do head bobbing. Must be >= 0 and < 1, but sensible values are close to 0 (while any values < 1 are technically allowed, but they make the head bobbing effect crazily exaggerated). See https://castle-engine.io/x3d_implementation_navigation_extensions.php#section_ext_head_bobbing . |
| 114 |
SFFloat [in,out] headBobbingTime TCastleWalkNavigation.DefaultHeadBobbingTime |
| 115 |
range: (0,Inf) |
| 116 |
change: chNavigationInfo |
| 117 |
doc: How much time passes to make full head bobbing sequence (camera swing up and then down back to original height). See https://castle-engine.io/x3d_implementation_navigation_extensions.php#section_ext_head_bobbing . |
| 118 |
SFNode [in,out] headlightNode NULL |
| 119 |
range: X3DLightNode |
| 120 |
doc: Headlight to shine, if @link(Headlight) is @true. See https://castle-engine.io/x3d_implementation_navigation_extensions.php#section_ext_headlight . @deprecated Instead of this, control the headlight by placing light component (like TCastleDirectionalLight or TCastleSpotLight) as child of TCastleCamera. |
| 121 |
} |
| 122 |
|
| 123 |
OrthoViewpoint : X3DViewpointNode { |
| 124 |
MFFloat [in,out] fieldOfView [-1, -1, 1, 1] |
| 125 |
range: (-Inf,Inf) |
| 126 |
change: chViewpointProjection |
| 127 |
SFVec3f [in,out] position 0 0 10 |
| 128 |
range: (-Inf,Inf) |
| 129 |
change: chViewpointVectors |
| 130 |
} |
| 131 |
|
| 132 |
Viewpoint : X3DViewpointNode { |
| 133 |
SFFloat [in,out] fieldOfView Pi/4 |
| 134 |
range: (0,Pi) |
| 135 |
change: chViewpointProjection |
| 136 |
SFVec3f [in,out] position 0 0 10 |
| 137 |
range: (-Inf,Inf) |
| 138 |
change: chViewpointVectors |
| 139 |
|
| 140 |
# CASTLE GAME ENGINE EXTENSIONS: |
| 141 |
SFBool [in,out] fieldOfViewForceVertical FALSE |
| 142 |
change: chViewpointProjection |
| 143 |
} |
| 144 |
|
| 145 |
ViewpointGroup : X3DChildNode { |
| 146 |
SFVec3f [in,out] center 0 0 0 |
| 147 |
range: (-Inf,Inf) |
| 148 |
MFNode [in,out] children [] |
| 149 |
range: X3DViewpointNode | ViewpointGroup |
| 150 |
SFString [in,out] description "" |
| 151 |
change: chNone |
| 152 |
SFBool [in,out] displayed TRUE |
| 153 |
SFBool [in,out] retainUserOffsets FALSE |
| 154 |
SFVec3f [in,out] size 0 0 0 |
| 155 |
range: (-Inf,Inf) |
| 156 |
} |