You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All examples of examples.html can see the results, but when use with the fbx model can not see the result without any error messages.
So I insert the console.log function to test, found the following program will stop at step 2.
What to do next?
//es6 js style//defined scene camera renderer blahblahblahconstmanager=newTHREE.LoadingManager();constloader=newTHREE.FBXLoader(manager);loader.load('https://threejs.org/examples/models/fbx/xsi_man_skinning.fbx',fbx=>{window.FBX=fbx;/* Found the fbx.children[0].children[1].isMesh is true and had geometry data(Type of BufferGeometry) */letstart_time=newDate().getTime();letcubeGeo=newTHREE.CubeGeometry(5,5,1);console.log('step 1');letcube_bsp=newThreeBSP(cubeGeo);console.log('step 2');letcar_bsp=newThreeBSP(fbx.children[0].children[1].geometry);console.log('step 3');letsubtract_bsp=car_bsp.intersect(cube_bsp);console.log('step 4');letresult=subtract_bsp.toMesh(newTHREE.MeshLambertMaterial({shading: THREE.SmoothShading}));console.log('step 5');result.geometry.computeVertexNormals();scene.add(result);console.log('used time: '+((newDate()).getTime()-start_time)+'ms');});
The text was updated successfully, but these errors were encountered:
gzlock
changed the title
This project can not be used with the BufferGeoMetry of the FBX model ?
[Solved]This project can not be used with the BufferGeoMetry of the FBX model ?
Nov 21, 2017
All examples of examples.html can see the results, but when use with the fbx model can not see the result without any error messages.
So I insert the console.log function to test, found the following program will stop at step 2.
What to do next?
The text was updated successfully, but these errors were encountered: