Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom mesh and BufferGeometry in threejs #5

Open
RyugaRyuzaki opened this issue Jun 30, 2024 · 4 comments
Open

Custom mesh and BufferGeometry in threejs #5

RyugaRyuzaki opened this issue Jun 30, 2024 · 4 comments

Comments

@RyugaRyuzaki
Copy link

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

@repalash
Copy link
Owner

repalash commented Jul 1, 2024

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
Copy link
Author

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

@repalash
Copy link
Owner

repalash commented Jul 1, 2024

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants