Previous topicNext topic

custom glsl shader 'video height' makes round stuff oval

Questions, comments, feedback, etc.
Post Reply
blackdot
Posts: 528
Joined: Sun Jul 06, 2014 10:18 pm

custom glsl shader 'video height' makes round stuff oval

Post 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 3739 times
which turns out to look great with trails and the video height shader:
videoH02.jpg
videoH02.jpg (235.28 KiB) Viewed 3739 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 3739 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.
blackdot
Posts: 528
Joined: Sun Jul 06, 2014 10:18 pm

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

Post by blackdot »

Aah. Is it due to the ingoing resolution not being square?
Magic
Site Admin
Posts: 3440
Joined: Wed Apr 09, 2014 9:28 pm

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

Post 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.
Post Reply