Does anyone have any links to lua implementations for Perlin noise? Everything I’ve found so far is C code. I was hoping for an easy dropin to use Perlin noise to generate some cool snowflake motion.
[import]uid: 8673 topic_id: 7654 reply_id: 307654[/import]
Did you ever figure this out? I’d like to use noise functions as well for a number of things in the Corona environment, mainly for ambient motion on objects. I work in visual effects where we use various noise functions all the time. I’m a little surprised the base math library only offers a random function and not even a basic Perlin noise.
Anyone at Ansca able to chime in on this? Would it be possible, for instance, to download and use a Lua implementation of noise via a “require” statement? And on a broader level, does Corona support the usage of any arbitrary Lua module regardless of developer, i.e. as long as it works in Lua is Corona able to support it all the way to the compiled native app (iOS or Android)?
Thx!
Ken [import]uid: 72317 topic_id: 7654 reply_id: 49498[/import]
Perlin noise? Corona API can’t access per-pixel bitmap from an image for now. The imaging API is fairly basic and rather primitive. [import]uid: 41267 topic_id: 7654 reply_id: 49502[/import]
Hi, thanks for the quick response. I’m actually not worried about noising up an image but rather using noise for motion animation, i.e. using a continuous noise function to animate the x & y values of a display object (as opposed to using the random function). [import]uid: 72317 topic_id: 7654 reply_id: 49516[/import]
Hello Ken4,
Oh i thought you would like to add perlin noise effect for image. Of course you could make LUA module by yourself implementing perlin noise logic
[import]uid: 41267 topic_id: 7654 reply_id: 49521[/import]