Page 1 of 1

custom glsl shader 'video height' makes round stuff oval

Posted: Wed Mar 25, 2015 11:19 am
by blackdot
hi. played around with the custom glsl video height.txt shader eric. it's pretty neat using the waveform and such. however i've found something odd (at least for me).

i used this input:
videoH01.jpg
videoH01.jpg (224.11 KiB) Viewed 7258 times
which turns out to look great with trails and the video height shader:
videoH02.jpg
videoH02.jpg (235.28 KiB) Viewed 7258 times
BUT it turns out the video height shader makes the input circle not round but actually oval. seen when rotating it using the x param of the shader:
videoH03.jpg
videoH03.jpg (253.87 KiB) Viewed 7258 times
is this just a limitation of the video height shader or am i using it wrong?

also which value(s) would i have to tweak within the shader to increase the amount of "slices" so that it seems less fuzzy? hope you know what i mean.

Re: custom glsl shader 'video height' makes round stuff oval

Posted: Wed Mar 25, 2015 12:34 pm
by blackdot
Aah. Is it due to the ingoing resolution not being square?

Re: custom glsl shader 'video height' makes round stuff oval

Posted: Wed Mar 25, 2015 4:13 pm
by Magic
Good question. I didn't write that one myself -- I'm pretty sure this is the original: https://www.shadertoy.com/view/Xss3zr#. If I remember correctly, I made an edit to remove the background gradient, but other than that I didn't make any changes.

I'll have a look and see if I can improve the issues you noticed. In particular, other programmers often ignore the aspect ratio of the window (perhaps because it makes things a bit more complicated), so the width distortion is a common problem.