repalash / threepipe

A 3D viewer framework built on top of three.js with a focus on rendering, modularity and extensibility.
http://threepipe.org/
Apache License 2.0
477 stars 28 forks source link

Custom mesh and BufferGeometry in threejs #5

Open RyugaRyuzaki opened 4 months ago

RyugaRyuzaki commented 4 months ago

I try to load Ifc Model, i can create geometry and mesh, how can i load it in viewer?

repalash commented 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

RyugaRyuzaki commented 4 months ago

@repalash How about InstanceMesh? and can i create custom culler?

repalash commented 4 months ago

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?

RyugaRyuzaki commented 4 months ago

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?

  1. I used this library. All support for >=@threejs 0.160.1

  2. For Culler I use this.

  3. Looks like your library doesn't have support for different threejs versions

  4. More example with GLTFExporter of threejs now support InstanceMesh.

  5. I want to use this. to compress glb

    • I can conclude that your library is tying up a lot of threads even though the quality of this library is very high