Skip to content

Commit 18fe12f

Browse files
author
mige
committed
better lower res
1 parent 8a47cb0 commit 18fe12f

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

examples/lowResolution/lowResolution.html

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,26 @@
1818
control
1919
} from "../../external/og/lib/og.es.js";
2020

21-
let osm = new OpenStreetMap();
21+
let osm = new OpenStreetMap("OSM", {
22+
textureFilter: "linear",
23+
});
2224

23-
let sat = new Bing()
25+
let sat = new Bing("Bing", {
26+
textureFilter: "linear"
27+
})
2428

2529
let globus = new Globe({
2630
target: "globus",
2731
name: "Earth",
28-
terrain: new GlobusRgbTerrain(),
32+
terrain: new GlobusRgbTerrain("LowResTerrain", {
33+
//decreased x2 grid resolution
34+
gridSizeByZoom:[64, 32, 16, 8, 8, 8, 16, 16, 16, 16, 16, 32, 32, 32, 32, 32, 32, 32, 16, 16, 8, 8]
35+
}),
2936
layers: [osm, sat],
3037
resourcesSrc: "../../external/og/lib/res",
31-
fontsSrc: "../../external/og/lib/res/fonts"
38+
fontsSrc: "../../external/og/lib/res/fonts",
39+
// Disable fading effect
40+
transitionOpacityEnabled: false,
3241
});
3342

3443
globus.planet.addControls([
@@ -37,8 +46,9 @@
3746
new control.TimelineControl()
3847
]);
3948

40-
globus.planet.setLodSize(306, 512);
41-
globus.planet.renderer.handler.pixelRatio = 0.87;
49+
// Lower graphics quality
50+
globus.planet.setLodSize(356, 562);
51+
globus.planet.renderer.handler.pixelRatio = 0.77;
4252

4353
</script>
4454
</body>

0 commit comments

Comments
 (0)