Open RyugaRyuzaki opened 4 months ago
If you have a three.js Mesh object, you can directly add it to the viewer scene with viewer.scene.addObject(mesh)
. This will add the object to a child in the scene object, that can be accessible with viewer.scene.modelRoot
@repalash How about InstanceMesh? and can i create custom culler?
Yes any kind of Object3D like InstancedMesh can be added in the same way. You can also have a look at the plugins in the extra-importers package to support a new file type with a threejs loader.
For custom Culler, what kind are you thinking of?
Yes any kind of Object3D like InstancedMesh can be added in the same way. You can also have a look at the plugins in the extra-importers package to support a new file type with a threejs loader.
For custom Culler, what kind are you thinking of?
I used this library. All support for >=@threejs 0.160.1
For Culler I use this.
Looks like your library doesn't have support for different threejs versions
More example with GLTFExporter of threejs now support InstanceMesh.
I want to use this. to compress glb
I try to load Ifc Model, i can create geometry and mesh, how can i load it in viewer?