hscale_min = 0.2 hscale_max = 4 hscale_value = data_height_scale colormap = {} colormap[0] = '#ffffff' colormap[1] = '#00008F' colormap[2] = '#0080FF' colormap[3] = '#80FF80' colormap[4] = '#FF8000' colormap[5] = '#800000' # Terrain tt = tessterrain.initialize() tt.initTerrain('terraindata/cyprus/cyprus_config.ini') tt.nextDisplayMode(-1) tt.setHeightScale(1.0 * data_height_scale); # model scene = getSceneManager() all = SceneNode.create("everything") # Create a directional light light1 = Light.create() light1.setLightType(LightType.Directional) light1.setLightDirection(Vector3(-1.0, -1.0, -1.0)) light1.setColor(Color(1.0, 1.0, 1.0, 1.0)) light1.setAmbient(Color(0.2, 0.2, 0.2, 1.0))
ref_point['lat'] = -36.9998611 ref_point['lon'] = 140.9998611 data_height_scale = 0.4 hscale_min = 0.2 hscale_max = 4 hscale_value = data_height_scale # ovelay alpha overlay_alpha_min = 0.2 overlay_alpha_max = 1 overlay_alpha_value = 0.6 #INIT # Terrain tt = tessterrain.initialize() tt.initTerrain('terraindata/apps/overlayterrain/vic_config.ini') tt.nextDisplayMode(-1) tt.setHeightScale(1.0 * data_height_scale) ttOverlay = tessterrain.initialize() ttOverlay.initTerrain('terraindata/apps/overlayterrain/data_config.ini') ttOverlay.nextDisplayMode(-1) ttOverlay.setHeightScale(1.0 * data_height_scale) ttOverlay.setHeight(400) ttOverlay.setOpacity(0.7) # Scene scene = getSceneManager() all = SceneNode.create("everything") # Light