A non-interactive view of a scene. It's roughly based on something I saw a few days ago, which reminded me of Virginia.
- Infinite random props
- "Immediate mode" rendering - no spawning/deleting/pooling props
- Smooth LOD on tree leaves (more leaves on nearby trees)
Source code is commented, but the least-intuitive part of it (infinitely looping random objects) isn't really explained in there, because it would be a huge comment. Instead, here we go:
First, think of the casino signs with a ring of lights around them. When they light up one at a time in sequence, it can appear like a "single light" is "moving around" the sign, even though it's really different lights which are blinking at choreographed times. Our trees in this demo work similarly, but we can also move the positions of the lights separately from changing their states. Also, instead of on-or-off, each tree is given a persistent random seed.
Other than that, it's all pretty normal, I think?
[Please log in to post a comment]