Unreal sinusbobs effect
category: code [glöplog]
Hi,
I would like to know how the "sinusbobs" effect from Future Crew's Unreal demo was implemented.
From what I can see the bobs follow a certain path, but that path is changing over time according to some function?
Are there any code samples available anywhere that demonstrate how the effect works?
Thanks!
I would like to know how the "sinusbobs" effect from Future Crew's Unreal demo was implemented.
From what I can see the bobs follow a certain path, but that path is changing over time according to some function?
Are there any code samples available anywhere that demonstrate how the effect works?
Thanks!
Yeah... those describe static curves, but in the demo the curve itself appears to animate? Is it just that the parameters of the curve are animating with time somehow?
just animate the curve parameters. The traditional way of doing stuff like this: make a curve that has a bunch of numbers and variables in it. Tweak the said numbers and variables until it looks good.
I usually add more sines with other timesteps as I do with my plasmas.
For example x = sin(at) + sin(bt) or even sin(ct + sin(dt)). Things like that should give more animated curves.
p.s. what I like in that Unreal part was the number of bobs were variable with performance, so I would turn off the Turbo button and they'd stick to few, turn on turbo and they will start updating to some more.
For example x = sin(at) + sin(bt) or even sin(ct + sin(dt)). Things like that should give more animated curves.
p.s. what I like in that Unreal part was the number of bobs were variable with performance, so I would turn off the Turbo button and they'd stick to few, turn on turbo and they will start updating to some more.
Speaking of bobs. I'm curious about "unlimited" bobs/sprites on 8/16-bit platforms. I guess it's something akin to palette/modulo animation, where you paint along a path and reset each position every 4th or so frame? Anybody did this with a non-static path (with off-screen buffers perhaps)?
Nah, just set up N framebuffers to cycle through, never clean anything.
Yeah framebuffers. Best one of those I've seen recently was in "Pimp my snail" by Camelot, has some nice tricks.