Explorar el Código

Switch to the mars scene tileset for the vr demo

Garrett Johnson hace 3 años
padre
commit
ffa5fbc61e
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      example/vr.js

+ 3 - 1
example/vr.js

@@ -100,9 +100,11 @@ function init() {
 
 	// parent for centering the tileset
 	offsetParent = new Group();
+	offsetParent.rotation.x = Math.PI / 2;
+	offsetParent.position.y = 32;
 	scene.add( offsetParent );
 
-	tiles = new TilesRenderer( '../data/tileset.json' );
+	tiles = new TilesRenderer( 'https://raw.githubusercontent.com/NASA-AMMOS/3DTilesSampleData/master/msl-dingo-gap/0528_0260184_to_s64o256_colorize/scene-tileset.json' );
 	offsetParent.add( tiles.group );
 
 	// We set camera for tileset