-
Notifications
You must be signed in to change notification settings - Fork 8
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
Troubleshooting InstancedMesh2 in R3F: culling issues / manual instance creation #91
Comments
When using However, I will soon release a new library, completely rewritten, with better performance and more features, including sorting, dynamic BVH, and no more need to call Repository of new library: https://github.com/three-ez/instanced-mesh I am glad to see my library also used with r3f, if you want we can write each other on discord so I can let you try the new library too. |
I have prepared an example for you with the new library: https://stackblitz.com/edit/three-ez-instancedmesh2-test?file=src%2Fmain.ts What do you think? :) |
Thanks for the quick response and the prepared example! It looks very promising! Despite the large number of objects fps are at maximum level. Everything works as it should.
So far I have been using the https://www.npmjs.com/package/@three.ez/instanced-mesh version. |
Yes. It's a test package which I will remove later (be sure to use the latest version). Once I'm done I will post again on the '@three.ez/instanced-mesh' package. I am not very convinced about how to initialize BVH, so I will definitely change the API a bit. I am open to advice on how to simplify the use of the library 😄 |
I am trying to use component InstancedMesh2 in my R3F based project. I am manually creating instances and adding to the scene. Before rendering I call updateCulling however nothing happens, i.e. the number of rendered objects remains the same despite, for example, a different camera placement. What am I doing wrong ? Can I use InstancedMesh2 in this way (e.g. without initializing the “main” object from the library) ?
The text was updated successfully, but these errors were encountered: