Improved progressive renderer... still bugged

This commit is contained in:
Thomas FORGIONE
2015-06-18 11:46:24 +02:00
parent bfca8ceab1
commit b94725ab7c
3 changed files with 198 additions and 113 deletions

View File

@@ -126,10 +126,22 @@ ProgressiveLoaderGeometry.prototype.initIOCallbacks = function() {
this.socket.on('elements', function(arr) {
if (arr.length === 0) {
console.log("Empty array");
} else {
console.log("Stuff received");
}
// console.log("Received elements for the " + (++self.counter) + "th time !");
for (var i = 0; i < arr.length; i++) {
var elt = _parseList2(arr[i]);
// console.log(arr[i]);
// console.log(elts);
if (elt.type === 'vertex') {