Log In  

Cart #42207 | 2017-07-05 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
10


A non-interactive view of a scene. It's roughly based on something I saw a few days ago, which reminded me of Virginia.

Some features:

  • 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?

P#42208 2017-07-05 15:09 ( Edited 2017-07-05 22:23)


[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-29 00:19:36 | 0.008s | Q:11