Hi all,
I’m having a hard time writing a custom glsl shader to deal with greenscreen on incoming video from a live camera, and it’s working out ok… the thing is it only works on multitexture mode…
when my fragment shader compiles in GLSL mode, the videotexture simply doesn’t refresh, and is stuck at the actual image texture that should be replaced by the bge.texture module…
if I remove the shader, it refreshes the texture to video, but it won’t allow me do do any changes on it…
I know bge.texture has a built in greenscreen filter, but it’s not enough to get good results, since it does not allow feathering or despilling…
is there a specific order for the scripts? is the script that configures and refreshes the bge.texture messing up my shader, or the shader overriding the changes in the videotexture? can I access the video in the shader itself? so far I only got access to the texture slot of the texture to be replaced, and it works fine in multitexture… but it would be really great to get it to work in GLSL mode as well…
Any help would be appreciated! Thanks
Nuno Estanqueiro