Simple plasma effect
Simple plasma effect
Just an implementation of the plasma fractal. Works with non-power-of-two dimensions, although end results can look grainy. Feel free to play / use.
- Attachments
-
- plasma.love
- (1.06 KiB) Downloaded 492 times
- retrotails
- Party member
- Posts: 212
- Joined: Wed Apr 18, 2012 12:37 am
Re: Simple plasma effect
I have no idea how that works, but it's awesome. Can I use it in my game?
Re: Simple plasma effect
What is this, I don't even.
No, but really- this is pretty sweet. Where did you get the idea from?
No, but really- this is pretty sweet. Where did you get the idea from?
Re: Simple plasma effect
Nice!
Is that using recursive subdivision? I have some Lua code that does that, using diamond-square algorithm, see here: https://github.com/mlepage/heightmap
Is that using recursive subdivision? I have some Lua code that does that, using diamond-square algorithm, see here: https://github.com/mlepage/heightmap
Re: Simple plasma effect
Thanks,i have been looking for this since some time.mlepage wrote:Nice!
Is that using recursive subdivision? I have some Lua code that does that, using diamond-square algorithm, see here: https://github.com/mlepage/heightmap
Re: Simple plasma effect
Yep, sure, go for it!retrotails wrote:I have no idea how that works, but it's awesome. Can I use it in my game?
Re: Simple plasma effect
Yep, it is recursive subdivision, not precisely the standard algorithm but more or less the same. I'll take a look at yours too, probably very similar though.mlepage wrote:Nice!
Is that using recursive subdivision? I have some Lua code that does that, using diamond-square algorithm, see here: https://github.com/mlepage/heightmap
EDIT - yours is probably better; I don't use a power-of-two map (and throw away pieces I don't need), instead I try and work around the non-power-of-two-ness in the recursion itself, which makes my algo more complex (and probably slower than it needs to be) and gives it funny granular artifacts for certain input sizes. Yours is guaranteed to not display such artifacts (at the expense of additional throwaway computation)
Who is online
Users browsing this forum: Ahrefs [Bot] and 2 guests