-
Notifications
You must be signed in to change notification settings - Fork 106
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
I'm urge to use InstancedMesh, but It's TODO at this project. What's the plan? #38
Comments
I can guide you through how to code that. So, you would add that comparison functionality here by generating the code: That is one part of the code that I wanted to clean up a lot - it works, but is not clean. I think there are many optimizations and further generalizations in that area. You can run the generator with this: If you want to debug the generator (like breakpoints in vscode) there are instructions at the top of the file I'd really like to know more about your use-case for needing that property - if you can make a storybook story then we could maybe work through it together. Thanks for your interest in the project! |
That's what my application looks like. It has many static or dynamic objects, and these My application is complex, so I can't put it to storybook. Your babylon react-reconciler layer is great. Below is some origin code I coded. I will rewrite it by extending
|
I'm going to upgrade this project to 4.1 this week - I think the latest is probably the last RC version and we can incorporate your instancedBuffers. Custom Objects that are created by something like I wanted earlier to create a hook for models, so the geometries could be used for instancing and I think this same concept can be re-used. So, a mesh hook can be used for creating instances as well. Would be interested as well as a declarative way to merge meshes after that to reduce draw calls. |
that's a good start. if you want to create a fork or I can start a branch we can get this added. I think it will be easier to add proper metadata - I have another open PR where somebody tried to parent to a camera, so having anything that inherits from TransformNode would be better than only 'isMesh'. I have time this weekend and maybe Thursday hopefully to build this out. Thanks for the ideas :) |
I will create a fork and submit it in several days, maybe new features will be added when developing my application. |
Do you mean by using |
Yes - just like that. I should have time this weekend. Would be like ‘useModel’. I’ve wanted to add instance code for some time :) |
Can you tell me how will you code the
IstancedMesh
atreact-Babylonjs
, I want to write the code by myself by clone this project.Thank you very much.
The text was updated successfully, but these errors were encountered: