openspace.debugging
Functions overview
Name |
Documentation |
---|---|
Creates a new scene graph node that show the coordinate system used for the currently selected focus node, or a specified scene graph node |
|
Removes the rendered control points |
|
Removes the currently rendered camera path if there is one |
|
Render the current camera path from the path navigation system |
|
Render the control points for the camera path spline as spheres |
Functions
createCoordinateAxes
Creates a new scene graph node that show the coordinate system used for the currently selected focus node, or a specified scene graph node.
Usage:
-- To add coordinate axes for the currently selected focus node, do not specify any
-- parameters
openspace.debugging.createCoordinateAxes()
nodeIdentifier
String?
The identifier of the scene graph node for which the axes should be added. If this parameter is not specified, the current focus node is used instead.
scale
Number?
An optional parameter that specifies the size of the coordinate axes, in meters. If not specified, the size is set to 2.5 times the interaction sphere of the selected node.
Return type: void
openspace.debugging.createCoordinateAxes(nodeIdentifier, scale)
removePathControlPoints
Removes the rendered control points.
Return type: void
openspace.debugging.removePathControlPoints()
removeRenderedCameraPath
Removes the currently rendered camera path if there is one.
Return type: void
openspace.debugging.removeRenderedCameraPath()
renderCameraPath
Render the current camera path from the path navigation system. The first optional argument is the number of samples to take along the path (defaults to 100). If a second optional argument is included and set to true, a line indicating the camera view direction along the path will also be rendered. This can be useful when debugging camera orientations. Finally, the third optional argument can be used to set the length (in meter) of the view direction lines.
nSteps
Integer?
- Default value:100
renderDirections
Boolean?
- Default value:false
directionLineLength
Number?
- Default value:6e7
Return type: void
openspace.debugging.renderCameraPath(nSteps, renderDirections, directionLineLength)
renderPathControlPoints
Render the control points for the camera path spline as spheres. The optional argument can be used to set the radius of the created spheres.
radius
Number?
- Default value:2000000.0
Return type: void
openspace.debugging.renderPathControlPoints(radius)