Skip to content

Commit

Permalink
Fix z-fighting, camera.near 30
Browse files Browse the repository at this point in the history
  • Loading branch information
tapanij committed Dec 9, 2014
1 parent 0e80775 commit 1c0c497
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ console.log("FIDEMO: created scene", threejs.scene);

// threejs = null; //no overrides, vizicity creates scene & renderer


// COORDINATES

var santanderLatLon;
var helsinkiLatLon;

Expand All @@ -190,9 +193,16 @@ var world = new VIZI.World({
// center: new VIZI.LatLon(65.0164696, 25.479259499999998), // Oulu
// center: santanderLatLon = new VIZI.LatLon(43.47195, -3.79909),
center: helsinkiLatLon = new VIZI.LatLon(60.17096119799872, 24.94066956044796), // Helsinki
threejs: threejs
threejs: threejs,
camera: camera = new VIZI.Camera({
aspect: viewport.clientWidth / viewport.clientHeight,
near: 30
})
});

//


var controls = new VIZI.ControlsMap(world.camera);


Expand Down

0 comments on commit 1c0c497

Please sign in to comment.