Stuff done

This commit is contained in:
Thomas FORGIONE
2015-11-24 09:26:12 +01:00
parent c0d8d6292c
commit adbd3c95f1
8 changed files with 352 additions and 172 deletions

View File

@@ -275,9 +275,9 @@ L3D.ReplayCamera.prototype.toList = function() {
camera.updateMatrix();
camera.updateMatrixWorld();
camera.matrixWorldInverse.getInverse(camera.matrixWorld);
var frustum = new THREE.Frustum();
var projScreenMatrix = new THREE.Matrix4();
projScreenMatrix.multiplyMatrices(camera.projectionMatrix, camera.matrixWorldInverse);
frustum.setFromMatrix(new THREE.Matrix4().multiplyMatrices(camera.projectionMatrix, camera.matrixWorldInverse));

View File

@@ -5,7 +5,7 @@ var L3D = {};
if (typeof module !== 'undefined' && module.exports) {
var THREE = require('three');
var THREE = require('../../analysis/server-replay/three.js'); // three');
module.exports = L3D;
}

View File

@@ -243,7 +243,6 @@ var ProgressiveLoader = function(path, scene, camera, callback, log, laggy, pref
this.mapFace = {};
this.prefetch = prefetch === undefined ? true : (!!prefetch);
console.log(this.prefetch);
};

View File

@@ -169,7 +169,7 @@ L3D.initBobombScene = function(scene, collidableObjects, recommendation, clickab
var loader = new L3D.ProgressiveLoader(
'/static/data/bobomb/bobomb battlefeild.obj',
scene,
null,
recommendation,
function(object) {
if (clickable !== undefined)
clickable.push(object);