OpenGL + video with transparent background + Jit.gl.Hap

Sep 1, 2013 at 11:51am

OpenGL + video with transparent background + Jit.gl.Hap

Dear Everybody,

I’m under a bit of time pressure, and will therefore ask a humble question :)

I have a bunch of videos I want to run using jit.gl.hap. Everything works fine, until today, where I found out that I have to key out a bunch of backgrounds.

I want to use the jit.gl.hap encoded with HAP-ALPHA, but I don’t get how to make OpenGL show my video with the alpha mask I have applied..

Any help will be very greatly appreciated.. A solution could also be using other OpenGL stuff, and not jit.gl.HAP, but it’s a little heavy on the computer, so HAP will be great!

Hope to hear from you (btw. OpenGL in jitter – and in general – is really new, so I might need a little bit of a newbie explanation :)

All the best,
Lasse

#263911
Sep 1, 2013 at 11:51am

an example of a HAP-ALPHA encodet video is found here:

https://dl.dropboxusercontent.com/u/4496379/HAP_ALPHA-TEST.zip

#263912
Sep 1, 2013 at 12:15pm

the answer is “blend_enable 1″ to the jit.gl.videoplane

#263914
Sep 1, 2013 at 1:15pm

Good for you, man. Keep at it! :)

#263917
Sep 2, 2013 at 11:29am

you will probably also want to disable depth on the objects that are to be alpha-blended (@depth_enable 0). you then use the @layer attribute to control the layer order.

#264025
Sep 8, 2013 at 1:11pm

ah cool! thanks :)

#264660

You must be logged in to reply to this topic.