📊↝
-
-
Pretty!
-
-
@Tsaukpaetra said in 📊↝:
Pretty!
And pretty impressive that it keeps up the rendering without significantly impacting on my CPU load.
-
drawing the rest left as an exercise
-
pow(t, x)
kinda looks like a TV I had which had a broken HDMI port.
-
I won't be held responsible for any damage produced to your eyes
Here's a sneak preview
(bonus mode: scroll your screen)
-
-
-
I messed up something somewhere with the math/coordinate system/intersecting a bloody sphere, but this isn't exactly a great environment for developing and debugging. Also, I think I may have missed the point...
-
(bonus mode: scroll your screen)
Nice, you can actually see the overdrive kick in.
-
And pretty impressive that it keeps up the rendering without significantly impacting on my CPU load.
It just takes the expression and pastes it into a WebGL shader inside a function. Even a mediocre GPU will be able to push a few sin/cos per pixel these days. (And even a mediocre GLSL compiler should be able to identify common subexpressions and avoid recomputing them. Emphasis on should.)
-
Looks like something you could potentially create EarthBound-style battle backgrounds in.
https://www.youtube.com/watch?v=iaL8m6dGros&list=PLgcu3QFgM8vn5DmVfdnKtti2wTySJv9bU
-
Emphasis on should.
The one I tested with worked. (My installation of Chrome failed miserably though.)
-
Literal numbers only work if they have a period in them? Maddening.
FAKE EDIT: Oh, it's fragment shader syntax. That explains why it's so maddening in general.
-
drawing the rest left as an exercise
Aw, that's no fun, you didn't even include a time component!
-
I won't be held responsible for any damage produced to your eyes
That one would be for @aliceif …
-
This is fun. I should waste time with shaders more often.
-
-
@anonymous234 said in 📊↝:
This is fun. I should waste time with shaders more often.
NodeBB link parsing sucks so here's a manually created link
Pic for posterity.
-
Also, I think I may have missed the point...
Show-off. :P
Why does it start with1.0);}
? Did you do code injection? Nice one.
-
Why does it start with 1.0);}? Did you do code injection? Nice one.
Yeah. You can actually expand the "fragmentShader" section on the page, and it will show you the template it uses for the fragment shader (so it's not that hard to figure out...). In particular:
float value(float x, float y) {
return (${value});
}${value}
is where the expression is pasted in.1.0);}
just gets me out of that function so I can write arbitrary GLSL code directly. (There's a similar fixup at the end of the "injected" code.)
-
I won't be held responsible for any damage produced to your eyes
Here's a sneak preview
(bonus mode: scroll your screen)Apparently my monitor's refresh rate is usually high enough that I don't see that at all. I can see perhaps 25 dot-ovals. If I leave the calculation going long enough, I start to see circles. But, taking a screenshot reveals there are many more circles....
Scrolling seems to remove the circles though, not sure what that's about...
-
@Tsaukpaetra said in 📊↝:
Scrolling seems to remove the circles though, not sure what that's about...
It causes me no problems… on a high-DPI screen.
-
Hmm, I think I have some old HLSL code somewhere that rendered a star and its corona completely on the GPU with Perlin noise, from an old aborted video game attempt. I should try to dig that out later and see if I can adapt it to this.
-
@Zecc You know, you can just say
pi
instead of typing out the number.
-
-
@pie_flavor said in 📊↝:
@Zecc You know, you can just say
pi
instead of typing out the number.I know now. (y)
-
-
-
-
sin(sqrt(x*x + y*y)*t/10.0)
-
I'm really surprised nobody has done a penis one yet.
-
-
@pie_flavor said in 📊↝:
@Zecc You know, you can just say
pi
instead of typing out the number.(oh, come on GIS, nobody ever thought of making a "knights who say Pi" caption before???)
-
-
@ben_lubar said in 📊↝:
It's goatse.cx. GET IT RIGHT.
There have been many aliases. The wise man avoids anything that might possibly match, just in case…
-
cos(x+t) * sin(y+t) + sin(sqrt(x*x + y*y)*cos(t))
-
Wanted to show you TDWTFers my pulsating , but it looks like I'm rough and kludgy.
Damn iso lines just didn't end up where they were supposed to end up. Oh well.
EDIT: This one is much nicer. Have some love!
-
@ben_lubar said in 📊↝:
It's goatse.cx. GET IT RIGHT.
Okay, okay. No need to be so anal about it.
-
Interesting. The title of this thread according to the URL is
topic
.
-
@pie_flavor said in 📊↝:
Interesting. The title of this thread according to the URL is
title
.No repro.
-
@pie_flavor said in 📊↝:
Interesting. The title of this thread according to the URL is
title
.No, it's "topic":
-
@Tsaukpaetra Whoops, mistyped.
-
-
@Tsaukpaetra said in 📊↝:
@pie_flavor said in 📊↝:
@Tsaukpaetra Whoops, mistyped.
Doing as tell.
what?
-
@pie_flavor said in 📊↝:
@Tsaukpaetra said in 📊↝:
@pie_flavor said in 📊↝:
@Tsaukpaetra Whoops, mistyped.
Doing as tell.
what?
It's an original variant of "laugh as yep" that you adore reminding me about.
-
@Tsaukpaetra Except the former you actually typed, and the latter I didn't. Also mobile wackiness is different from brain confusion.
-
@pie_flavor said in 📊↝:
@Tsaukpaetra Except the former you actually typed, and the latter I didn't. Also mobile wackiness is different from brain confusion.
So you didn't type this.
@pie_flavor said in 📊↝:
Interesting. The title of this thread according to the URL is
topic
.I see...
-
@Tsaukpaetra Correct. I did not type 'doing as tell'.