bbc / VideoContext

An experimental HTML5 & WebGL video composition and rendering API.
http://bbc.github.io/VideoContext/
Apache License 2.0
1.33k stars 156 forks source link

Using GLSL scale and position together with VideoContext #150

Open kingpalethe opened 5 years ago

kingpalethe commented 5 years ago

cross-posted to stackoverflow: https://stackoverflow.com/questions/55542654/how-to-use-glsl-scale-and-position-together-with-videocontext

I have made a CodePen demonstrating the problem here: https://codepen.io/kingpalethe/pen/xeVYLr?editors=0010

I am trying to apply glsl Scale to media, which works ok, but when I then subsequently use a Position effect, I find that the media is then "cut off" at the top, revealing the black background color, making a sort of "black bar" at the top of the media. Please see the problem area circled in red here: https://i.stack.imgur.com/Kltuf.png

This seems like strange behavior to me, since I had already scaled up the media.

PTaylour commented 5 years ago

Thanks for the codepen. I'll take a look

PTaylour commented 5 years ago

Did you make any progress on this @kingpalethe?