Logo
  • Getting Started
    • Installing OpenSpace
    • Launching OpenSpace
    • Orientation
    • Navigation
  • Using OpenSpace
    • The Building Blocks of OpenSpace
    • Scene Panel: Manipulate Data
    • Navigation Panel: Focus & Fly
    • Time Panel: Manipulating the Date & Time
    • Actions Panel: Automate Adjustments
    • Record Panel: Save and Playback a Session
    • GeoLocation Panel: Pinpoint a Place
    • Profile Editor
    • Keyboard Shortcuts
      • Base Keyboard Shortcuts
      • Default Profile Keyboard Shortcuts
      • James Webb Space Telescope Profile Keyboard Shortcuts
    • SkyBrowsing Panel
    • Exoplanet Systems Panel
    • Navigation
      • Joystick Navigation
      • Customizing the Joystick Navigation
      • PathNavigation - Simplifying navigation in OpenSpace
      • Idle Behavior
      • Touch Interface
    • Properties
    • Configuration
    • Scene Graph
    • Events
    • Scripting
      • Console
    • User
      • Using the Menus - Globebrowsing
      • Customizing Bookmarks
    • Installers
      • Dual monitors with fullscreen display
      • Controlling OpenSpace remotely
      • E&S Site Configuration
    • Builders
      • Create and display a “Water Moon”
      • Use a fulldome image in OpenSpace
    • FAQ
  • Profiles
    • Default (Grand Tour)
    • Default-Full
    • Mission Profiles
      • James Webb Space Telescope
    • Offline
    • Empty
    • Apollo
    • Artemis
    • Asteroids
    • Bastille Day 2000
    • Dawn
    • Eclipse
    • Gaia
    • Juice
    • Juno
    • Mars
    • Messenger
    • New Horizons
    • Night Sky
    • OSIRIS-REx
    • Rosetta
    • Solar Storm 2012
    • Touch
    • Voyager
  • Content
    • Solar System
      • Sun
        • Sun
        • Solar Glare
        • Sun’s Habitable Zone
      • Planets
        • Mercury
        • Venus
        • Earth
        • Mars
        • Jupiter
        • Saturn
        • Uranus
        • Neptune
      • Dwarf Planets
        • Pluto
      • Comets
        • Oort Cloud
      • Missions
        • James Webb Space Telescope
    • Milky Way
      • Stars
        • Stars
        • Star Labels
        • Alternate Star Labels
        • Star Distance Uncertainty
        • Star Orbits
        • Sun
      • Constellations
        • Constellation Lines
        • Constellation Art
        • Constellation Boundaries
      • All-sky Images
        • Hydrogen-alpha All-sky
        • Visible All-sky
      • Substellar Objects
        • Brown Dwarfs
      • Exoplanets
        • Exoplanet Systems
        • Exoplanet Candidates
      • Star Clusters
        • Open Clusters
        • OB Associations
        • Globular Clusters
      • Nebulae
        • HII Regions
        • Planetary Nebulae
        • Supernova Remnants
      • Stellar Remnants
        • White Dwarfs
        • Pulsars
      • Galaxy
        • Milky Way Image
        • Milky Way Volume
        • Milky Way Arm Labels
      • Graphics
        • Radio Sphere
    • Universe
      • Nearby Surveys
        • Home Label
        • Local Group
        • Tully Galaxies
        • Tully Galaxy Images
        • Galaxy Group Labels
        • Galaxy Cluster Labels
        • 2MASS Galaxies
        • 6dF Galaxies
        • Voids
      • Deep Sky Surveys
        • 2dF Galaxies
        • Sloan DSS Galaxies
        • Abell Galaxy Clusters
        • Supercluster Labels
        • Quasars
      • Cosmic Microwave Background
        • COBE
        • WMAP
        • Planck
  • Building Content
    • Creating data assets
      • Assets
      • Resources
      • Models
        • How to load a model into OpenSpace
        • Scaling of models
        • Animation in OpenSpace
        • Breaking change in 0.17.0: Model Loading
      • Data Synchronization
      • Uniview Mod File Conversion
    • Custom web UI
      • HTML Controls Setup Guide
    • Modules
      • The Telemetry Module
        • General Telemetry Types
        • Specialized Telemetry Types
        • Sonification
        • Angle Calculations
    • Asteroids
    • Ephemeris
      • Horizons GUI
      • Horizons Web
      • Kepler Translation
      • Asteroids
      • SBDB
    • Gaia
    • Globebrowsing
      • Working With Layers
      • Globe Geometry Features from GeoJson Files
      • Creation
        • Creating a Renderable Globe
        • Readable Datasets
        • Build Local DEM Patches to Load With OpenSpace
        • Adding Geometry with GeoJson
      • WMS
        • Server Install
        • Server Import
        • Server Conversion
    • Point Data
      • Rendering Point Data
      • Labels
      • File Formats
      • Advanced Rendering
    • Profile Syntax
    • Renderable Stars
    • Satellites
    • Solar Video Overlay
  • Reference
    • Renderable Overview
    • All asset components
      • DashboardItem
      • DashboardItemAngle
      • DashboardItemCameraOrientation
      • DashboardItemDate
      • DashboardItemDistance
      • DashboardItemElapsedTime
      • DashboardItemFramerate
      • DashboardItemGlobeLocation
      • DashboardItemInputState
      • DashboardItemInstruments
      • DashboardItemMission
      • DashboardItemParallelConnection
      • DashboardItemPropertyValue
      • DashboardItemSimulationIncrement
      • DashboardItemSpacing
      • DashboardItemText
      • DashboardItemTimeVaryingText
      • DashboardItemVelocity
      • Decoder
      • Instrument
      • Target
      • CameraLightSource
      • LightSource
      • SceneGraphLightSource
      • AudioModule
      • CefWebGuiModule
      • ColorMappingComponent
      • Configuration
      • DataMapping
      • ExoplanetsModule
      • ExoplanetSystemData
      • GeoJsonComponent
      • GeoJsonProperties
      • GlobeBrowsingModule
      • GlobeLabelsComponent
      • LabelsComponent
      • Layer
      • LayerAdjustment
      • LogFactory
      • MissionPhase
      • NavigationState
      • PathInstruction
      • ProjectionComponent
      • RingsComponent
      • SceneGraphNode
      • ServerModule
      • ShadowComponent
      • SizeMappingComponent
      • SkyBrowserModule
      • SpaceModule
      • State
      • StateMachine
      • SyncModule
      • TimeRange
      • Transition
      • VideoModule
      • WebBrowserModule
      • WebGuiModule
      • DataPlane
      • DataSphere
      • KameleonPlane
      • Renderable
      • RenderableAtmosphere
      • RenderableBoxGrid
      • RenderableCartesianAxes
      • RenderableConstellationBounds
      • RenderableConstellationLines
      • RenderableCrawlingLine
      • RenderableDisc
      • RenderableDistanceLabel
      • RenderableDUMeshes
      • RenderableEclipseCone
      • RenderableFieldlines
      • RenderableFieldlinesSequence
      • RenderableFluxNodes
      • RenderableFov
      • RenderableGaiaStars
      • RenderableGalaxy
      • RenderableGlobe
      • RenderableGrid
      • RenderableHabitableZone
      • RenderableInterpolatedPoints
      • RenderableKameleonVolume
      • RenderableLabel
      • RenderableModel
      • RenderableModelProjection
      • RenderableMultiresVolume
      • RenderableNodeArrow
      • RenderableNodeLine
      • RenderableOrbitalKepler
      • RenderableOrbitDisc
      • RenderablePlaneImageLocal
      • RenderablePlaneImageOnline
      • RenderablePlaneProjection
      • RenderablePlaneSpout
      • RenderablePlaneTimeVaryingImage
      • RenderablePlanetProjection
      • RenderablePointCloud
      • RenderablePolygonCloud
      • RenderablePrism
      • RenderableRadialGrid
      • RenderableRings
      • RenderableShadowCylinder
      • RenderableSkyTarget
      • RenderableSphereImageLocal
      • RenderableSphereImageOnline
      • RenderableSphereSpout
      • RenderableSphericalGrid
      • RenderableStars
      • RenderableSwitch
      • RenderableTimeVaryingSphere
      • RenderableTimeVaryingVolume
      • RenderableToyVolume
      • RenderableTrailOrbit
      • RenderableTrailTrajectory
      • RenderableTravelSpeed
      • RenderableVideoPlane
      • RenderableVideoSphere
      • TexturePlane
      • HttpSynchronization
      • ResourceSynchronization
      • UrlSynchronization
      • ConstantRotation
      • FixedRotation
      • GlobeRotation
      • LuaRotation
      • MultiRotation
      • Rotation
      • SpiceRotation
      • StaticRotation
      • TimelineRotation
      • LuaScale
      • MultiScale
      • NonUniformStaticScale
      • Scale
      • StaticScale
      • TimeDependentScale
      • TimelineScale
      • ScreenSpaceBrowser
      • ScreenSpaceCygnet
      • ScreenSpaceDashboard
      • ScreenSpaceDebugPlane
      • ScreenSpaceFramebuffer
      • ScreenSpaceImageLocal
      • ScreenSpaceImageOnline
      • ScreenSpaceInsetBlackout
      • ScreenSpaceRenderable
      • ScreenSpaceRenderableRenderable
      • ScreenSpaceSkyBrowser
      • ScreenSpaceSpout
      • ScreenSpaceTimeVaryingImageOnline
      • ScreenSpaceVideo
      • ConstructOctreeTask
      • ConvertModelTask
      • ConvertRecFormatTask
      • ExoplanetsDataPreparationTask
      • GenerateRawVolumeFromFileTask
      • GenerateRawVolumeTask
      • KameleonDocumentationTask
      • KameleonMetadataToJsonTask
      • KameleonVolumeToRawTask
      • MilkywayConversionTask
      • MilkywayPointsConversionTask
      • ReadFitsTask
      • ReadSpeckTask
      • Task
      • DefaultTileProvider
      • ImageSequenceTileProvider
      • SingleImageProvider
      • SizeReferenceTileProvider
      • SpoutImageProvider
      • TemporalTileProvider
      • TileIndexTileProvider
      • TileProvider
      • TileProviderByDate
      • TileProviderByIndex
      • TileProviderByLevel
      • VideoTileProvider
      • TimeFrame
      • TimeFrameInterval
      • TimeFrameKernel
      • TimeFrameUnion
      • GlobeTranslation
      • GPTranslation
      • HorizonsTranslation
      • KeplerTranslation
      • LuaTranslation
      • MultiTranslation
      • SpiceTranslation
      • StaticTranslation
      • TimelineTranslation
      • Translation
    • Scripting API
      • openspace
      • openspace.action
      • openspace.asset
      • openspace.audio
      • openspace.dashboard
      • openspace.debugging
      • openspace.event
      • openspace.exoplanets
      • openspace.gaia
      • openspace.globebrowsing
      • openspace.iswa
      • openspace.keyframeRecording
      • openspace.modules
      • openspace.navigation
      • openspace.openglCapabilities
      • openspace.orbitalnavigation
      • openspace.parallel
      • openspace.pathnavigation
      • openspace.scriptScheduler
      • openspace.sessionRecording
      • openspace.skybrowser
      • openspace.space
      • openspace.spice
      • openspace.statemachine
      • openspace.sync
      • openspace.systemCapabilities
      • openspace.time
  • Contribute
    • Development
      • Compiling
        • Windows
        • Ubuntu
        • MacOS
        • FreeBSD
        • Fedora
      • Tools
        • Visual Studio Tips and Tricks
      • Dependencies
        • LibMPV
      • Coding Style
      • Code Structure
      • Deploying Windows
      • Folder Layout
      • Pull Requests
      • Git Branch Naming Conventions
      • C++ Musings
      • Skybrowser Webpage Design
      • UI Accessibility Guidelines
      • WebRTC
        • Streaming User Guide
        • Streaming Structure and Good-To-Knows
    • FAQ
    • Documentation
      • How to build the documentation locally
      • Kitchen Sink
      • Field List examples
      • Custom directives
  • Glossary
    • Astronomical Glossary
    • Development Glossary
    • Documentation Glossary
  • About
    • Version Overview
      • 0.20.1
      • 0.20.0
        • Details on Breaking Changes
      • 0.19.2
      • 0.19.1
      • 0.19.0
      • 0.18.2
      • 0.18.1
      • 0.18.0
      • 0.17.2
      • 0.17.1
      • 0.17.0
      • 0.16.1
      • 0.16.0
    • Academics
    • Links
  • Community
OpenSpace
  • Reference
  • All asset components
  • NavigationState
  • Edit on GitHub

NavigationState

A NavigationState is an object describing an exact camera position and rotation, in a certain reference frame (per default, the one of the specified Anchor node). It can be used to set the same camera position at a later point in time, or navigating to a specific camera position using the pathnavigation system.

The camera rotation is specified using Euler angles, in radians. It is also possible to specify a node to be used as Aim, but note that this will not affect the actual camera position or view direction.

To get the current navigation state of the camera, use the openspace.navigation.navigationState() function in the Scripting API.

Note that when loading a NavigationState, the visuals may be different depending on what the simulation timestamp is, as the relative positions of objects in the scene may have changed. The get the exact same visuals as when the NavigationState was saved you need to also set the simulation time to correpsond to the timestamp.

Members

Name

Documentation

Type

Description

Optional

Anchor

The identifier of the anchor node

String

Value of type ‘String’

No

Position

The position of the camera relative to the anchor node, expressed in meters in the specified reference frame

Vector3<double>

Value of type ‘Vector3’

No

Aim

The identifier of the aim node, if used

String

Value of type ‘String’

Yes

Pitch

The pitch angle in radians. Positive angle means pitching camera upwards

Double

Value of type ‘Double’

Yes

ReferenceFrame

The identifier of the scene graph node to use as reference frame. If not specified, this will be the same as the anchor

String

Value of type ‘String’

Yes

Timestamp

The timestamp for when the navigation state was captured or is valid. Specified either as seconds past the J2000 epoch, or as a date string in ISO 8601 format: ‘YYYY MM DD HH:mm:ss.xxx’

Double, or String

Value of type ‘Double’, or Value of type ‘String’

Yes

Up

The up vector expressed in the coordinate system of the reference frame

Vector3<double>

Value of type ‘Vector3’

Yes

Yaw

The yaw angle in radians. Positive angle means yawing camera to the right

Double

Value of type ‘Double’

Yes

Previous Next

© Copyright 2014-2024, OpenSpace community.

Built with Sphinx using a theme provided by Read the Docs.