SLua geek gadgets demo/fullperm copies
Frionil Fang
I've been converting some of my LSL projects into SLua and set them up at the SLua sandboxes for a demonstration.
At the time of this writing, what's set up:
- A computer (emulates a 6502 CPU and custom devices to run a computer within SL), which can be poked at and played with - the SLua implementation runs maybe 3x+ faster than LSL, thanks to easier data handling with buffers and other improvements, clocking at roughly ~1.5 kHz real CPU equivalent. Feel free to poke at it, there's a short explanation and a game to play on it.
- Mandelbrot/Julia fractal plotters, just the classic ones on a 40x40 pixel grid. These are fullperm including the script, right click+buy to get a copy.
- A complex number class, to enable doing complex number arithmetic with normal SLua equations, compatible with built in numbers. Not actually used by the fractal plotters since it's slower than optimized manual computation, but good for prototyping or just having a complex number calculator. Demo is rather minimal, just compares Euler's formula results to built-in sine and cosine. Fullperm copy via click.
Will probably add more things still, as inspiration strikes.
Location:
Log In
Frionil Fang
Tinkered together something that would've been painful to do with LSL: a node-based "filter simulator". It sets up a graph of node objects consisting of signal sources, wires that induce a signal delay and signal combiners, which will result in reasonably realistic looking filtering. Signals are drawn with particles. I remember taking a class on this some 20 years ago and refused to look up any information to see if I'm doing it right, for exploration's sake.
Frionil Fang
Converted my free-rule cellular automaton to SLua too. Unfortunately it relies a bit heavily on bit ops (it's based on storing bitfields in integers) and speed could be better, so it will need a deeper rework to be more SLua-friendly. Also put out a demo gadget with hue-space to RGB color conversions, can grab the fullperm code as a copy.