Hi there,
I have one single OBJ file with several objects within. Each element has its unique name.
Is it possible to load each object as a single mesh?
Tried to do this:
var parts = [];
obj.onSuccess = function (task) {
for(var i = 0; i < task.loadedMeshes.length; i++){
parts.push(task.loadedMeshes[i]);
parts[parts - 1].material = uniqueMat;
...
}
}
But it seems that each next mesh / geometry has all previous
Hi there,
I have one single OBJ file with several objects within. Each element has its unique name.
Is it possible to load each object as a single mesh?
Tried to do this:
var parts = [];
obj.onSuccess = function (task) {
for(var i = 0; i < task.loadedMeshes.length; i++){
parts.push(task.loadedMeshes[i]);
parts[parts - 1].material = uniqueMat;
...
}
}
But it seems that each next mesh / geometry has all previous