PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Plasma demo, re-sizing?

Has anyone taken the plasma demo apart to the point of being able to produce plasma of any given size. I had a quick attempt with Burning Sheep's demo but could not see how to re-code to have a smaller piece of plasma rather than full screen.
Yeah, I just took a look too... not straight-forward. There's a couple of things that would have to change. I was able to get a plasma that looked ALMOST right at a size of 100x100 and 120x160 (the later being closer).

You'll need to change the width and height constants. You'll also need to set an arbitrary width and height later on in the code (it currently just calls GetWidth and GetHeight). You'll also need to adjust the line offset increment accordingly. You'll also need to adjust the x1,x2,x3,y1,y2,y3 variable calculations accordingly for the size you select.

All that and it's still not quite right, and it will still have to aligned to the upper left-hand corner of the screen.

Argh, not worth it :)
Thanks, I'm now thinking of using 3D to do this as I can get quite close to the effect of 2D plasma by modifying vertices' intensity to get moving patterns on a texture & this can be any size with tiny memory overhead.