3D OpenGL Swath & Sonar Geometry Simulation (gl)

The gl directory contains synSwath and its modular C subsystemsβ€”an interactive 3D OpenGL/GLX acoustic geometry, phased-array beamforming, attitude coordinate frame, and seafloor backscatter/bottom-detection simulation environment developed by John E. Hughes Clarke.


Main Executable & Test Harness

  • synSwath β€” Main interactive 3D OpenGL multibeam, sidescan, split-beam, and inertial reference frame simulator.
  • testNONORTHO β€” Standalone CLI verification tool for non-orthogonal transmit/receive cone intersections (calc_nonorthogonal_cones_010).

Core Architecture & Rendering Modules

  • SYN_global β€” Central header declaring global simulation state, array geometry, OpenGL materials, and viewport flags.
  • SYN_initialise β€” Initializes all default transducer, attitude, material, camera, and bottom-detection state variables.
  • SYN_launcher β€” X11/Motif control panel launcher for interactive parameter adjustment.
  • SYN_event_loop β€” X11/GLX mouse, keyboard, and window event dispatcher for interactive 3D manipulation.
  • SYN_oGL_draw β€” High-level OpenGL scene assembly and coordinate-frame rendering pipeline.
  • SYN_jGL_draw / SYN_jGL_draw.h β€” 3D geometric primitives (vessels, transducers, axes, spheres, vectors, and cones).
  • SYN_animate β€” Multi-ping swath propagation, vessel motion (roll/pitch/yaw wobble), and frame-capture animation engine.
  • SYN_scripting β€” Batch script parser and keyframe interpolation engine for automated lecture animations.

Specialized Acoustic & Kinematic Modules

  • SYN_NONORTHO β€” 3D visualization of non-orthogonal transmit and receive cones and their hyperboloid/vector intersections.
  • SYN_ROT β€” Euler angle and Tait-Bryan rotation sequence (DCM_rthand) demonstrations.
  • SYN_RefFrame β€” Local-level, vessel, and sensor reference frame transformations.
  • SYN_MRU β€” Motion Reference Unit (accelerometers, gyroscopes, magnetometers, and lever-arm centripetal accelerations) visualization.
  • SYN_doBD β€” Synthetic amplitude and split-beam phase bottom detection across 3D seafloor facets.
  • SYN_plate_select β€” Seafloor target plate loading, normal computation, and facet illumination.
  • SYN_Ripple & SYN_internal_wave β€” Synthetic seabed ripple and oceanographic internal wave surfaces.
  • SYN_EK β€” Simrad EK60/EK80 split-beam echosounder phase and target-location simulation.
  • SYN_M3 β€” Kongsberg Mesotech M3 imaging sonar geometry.
  • SYN_SAS β€” Synthetic Aperture Sonar (SAS) along-track synthetic array geometry.
  • SYN_ADCP & SYN_currents β€” Janus 4-beam ADCP geometry and 3D current vector fields.
  • SYN_LBL, SYN_LLZ, SYN_navSect, SYN_TCtrajectory β€” Long-Baseline acoustic positioning, local-level navigation, and tide-corrected trajectory modules.

Table of contents