X3D
type: NamedIndividual
has head: head
has scene: Scene
profile: Immersive
version: 3.0
no namespace schema location: https://www.web3d.org/specifications/x3d-3.0.xsd

meta 1 1
type: NamedIndividual
type: meta
has parent: head
content: ShipIslandAutoColor.x3d
name: title

meta 1 2
type: NamedIndividual
type: meta
has parent: head
content: Manually derived terrain and bathymetry offshore Ship Island, MS.
name: description

meta 1 3
type: NamedIndividual
type: meta
has parent: head
content: Scripts by Don Brutzman; Scene and Data Jeffrey Weekley
name: creator

meta 1 4
type: NamedIndividual
type: meta
has parent: head
content: 30 October 2001
name: created

meta 1 5
type: NamedIndividual
type: meta
has parent: head
content: 28 January 2024
name: modified

meta 1 6
type: NamedIndividual
type: meta
has parent: head
content: ShipIslandSatellite1.jpg
name: photograph

meta 1 7
type: NamedIndividual
type: meta
has parent: head
content: ShipIslandSatellite1Colored.jpg
name: photograph

meta 1 8
type: NamedIndividual
type: meta
has parent: head
content: ShipIslandSatellite2.jpg
name: photograph

meta 1 9
type: NamedIndividual
type: meta
has parent: head
content: ShipIslandModelPanorama.gif
name: Image

meta 1 10
type: NamedIndividual
type: meta
has parent: head
content: GuisMap1.pdf
name: map

meta 1 11
type: NamedIndividual
type: meta
has parent: head
content: https://www.web3d.org/x3d/content/examples/Savage/Locations/ShipIslandMississippi/ShipIslandAutoColor.x3d
name: identifier

meta 1 12
type: NamedIndividual
type: meta
has parent: head
content: X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit
name: generator

meta 1 13
type: NamedIndividual
type: meta
has parent: head
content: ../../license.html
name: license

ShipIslandAutoColor.x3d
description: Manually derived terrain and bathymetry offshore Ship Island, MS.
creator: Scripts by Don Brutzman; Scene and Data Jeffrey Weekley
created: 30 October 2001
modified: 28 January 2024
image: ShipIslandModelPanorama.gif
generator: X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit
license: ../../license.html

WorldInfo 2 1
type: NamedIndividual
type: WorldInfo
has parent: Scene
title: ShipIslandAutoColor.x3d

ExternProtoDeclare 2 2
type: NamedIndividual
type: ExternProtoDeclare
has parent: Scene
has field: field 2 2 1
has field: field 2 2 2
has field: field 2 2 3
has field: field 2 2 4
has field: field 2 2 5
has field: field 2 2 6
appinfo: ViewPositionOrientation provides provides console output of local position and orientation as user navigates
name: ViewPositionOrientation
url: "../../../Savage/Tools/Authoring/ViewPositionOrientationPrototype.x3d#ViewPositionOrientation" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/ViewPositionOrientationPrototype.x3d#ViewPositionOrientation" "../../../Savage/Tools/Authoring/ViewPositionOrientationPrototype.wrl#ViewPositionOrientation" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/ViewPositionOrientationPrototype.wrl#ViewPositionOrientation"

field 2 2 1
type: NamedIndividual
type: field
has parent: ExternProtoDeclare 2 2
access type: inputOutput
appinfo: Whether or not ViewPositionOrientation sends output to console.
name: enabled
type: SFBool

field 2 2 2
type: NamedIndividual
type: field
has parent: ExternProtoDeclare 2 2
access type: initializeOnly
appinfo: Output internal trace messages for debugging this node - developer use only can be ignored.
name: traceEnabled
type: SFBool

field 2 2 3
type: NamedIndividual
type: field
has parent: ExternProtoDeclare 2 2
access type: inputOnly
appinfo: Ability to turn output tracing on/off at runtime.
name: set_traceEnabled
type: SFBool

field 2 2 4
type: NamedIndividual
type: field
has parent: ExternProtoDeclare 2 2
access type: outputOnly
appinfo: Output local position.
name: position_changed
type: SFVec3f

field 2 2 5
type: NamedIndividual
type: field
has parent: ExternProtoDeclare 2 2
access type: outputOnly
appinfo: Output local orientation.
name: orientation_changed
type: SFRotation

field 2 2 6
type: NamedIndividual
type: field
has parent: ExternProtoDeclare 2 2
access type: outputOnly
appinfo: MFString value of new Viewpoint
name: outputViewpointString
type: MFString

ConsoleOutputViewPositionOrientation
type: NamedIndividual
type: ProtoInstance
has parent: Scene
has field value: fieldValue 2 3 1
DEF: ConsoleOutputViewPositionOrientation
name: ViewPositionOrientation

fieldValue 2 3 1
type: NamedIndividual
type: fieldValue
has parent: ConsoleOutputViewPositionOrientation
name: enabled
value: false

Background 2 4
type: NamedIndividual
type: Background
has parent: Scene
ground color: 0.2
ground color: 0.5
sky color: 0.4
sky color: 1

DirectionalLight 2 5
type: NamedIndividual
type: DirectionalLight
has parent: Scene
direction: 0
direction: -1

NavigationInfo 2 6
type: NamedIndividual
type: NavigationInfo
has parent: Scene
avatar size: 50
speed: 100
type: "EXAMINE" "WALK" "FLY" "ANY"
visibility limit: 7500

Transform 2 7
type: NamedIndividual
type: Transform
has parent: Scene
has children: Viewpoint 2 7 1
rotation: 0
rotation: 1
rotation: -1.57
translation: -2000
translation: 1000
translation: 2464

Viewpoint 2 7 1
type: NamedIndividual
type: Viewpoint
has parent: Transform 2 7
description: ShipIsland
orientation: 1
orientation: 0
orientation: -0.3

Switch 2 8
type: NamedIndividual
type: Switch
has parent: Scene
has children: Group 2 8 1
has children: Shape 2 8 2
which choice: 0

Transform 2 8 1 1
type: NamedIndividual
type: Transform
has parent: Group 2 8 1
has children: Shape 2 8 1 1 1
has children: CalculateColorSchemeMEDAL
rotation: 0
rotation: 1
rotation: 3.14
translation: 5970
translation: 0
translation: 2388

BathymetryGrid
type: NamedIndividual
type: ElevationGrid
has parent: Shape 2 8 1 1 1
has color: BathymetryGridColorNode
DEF: BathymetryGrid
crease angle: 3.14
height: -50.0
height: -6.0
height: -2.0
height: -1.0
height: 0.5
height: -3.5
height: 1.0
height: 2.0
height: 3.0
height: 4.0
height: 0.0
height: -4.0
height: 2.3
height: -3.0
height: -0.5
height: -0.3
x dimension: 250
x spacing: 23.88
z dimension: 100
z spacing: 23.88

BathymetryGridColorNode
type: NamedIndividual
type: Color
has parent: BathymetryGrid
DEF: BathymetryGridColorNode

Material 2 8 1 1 1 2 1
type: NamedIndividual
type: Material
has parent: Appearance 2 8 1 1 1 2
diffuse color: 0
diffuse color: 0.25

CalculateColorSchemeMEDAL
type: NamedIndividual
type: Script
has parent: Transform 2 8 1 1
has field: field 2 8 1 1 2 1
has field: field 2 8 1 1 2 2
has field: field 2 8 1 1 2 3
has field: field 2 8 1 1 2 4
DEF: CalculateColorSchemeMEDAL
source code: ecmascript: function initialize () { totalHeights=heightValues.length; heightValuesHold = new MFFloat (0); // grows to fit as values are appended // Browser.println ('totalHeights=heightValues.length=' + totalHeights); // this depth band defined to match fathoms to 60 feet, then 10' increments, doesn't match MEDAL depthBand = new MFFloat (4, 3, 2, 1, 0.5, 0,-0.5,-1,-2,-3,-4,-5,-6,-50,-100); if (inputUnits == 'feet') { for ( index = 0; index < totalHeights ; index++ ) { // 1 meter = 39.3 inches heightValuesHold[index] = heightValues[index] * (12.0 / 39.3); } heightValuesOutput = heightValuesHold; } else { for ( index = 0; index < depthBand.length ; index++ ) { // 1 meter = 39.3 inches depthBand[index] *= (39.31 / 0.2); } heightValuesOutput = heightValues; } //Browser.println ('heightValues, depthBand initialized'); brown = new SFColor (0.2, 0.2, 0); white = new SFColor (1, 1, 1); lightbrown = new SFColor (0.6, 0.6, 0.1); orange = new SFColor (1, .529, 0); yellow = new SFColor (1, 1, 0.6); green = new SFColor (0, 1, 0); olive = new SFColor (0.2, 0.6, 0.2); blue = new SFColor (0, 0, 1); magenta = new SFColor (1, 0, 1); maroon = new SFColor (0.561, 0, 0.322); tan = new SFColor (0.871, 0.721, 0.529); seaGreen = new SFColor (0.322, 0.584, 0.517); slateBlue = new SFColor (0.494, 0.533, 0.671); navyBlue = new SFColor (0.137, 0.137, 0.459); grey = new SFColor (0.5, 0.5, 0.5); slateGrey = new SFColor (0.439, 0.502, 0.565); skyBlue = new SFColor (0.6, 0.6, 1.0); cyan = new SFColor (0, 1, 1); black = new SFColor (0.1, 0.1, 0.1); colorValuesOutput = new MFColor (); // array gets dynamically expanded for ( index = 0; index < totalHeights ; index++ ) { if (heightValues[index] > depthBand[0]) colorValuesOutput [index] = brown; else if (heightValues[index] > depthBand[1]) colorValuesOutput [index] = olive; else if (heightValues[index] > depthBand[2]) colorValuesOutput [index] = lightbrown; else if (heightValues[index] > depthBand[3]) colorValuesOutput [index] = orange; else if (heig…

field 2 8 1 1 2 1
type: NamedIndividual
type: field
has parent: CalculateColorSchemeMEDAL
access type: initializeOnly
name: inputUnits
type: SFString
value: feet

field 2 8 1 1 2 2
type: NamedIndividual
type: field
has parent: CalculateColorSchemeMEDAL
access type: initializeOnly
name: heightValues
type: MFFloat
value: -50.0
value: -6.0
value: -2.0
value: -1.0
value: 0.5
value: -3.5
value: 1.0
value: 2.0
value: 3.0
value: 4.0
value: 0.0
value: -4.0
value: 2.3
value: -3.0
value: -0.5
value: -0.3
value: -100.0

field 2 8 1 1 2 3
type: NamedIndividual
type: field
has parent: CalculateColorSchemeMEDAL
access type: outputOnly
name: heightValuesOutput
type: MFFloat

field 2 8 1 1 2 4
type: NamedIndividual
type: field
has parent: CalculateColorSchemeMEDAL
access type: outputOnly
name: colorValuesOutput
type: MFColor

Transform 2 8 1 2
type: NamedIndividual
type: Transform
has parent: Group 2 8 1
has children: GridXZ 20x20Fixed
scale: 250
translation: 2500
translation: 0

GridXZ 20x20Fixed
type: NamedIndividual
type: Inline
has parent: Transform 2 8 1 2
DEF: GridXZ_20x20Fixed
url: "GridXZ_20x20Fixed.x3d" "../../../Savage/Tools/Authoring/GridXZ_20x20Fixed.x3d" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/GridXZ_20x20Fixed.x3d" "GridXZ_20x20Fixed.wrl" "../../../Savage/Tools/Authoring/GridXZ_20x20Fixed.wrl" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/GridXZ_20x20Fixed.wrl"

Transform 2 8 1 3
type: NamedIndividual
type: Transform
has parent: Group 2 8 1
has children: CoordinateAxes
scale: 1000

CoordinateAxes
type: NamedIndividual
type: Inline
has parent: Transform 2 8 1 3
DEF: CoordinateAxes
url: "../../../Savage/Tools/Authoring/CoordinateAxes.x3d" "../../../X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/CoordinateAxes.x3d" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.x3d" "../../../Savage/Tools/Authoring/CoordinateAxes.wrl" "../../../X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.wrl" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/CoordinateAxes.wrl" "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/CoordinateAxes.wrl"

ROUTE 2 9
type: NamedIndividual
type: ROUTE
has parent: Scene
from field: heightValuesOutput
from node: CalculateColorSchemeMEDAL
to field: set_height
to node: BathymetryGrid

ROUTE 2 10
type: NamedIndividual
type: ROUTE
has parent: Scene
from field: colorValuesOutput
from node: CalculateColorSchemeMEDAL
to field: set_color
to node: BathymetryGridColorNode

IndexedFaceSet 2 11 1 1
type: NamedIndividual
type: IndexedFaceSet
has parent: Shape 2 11 1
has coord: Coordinate 2 11 1 1 1
coord index: 0
coord index: 1
coord index: 2
coord index: 3
coord index: 4
coord index: -1
solid: false

Coordinate 2 11 1 1 1
type: NamedIndividual
type: Coordinate
has parent: IndexedFaceSet 2 11 1 1
point: 0
point: 6000
point: 3000

Material 2 11 1 2 1
type: NamedIndividual
type: Material
has parent: Appearance 2 11 1 2
diffuse color: 0.1
diffuse color: 0.4
diffuse color: 0.8
transparency: 1

Transform 2 12
type: NamedIndividual
type: Transform
has parent: Scene
has children: Inline 2 12 1
has children: Transform 2 12 2
has children: Transform 2 12 3
rotation: 0
rotation: 1
rotation: 3.14
scale: 1
scale: 1.25
translation: 2500
translation: 1
translation: 1290

Inline 2 12 1
type: NamedIndividual
type: Inline
has parent: Transform 2 12
url: "LightHouse.x3d" "https://www.web3d.org/x3d/content/examples/Savage/Locations/ShipIslandMississippi/LightHouse.x3d" "LightHouse.wrl" "https://www.web3d.org/x3d/content/examples/Savage/Locations/ShipIslandMississippi/LightHouse.wrl"

Transform 2 12 2
type: NamedIndividual
type: Transform
has parent: Transform 2 12
has children: Inline 2 12 2 1
rotation: 0
rotation: 1
rotation: 1.15
scale: 0.4
translation: 500
translation: -4
translation: 115

Inline 2 12 2 1
type: NamedIndividual
type: Inline
has parent: Transform 2 12 2
url: "FortMassachusetts.x3d" "https://www.web3d.org/x3d/content/examples/Savage/Locations/ShipIslandMississippi/FortMassachusetts.x3d" "FortMassachusetts.wrl" "https://www.web3d.org/x3d/content/examples/Savage/Locations/ShipIslandMississippi/FortMassachusetts.wrl"

Transform 2 12 3
type: NamedIndividual
type: Transform
has parent: Transform 2 12
has children: Inline 2 12 3 1
rotation: 0
rotation: 1
rotation: 1.57
translation: 450
translation: 0
translation: 190

Inline 2 12 3 1
type: NamedIndividual
type: Inline
has parent: Transform 2 12 3
url: "Pier.x3d" "https://www.web3d.org/x3d/content/examples/Savage/Locations/ShipIslandMississippi/Pier.x3d" "Pier.wrl" "https://www.web3d.org/x3d/content/examples/Savage/Locations/ShipIslandMississippi/Pier.wrl"