I can't import a complete model from sketchup into three.js problems, there are some missing objects

611 views Asked by At

I have some issues importing a sketchup file, (i downloaded this https://3dwarehouse.sketchup.com/model.html?id=a3a36c05-421d-49ca-aa8d-ab25aaa64491). First i tried to export the model with .dae extention (collada), and in THREE.JS I tried to load it with the "THREE.ColladaLoader()",but it doesn't worked.

Then i tried to import the collada file into blender, i opened it in blender, export it again into collada file(.dae), and it works!, i can show it in THREE.JS but there are missing objects, but i don't know why

This is the complete model in Sketchup, and the incomplete one in blender and THREE.js

1

There are 1 answers

2
Radio On BEST ANSWER

Do this first: " in SketchUp, select View > Face Style > Monochrome to see whether the back sides of a any faces point outward. By default, the face fronts are white and face backs are dark gray. To reverse a face, context-click it and select Reverse Faces. If you use Solid Inspector 2, the extension can find and fix the reversed faces for you." In essence you're making sure that all your faces face outward. Inward facing faces would be invisible unless the camera is inside the model. Check your output in Three.

Then if that doesn't work, try making all the materials double sided in Three.js:

        object.traverse(function(node){
            if(node instanceof THREE.Mesh){
                node.material.side = THREE.DoubleSide;
            }
        })

If that doesn't work, I have had issues with fragmented export from Sketchup2017 just recently. Save your skp file in a folder that is not on your desktop or a network folder. Close the file, close sketchup, reboot your machine. Reopen Sketchup, open the skip file. Select all objects and copy. Open a new project and paste the objects. Save as a new skp file, Select everything you want to see in your obj or dae file and group them. Choose export to obj or dae. Test in Three.js.

If none of those things work, then I would try a different model to see if there isn't something wrong with the Warehouse file.