vsgbuilder instancing example #937
lufriem
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Based on the discussion in #935 I created a little (?) example, based on a stripped-down vsgbuilder code, demonstrating how to update instance properties (link to the branch).
Basically, this sample, if run without command line arguments, creates 3000 sphere instances (just like the vsgbuilder example), then updates the color of each sphere (one update per frame) until all spheres have the same color, then recalculates that color and does the cycle anew (so this demonstrates how to change the sphere instance property).
In addition, a single sphere will change its position; it will bounce randomly within the volume of created spheres.
The code's organized as follows
What the sample doesn't demonstrate
Well, it might be useful for something..
Beta Was this translation helpful? Give feedback.
All reactions