Is there a comfortable way to load many files (1.000 files, all together ~ 30MB) from a Folder? I wrote JavaScript and use the OBJLoader.js from the three.js framework. Loading one or two of those obj files won't be a problem, thanks to the nice examples on threejs.org, but how can I load this bunch of files?
ATM I work with this (basic) function:
function loadModellByNameOBJ(name){
var meshMat = new THREE.MeshLambertMaterial({color: 0x339933,side:THREE.DoubleSide});
loader = new THREE.OBJLoader(loadingManager);
loadingManager.onProgress = function( item, loaded, total)
{
console.log(item,loaded,total);
}
loader.load(name+".obj",function(object){
for(var i = 0; i < object.children.length;i++)
{
object.children[i].material = meshMat;
object.children[i].geometry.computeFaceNormals();
object.children[i].geometry.computeVertexNormals();
}
objectGroup.add(object);
},onProgress,onError);
}
But how can I pass it a folder instead of every single file?