Dark Bit Factory & Gravity

GENERAL => Challenges & Competitions => Topic started by: Jim on August 03, 2008

Title: [REDUCED RES] PL4SMA
Post by: Jim on August 03, 2008
Here's a plasma in 4 colours.
You will need a fast machine to see this work. It must be run full screen and screenshot doesn't work so well.
I guarantee there are only the 4 same colours used at all times. ;)

Warning:  If you are affected by flickering displays, please be aware that this demo has a lot of fast moving graphics that may aggravate your condition.

Jim

<edit, posted the wrong version and wasted a colour!>
<edit, got rid of some really bad fringeing>
<edit, flicker warning>
Title: Re: [REDUCED RES] PL4SMA
Post by: Xalthorn on August 03, 2008
On a fast machine, does the flicker go away?  I tried to do some colour mixing by alternating colours really quickly but I ended up with the same headache inducing flicker :(
Title: Re: [REDUCED RES] PL4SMA
Post by: Jim on August 03, 2008
Unfortunately not, but if it goes under 60Hz the effect goes away.  Are you using CRT or LCD?  On my LCD the effect is quite watchable except for the cyan mix which is nasty. :)

Jim
Title: Re: [REDUCED RES] PL4SMA
Post by: Shockwave on August 03, 2008
You can still see the colours mixing on a crt screen, it's a clever way around the 4 colour limitation, the plasma pattern you used is nice too :)
Title: Re: [REDUCED RES] PL4SMA
Post by: Xalthorn on August 03, 2008
Unfortunately not, but if it goes under 60Hz the effect goes away.  Are you using CRT or LCD?  On my LCD the effect is quite watchable except for the cyan mix which is nasty. :)

Jim


I'm on an LCD laptop.  It's watchable, but with mad flickering.
Title: Re: [REDUCED RES] PL4SMA
Post by: benny! on August 03, 2008
Yup. It's flickering - but with that flickering you actually
believe that there are more colors than only 4. So, nice
side-effect of this flickering ;-)

Thumb up for cool name - pl4sma!
Title: Re: [REDUCED RES] PL4SMA
Post by: rain_storm on August 03, 2008
Lol I am working on a plasma too very different though, I never thought of interleaving two pallets but this is a valid technique for extending the pallet beyond the limits. Im getting cyan thats hard on he eyes too but the purple and orange are acceptable.
Title: Re: [REDUCED RES] PL4SMA
Post by: Jim on August 03, 2008
I'm only using red, green, blue, and orange.  Never any more.  Not using 4 for one frame 4 for another.  The comp says 4 colours :).  You're right it is painful sometimes, cyan (b+g) is easily the worst, but if I put a cyan solid colour in instead of orange it looks terrible.  I was laughing out loud about the possible results.

btw.  bonus feature I forgot to remove.  Press Space to get a random 4 colour palette.  Everything is real-time, including the colour matching, so you can try endless combinations.  The good ones I've seen have black, white, and green, brown as picks, but I bet there are infinitely more.

Jim
Title: Re: [REDUCED RES] PL4SMA
Post by: gooner on August 03, 2008
Works fine on my laptop might need an epilepsy warning on it though.
Liked the interactive part with the space bar cool.Btw no matter how many times i hit the space bar i nether got back to the original colour scheme.Nice effect.
 :clap:
Title: Re: [REDUCED RES] PL4SMA
Post by: benny! on August 03, 2008
Some very artistic stylish pattern using SPACE key.
Nice easteregg, Jim!
Title: Re: [REDUCED RES] PL4SMA
Post by: Naptha on August 03, 2008
I really think that if you post something with rapid flickering you should say so in your post, this is a real issue for some people...

However, I liked it for as long as I was able to watch it.  :)
Title: Re: [REDUCED RES] PL4SMA
Post by: rain_storm on August 03, 2008
Jim you are allowed to alter the pallet between frames just so long as there are no more than 4 colours displayed at any one time. I am planning on using an adaptive pallet in my plasma that will reduce 16-32 colours to 4 optimised colours tailored to each frames needs.
Title: Re: [REDUCED RES] PL4SMA
Post by: Jim on August 03, 2008
I reckon I get 10 colours with my flickering - each of the 4 colours can be followed with one of the others.  Two of the demos so far use ordered dithering which means that you end up with a lower 2d resolution, and at 160x120 that's the last thing you want to do - you trade off x,y res for more colours.  What I really wanted to show is that there is a 3rd, temporal, dimension which means my demo is higher resolution than the others but is limited to 30Hz instead of 60Hz.  It's a very interesting subject to see how these possibilities work out.

I apologise profusely for the the flickering.  I didn't think it was bad enough for a warning, but I've changed the OP to warn.  Thanks for the heads up.

Jim
Title: Re: [REDUCED RES] PL4SMA
Post by: Shockwave on August 03, 2008
You could have a palette of millions of colours if you wanted as long as no more than 4 of them are on screen at once btw.

As I said above, I was really surprised at this method. It's bound to flicker but hats off to you Jim, it's a clever way of adding more colours!



Title: Re: [REDUCED RES] PL4SMA
Post by: Jim on August 03, 2008
That's cool, I did see that possibility, and wondered whether I might get away with it, but it's awesome coding with both hands, one leg and one eye tied behind your back ;D  Makes me realise how spoiled I am with C#, or 4Gb of memory, or infinite pixel shader bandwidth.  This one is in FB and uses ptc_ext.

btw, this is a Perlin noise plasma, and not just a bunch of sin waves, which makes it look a bit different. And costs a lot of cpu - sin waves would have been easier to get under control.  I watched a dozen plasma demos to see how they get their fx.  I'm still in awe of the really blobby ones, the ones that are not just concentric circle blends.  This one, then, turns out pretty cranky!

Jim
Title: Re: [REDUCED RES] PL4SMA
Post by: Pixel_Outlaw on August 03, 2008
Very cool!


Runs very well and looks great.
Title: Re: [REDUCED RES] PL4SMA
Post by: Ghost^BHT on August 04, 2008
Just what i needed before bedtime. :)  Great plazma that drove my eyes wacky. :) Good effect
 
Title: Re: [REDUCED RES] PL4SMA
Post by: Praecor on September 01, 2008
Runs fine, doesn't flicker to much, an interesting idea behind it.