Package gaiasky.util
Class GlobalConf.SceneConf
- java.lang.Object
-
- gaiasky.util.GlobalConf.SceneConf
-
- All Implemented Interfaces:
IObserver,GlobalConf.IConf
- Enclosing class:
- GlobalConf
public static class GlobalConf.SceneConf extends java.lang.Object implements GlobalConf.IConf, IObserver
Contains preferences and attributes which define the scene
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGlobalConf.SceneConf.ElevationTypeThe type of elevation representation if elevation textures are presentstatic classGlobalConf.SceneConf.GraphicsQualityGraphics quality setting
-
Field Summary
Fields Modifier and Type Field Description doubleAMBIENT_LIGHTfloatCAMERA_FOVdoubleCAMERA_SPEEDdoubleCAMERA_SPEED_LIMITintCAMERA_SPEED_LIMIT_IDXbooleanCINEMATIC_CAMERAbooleanCOMPUTE_GAIA_SCANbooleanCROSSHAIR_CLOSESTClosest object crosshairbooleanCROSSHAIR_FOCUSWhether to show the focus crosshairbooleanCROSSHAIR_HOMEHome object crosshairdoubleDIST_SCALE_DESKTOPDistance scaling factor in desktop modedoubleDIST_SCALE_VRDistance scaling factor in VR modedoubleELEVATION_MULTIPLIERElevation multiplierGlobalConf.SceneConf.ElevationTypeELEVATION_TYPEHow to represent elevation, if elevation textures present: Tessellation Parallax mapping NonebooleanFOCUS_LOCKbooleanFOCUS_LOCK_ORIENTATIONbooleanFREE_CAMERA_TARGET_MODE_ONbooleanGALAXY_3DDisplay galaxy as 3D object or as a 2D textureGlobalConf.SceneConf.GraphicsQualityGRAPHICS_QUALITYThe graphics qualityfloatLABEL_NUMBER_FACTORfloatLABEL_SIZE_FACTORbooleanLAZY_MESH_INITInitializes meshes lazilybooleanLAZY_TEXTURE_INITLazy texture initialisation - textures are loaded only if neededintLINE_RENDERERThe line render system: 0 - normal, 1 - shaderfloatLINE_WIDTH_FACTORlongMAX_LOADED_STARSIn the case of multifile LOD datasets (such as DR2+), this setting contains the maximum number of stars loaded at a time.longN_PM_STARSOverrides the maximum number of proper motion vectors that are allowed to showlongOBJECT_FADE_MSfloatOCTANT_THRESHOLD_0Angle [rad] above which we start painting stars in octant with fade infloatOCTANT_THRESHOLD_1Angle [rad] below which we paint stars in octant with fade out.booleanOCTREE_PARTICLE_FADEParticle fade in/out flag for octree-backed catalogs.booleanONLY_OBSERVED_STARSintORBIT_RENDERERWhether to use the general line renderer or a faster GPU-based approach 0 - Sorted lines (see LINE_RENDERER) - slower but looks better 1 - GPU VBO - faster but looks a bit worsebooleanPM_ARROWHEADSWhether to show arrow caps or notintPM_COLOR_MODEColor mode for velocity vectors 0 - direction 1 - length 2 - has radial velocity 3 - redshift (sun) 4 - redshift (camera) 5 - single colorfloatPM_LEN_FACTORFactor to apply to the length of the proper motion vectorsfloatPM_NUM_FACTORThis governs the number of proper motion vectors to displaydoubleROTATION_SPEEDbooleanSHADOW_MAPPINGShadows enabled or disabledintSHADOW_MAPPING_N_SHADOWSMax number of objects with shadowsintSHADOW_MAPPING_RESOLUTIONResolution of the shadow mapdoubleSTAR_BRIGHTNESSBrightness of starsfloatSTAR_BRIGHTNESS_POWERThis value is used to modulate the star brightness as in final_brightness = brightness^powerbooleanSTAR_COLOR_TRANSITfloatSTAR_MAX_OPACITYfloatSTAR_MIN_OPACITYfloatSTAR_POINT_SIZESize of stars rendered as point primitivesfloatSTAR_POINT_SIZE_BAKFallback valueintSTAR_TEX_INDEXStar texture index (01, 02, 03)doubleSTAR_THRESHOLD_NONEdoubleSTAR_THRESHOLD_POINTdoubleSTAR_THRESHOLD_QUADjava.lang.StringSTARTUP_OBJECTdoubleTESSELLATION_QUALITYQuality of tessellationdoubleTURNING_SPEEDboolean[]VISIBILITYVisibility of component types
-
Constructor Summary
Constructors Constructor Description SceneConf()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetStarTexture()voidinitialize(java.lang.String sTARTUP_OBJECT, GlobalConf.SceneConf.GraphicsQuality gRAPHICS_QUALITY, long oBJECT_FADE_MS, float sTAR_BRIGHTNESS, float sTAR_BRIGHTNESS_POWER, int sTAR_TEX_INDEX, float aMBIENT_LIGHT, float cAMERA_FOV, float cAMERA_SPEED, float tURNING_SPEED, float rOTATION_SPEED, int cAMERA_SPEED_LIMIT_IDX, boolean fOCUS_LOCK, boolean fOCUS_LOCK_ORIENTATION, float lABEL_SIZE_FACTOR, float lABEL_NUMBER_FACTOR, float lINE_WIDTH_FACTOR, boolean[] vISIBILITY, int oRBIT_RENDERER, int lINE_RENDERER, double sTAR_TH_ANGLE_NONE, double sTAR_TH_ANGLE_POINT, double sTAR_TH_ANGLE_QUAD, float sTAR_MIN_OPACITY, float sTAR_MAX_OPACITY, boolean oCTREE_PARTICLE_FADE, float oCTANT_TH_ANGLE_0, float oCTANT_TH_ANGLE_1, float pM_NUM_FACTOR, float pM_LEN_FACTOR, long n_PM_STARS, int pM_COLOR_MODE, boolean pM_ARROWHEADS, float sTAR_POINT_SIZE, boolean gALAXY_3D, boolean cROSSHAIR_FOCUS, boolean cROSSHAIR_CLOSEST, boolean cROSSHAIR_HOME, boolean cINEMATIC_CAMERA, boolean lAZY_TEXTURE_INIT, boolean lAZY_MESH_INIT, boolean fREE_CAMERA_TARGET_MODE_ON, boolean sHADOW_MAPPING, int sHADOW_MAPPING_N_SHADOWS, int sHADOW_MAPPING_RESOLUTION, long mAX_LOADED_STARS, GlobalConf.SceneConf.ElevationType eLEVATION_TYPE, double eLEVATION_MULTIPLIER, double tESSELLATION_QUALITY, double dIST_SCALE_DESKTOP, double dIST_SCALE_VR)booleanisNormalLineRenderer()booleanisQuadLineRenderer()voidnotify(Events event, java.lang.Object... data)voidupdateSpeedLimit()
-
-
-
Field Detail
-
STARTUP_OBJECT
public java.lang.String STARTUP_OBJECT
-
OBJECT_FADE_MS
public long OBJECT_FADE_MS
-
AMBIENT_LIGHT
public double AMBIENT_LIGHT
-
CAMERA_FOV
public float CAMERA_FOV
-
CAMERA_SPEED
public double CAMERA_SPEED
-
TURNING_SPEED
public double TURNING_SPEED
-
ROTATION_SPEED
public double ROTATION_SPEED
-
FREE_CAMERA_TARGET_MODE_ON
public boolean FREE_CAMERA_TARGET_MODE_ON
-
CAMERA_SPEED_LIMIT_IDX
public int CAMERA_SPEED_LIMIT_IDX
-
CAMERA_SPEED_LIMIT
public double CAMERA_SPEED_LIMIT
-
FOCUS_LOCK
public boolean FOCUS_LOCK
-
FOCUS_LOCK_ORIENTATION
public boolean FOCUS_LOCK_ORIENTATION
-
CINEMATIC_CAMERA
public boolean CINEMATIC_CAMERA
-
LABEL_SIZE_FACTOR
public float LABEL_SIZE_FACTOR
-
LABEL_NUMBER_FACTOR
public float LABEL_NUMBER_FACTOR
-
LINE_WIDTH_FACTOR
public float LINE_WIDTH_FACTOR
-
VISIBILITY
public boolean[] VISIBILITY
Visibility of component types
-
GALAXY_3D
public boolean GALAXY_3D
Display galaxy as 3D object or as a 2D texture
-
SHADOW_MAPPING
public boolean SHADOW_MAPPING
Shadows enabled or disabled
-
SHADOW_MAPPING_N_SHADOWS
public int SHADOW_MAPPING_N_SHADOWS
Max number of objects with shadows
-
SHADOW_MAPPING_RESOLUTION
public int SHADOW_MAPPING_RESOLUTION
Resolution of the shadow map
-
PM_LEN_FACTOR
public float PM_LEN_FACTOR
Factor to apply to the length of the proper motion vectors
-
PM_NUM_FACTOR
public float PM_NUM_FACTOR
This governs the number of proper motion vectors to display
-
N_PM_STARS
public long N_PM_STARS
Overrides the maximum number of proper motion vectors that are allowed to show
-
PM_COLOR_MODE
public int PM_COLOR_MODE
Color mode for velocity vectors- 0 - direction
- 1 - length
- 2 - has radial velocity
- 3 - redshift (sun)
- 4 - redshift (camera)
- 5 - single color
-
PM_ARROWHEADS
public boolean PM_ARROWHEADS
Whether to show arrow caps or not
-
STAR_COLOR_TRANSIT
public boolean STAR_COLOR_TRANSIT
-
ONLY_OBSERVED_STARS
public boolean ONLY_OBSERVED_STARS
-
COMPUTE_GAIA_SCAN
public boolean COMPUTE_GAIA_SCAN
-
ORBIT_RENDERER
public int ORBIT_RENDERER
Whether to use the general line renderer or a faster GPU-based approach- 0 - Sorted lines (see LINE_RENDERER) - slower but looks better
- 1 - GPU VBO - faster but looks a bit worse
-
LINE_RENDERER
public int LINE_RENDERER
The line render system: 0 - normal, 1 - shader
-
GRAPHICS_QUALITY
public GlobalConf.SceneConf.GraphicsQuality GRAPHICS_QUALITY
The graphics quality
-
LAZY_TEXTURE_INIT
public boolean LAZY_TEXTURE_INIT
Lazy texture initialisation - textures are loaded only if needed
-
LAZY_MESH_INIT
public boolean LAZY_MESH_INIT
Initializes meshes lazily
-
ELEVATION_TYPE
public GlobalConf.SceneConf.ElevationType ELEVATION_TYPE
How to represent elevation, if elevation textures present:- Tessellation
- Parallax mapping
- None
-
ELEVATION_MULTIPLIER
public double ELEVATION_MULTIPLIER
Elevation multiplier
-
TESSELLATION_QUALITY
public double TESSELLATION_QUALITY
Quality of tessellation
-
CROSSHAIR_FOCUS
public boolean CROSSHAIR_FOCUS
Whether to show the focus crosshair
-
CROSSHAIR_CLOSEST
public boolean CROSSHAIR_CLOSEST
Closest object crosshair
-
CROSSHAIR_HOME
public boolean CROSSHAIR_HOME
Home object crosshair
-
STAR_THRESHOLD_NONE
public double STAR_THRESHOLD_NONE
-
STAR_THRESHOLD_POINT
public double STAR_THRESHOLD_POINT
-
STAR_THRESHOLD_QUAD
public double STAR_THRESHOLD_QUAD
-
STAR_MIN_OPACITY
public float STAR_MIN_OPACITY
-
STAR_MAX_OPACITY
public float STAR_MAX_OPACITY
-
STAR_POINT_SIZE
public float STAR_POINT_SIZE
Size of stars rendered as point primitives
-
STAR_POINT_SIZE_BAK
public float STAR_POINT_SIZE_BAK
Fallback value
-
STAR_BRIGHTNESS
public double STAR_BRIGHTNESS
Brightness of stars
-
STAR_BRIGHTNESS_POWER
public float STAR_BRIGHTNESS_POWER
This value is used to modulate the star brightness as in final_brightness = brightness^power
-
STAR_TEX_INDEX
public int STAR_TEX_INDEX
Star texture index (01, 02, 03)
-
OCTREE_PARTICLE_FADE
public boolean OCTREE_PARTICLE_FADE
Particle fade in/out flag for octree-backed catalogs. WARNING: This implies particles are sent to GPU at each cycle
-
OCTANT_THRESHOLD_0
public float OCTANT_THRESHOLD_0
Angle [rad] above which we start painting stars in octant with fade in
-
OCTANT_THRESHOLD_1
public float OCTANT_THRESHOLD_1
Angle [rad] below which we paint stars in octant with fade out. Above this angle, inner stars are painted with full brightness
-
MAX_LOADED_STARS
public long MAX_LOADED_STARS
In the case of multifile LOD datasets (such as DR2+), this setting contains the maximum number of stars loaded at a time. If the number of loaded stars surpasses this setting, the system will start looking for the best candidates to be unloaded and start unloading data. Should not be set too low, and this should be balanced with the dataset and the draw distance.
-
DIST_SCALE_DESKTOP
public double DIST_SCALE_DESKTOP
Distance scaling factor in desktop mode
-
DIST_SCALE_VR
public double DIST_SCALE_VR
Distance scaling factor in VR mode
-
-
Method Detail
-
initialize
public void initialize(java.lang.String sTARTUP_OBJECT, GlobalConf.SceneConf.GraphicsQuality gRAPHICS_QUALITY, long oBJECT_FADE_MS, float sTAR_BRIGHTNESS, float sTAR_BRIGHTNESS_POWER, int sTAR_TEX_INDEX, float aMBIENT_LIGHT, float cAMERA_FOV, float cAMERA_SPEED, float tURNING_SPEED, float rOTATION_SPEED, int cAMERA_SPEED_LIMIT_IDX, boolean fOCUS_LOCK, boolean fOCUS_LOCK_ORIENTATION, float lABEL_SIZE_FACTOR, float lABEL_NUMBER_FACTOR, float lINE_WIDTH_FACTOR, boolean[] vISIBILITY, int oRBIT_RENDERER, int lINE_RENDERER, double sTAR_TH_ANGLE_NONE, double sTAR_TH_ANGLE_POINT, double sTAR_TH_ANGLE_QUAD, float sTAR_MIN_OPACITY, float sTAR_MAX_OPACITY, boolean oCTREE_PARTICLE_FADE, float oCTANT_TH_ANGLE_0, float oCTANT_TH_ANGLE_1, float pM_NUM_FACTOR, float pM_LEN_FACTOR, long n_PM_STARS, int pM_COLOR_MODE, boolean pM_ARROWHEADS, float sTAR_POINT_SIZE, boolean gALAXY_3D, boolean cROSSHAIR_FOCUS, boolean cROSSHAIR_CLOSEST, boolean cROSSHAIR_HOME, boolean cINEMATIC_CAMERA, boolean lAZY_TEXTURE_INIT, boolean lAZY_MESH_INIT, boolean fREE_CAMERA_TARGET_MODE_ON, boolean sHADOW_MAPPING, int sHADOW_MAPPING_N_SHADOWS, int sHADOW_MAPPING_RESOLUTION, long mAX_LOADED_STARS, GlobalConf.SceneConf.ElevationType eLEVATION_TYPE, double eLEVATION_MULTIPLIER, double tESSELLATION_QUALITY, double dIST_SCALE_DESKTOP, double dIST_SCALE_VR)
-
updateSpeedLimit
public void updateSpeedLimit()
-
notify
public void notify(Events event, java.lang.Object... data)
-
isNormalLineRenderer
public boolean isNormalLineRenderer()
-
isQuadLineRenderer
public boolean isQuadLineRenderer()
-
getStarTexture
public java.lang.String getStarTexture()
-
-