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

How to add object after Render #484

Open
zanxueyan opened this issue Mar 14, 2024 · 1 comment
Open

How to add object after Render #484

zanxueyan opened this issue Mar 14, 2024 · 1 comment

Comments

@zanxueyan
Copy link

I want to be able to add objects to the scene again once the window is rendered, but I looked up the examples so far, which all load components to sys, execute the AttachSystem function, and finally render in a loop.
Could you please give a simple example for guidance? Thank you very much!

@rserban
Copy link
Member

rserban commented Mar 14, 2024

There are several demos that create objects dynamically during the simulation. Search through the Chrono examples/demos for calls to BindItem. This is a function that you will need to call for any objects you create after the initial processing of visualization assets in order to bind the object's visual assets to the current run-time visualization system.

On a different note: please post questions about Chrono usage to the forum (mailing list). We'd like to reserve the GitHub Issues page for bug reports, feature requests, etc.

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