Manually derived terrain and bathymetry offshore Ship Island, MS.
Scripts by Don Brutzman; Scene and Data Jeffrey Weekley
X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit
ViewPositionOrientation provides provides console output of local position and orientation as user navigates
"../../../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"
Whether or not ViewPositionOrientation sends output to console.
Output internal trace messages for debugging this node - developer use only can be ignored.
Ability to turn output tracing on/off at runtime.
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 (heightValues[index] > depthBand[4]) colorValuesOutput [index] = yellow; else if (heightValues[index] > depthBand[5]) colorValuesOutput [index] = tan; else if (heightValues[index] > depthBand[6]) colorValuesOutput [index] = grey; else if (heightValues[index] > depthBand[7]) colorValuesOutput [index] = cyan; else if (heightValues[index] > depthBand[8]) colorValuesOutput [index] = green; else if (heightValues[index] > depthBand[9]) colorValuesOutput [index] = seaGreen; else if (heightValues[index] > depthBand[10]) colorValuesOutput [index] = navyBlue; else if (heightValues[index] > depthBand[11]) colorValuesOutput [index] = blue; else if (heightValues[index] > depthBand[12]) colorValuesOutput [index] = slateBlue; else if (heightValues[index] > depthBand[13]) colorValuesOutput [index] = skyBlue; else if (heightValues[index] > depthBand[14]) colorValuesOutput [index] = slateGrey; else colorValuesOutput [index] = black; // if (heightValues[index] > depthBand[0]) colorValuesOutput [index] = brown; // else if (heightValues[index] > depthBand[1]) colorValuesOutput [index] = yellow; // else if (heightValues[index] > depthBand[2]) colorValuesOutput [index] = green; // else if (heightValues[index] > depthBand[3]) colorValuesOutput [index] = olive; // else if (heightValues[index] > depthBand[4]) colorValuesOutput [index] = magenta; // else if (heightValues[index] > depthBand[5]) colorValuesOutput [index] = tan; // else if (heightValues[index] > depthBand[6]) colorValuesOutput [index] = skyBlue; // else if (heightValues[index] > depthBand[7]) colorValuesOutput [index] = lightbrown; // else if (heightValues[index] > depthBand[8]) colorValuesOutput [index] = grey; // else if (heightValues[index] > depthBand[9]) colorValuesOutput [index] = seaGreen; // else if (heightValues[index] > depthBand[10]) colorValuesOutput [index] = slateBlue; // else if (heightValues[index] > depthBand[11]) colorValuesOutput [index] = cyan; // else if (heightValues[index] > depthBand[12]) colorValuesOutput [index] = black; // else if (heightValues[index] > depthBand[13]) colorValuesOutput [index] = navyBlue; // else if (heightValues[index] > depthBand[14]) colorValuesOutput [index] = slateGrey; // else colorValuesOutput [index] = orange; } }
"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"
"../../../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"
"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"
"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"
"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"