<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large;color:#073763">ok cool.</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large;color:#073763"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large;color:#073763">and does glshader can take vertex shader files besides fragment shaders ??</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 14, 2015 at 11:05 PM, Matthew Waters <span dir="ltr"><<a href="mailto:ystreet00@gmail.com" target="_blank">ystreet00@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
Currently you cannot just use any shader you grab off the internet
in glshader. If the shader is ill-formed (syntax errors, etc) then
we will be unable to use it and glshader will error out
appropriately (perhaps with the obscure error). You can see some
debug information by setting GST_DEBUG=3 or GST_DEBUG=gl*:7 for
everything GL related about why it failed to initialize and what it
was trying to do.<br>
<br>
The other thing to watch is that the attributes (position/texture
coordinates) must match the gst_gl_shader_set_uniform*() calls in
glshader.c otherwise GL does not know how to match the necessary
information to render the quad.<br>
<br>
-Matt<div><div class="h5"><br>
<br>
<div>On 14/08/15 12:07, Hamdi Rakkez wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large;color:#073763">Hi all,</div>
<div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large;color:#073763"><br>
</div>
<div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large;color:#073763">I'm using <b>gstreamer1.5.1</b>
on ubuntu 14.04 LTS</div>
<div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large;color:#073763"><br>
</div>
<div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large;color:#073763">My question is
why can't I use any <b>shader</b> file with <b>glshader</b>
element.</div>
<div class="gmail_default"><span style="color:rgb(7,55,99)">In most of the time I get this
error message from <b>gstglfilter.c</b> "</span><font color="#ff0000">Subclass failed to initialize</font><font color="#073763">"</font></div>
<div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large;color:#073763"><br>
</div>
<div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large;color:#073763">I have a simple <b>shader</b>
file which works actually but a lot of other files simply
don't and <b>gstreamer</b> always come out with the same
error mentioned above.</div>
<div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large;color:#073763"><br>
</div>
<div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large;color:#073763">Best,</div>
<div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large;color:#073763">Hamdi</div>
</div>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br></div>