I found a bedroom object on Blender that I downloaded from this source.
When exporting it in json format to load it into Three.js, I noticed that only one mesh of the bed component was included instead of all the meshes I had selected.
All components of the bed are present when I join the meshes together.
My question is: Is there a way to export all of the meshes individually without having to join them in Blender before exporting to json?
Below is my loading function:
function initMesh() {
var loader = new THREE.JSONLoader();
loader.load('http://127.0.0.1:8000/asset/bedroom.json', function(geometry) {
mesh = new THREE.Mesh(geometry);
scene.add(mesh);
});
}
The images show what I currently have after loading:
https://i.sstatic.net/bKuVr.png
https://i.sstatic.net/QSBoF.png https://i.sstatic.net/k9k4r.png
Thank you.