Blender Game Engine videoTexture alpha masking effect on single surface in GLSL

Subscribers:
261
Published on ● Video Link: https://www.youtube.com/watch?v=0CRREbJAn9c



Category:
Let's Play
Duration: 1:52
1,803 views
17


[Watch the video on the left, the Quake 4 clip is blended with the Sailor Moon Stars into clip using the alpha of the Q2 transition]

More BGE videoTexture testing; thanks to Topher for making this possible, now it works properly in glsl! And as a result, it is possible to fairly easily stencil map between 2 videos on a single material; if the script is updated to auto freezeframe on a clip after playing (and later replaying of that clip from the start), A/B wipe transitions could be done fairly easily I think. Getting the texture layers setup to do this is quite a pain, and it's probably a little wasteful how i'm handling it here; but it's just testing. Also I have a scene overlaying showing the QL logo graphic, background scenes should also work fine. The Miku video is on a curved mesh; and I use the same q2 transition as alpha channel for the monkey video in the lower right. This is still just 5 video clips; though I'm sure I can add as many more as I might need to the script; and also get it to get video source files from bge properties instead of being hardcoded into the script; my previous demo used that method so you could just put the filenames into properties for that object. Perhaps a object could be used to list video sources. Anyways the possibilities of all of this are semi endless. Note that audio in this is not synced in BGE; the script doesn't handle audio, but thatis possible and fairly easy to do. For this demo I just synced up the song in the sequencer timeline. Though it's slightly off I think, the Sequencer will not allow you to get sub-frame level precision with placement in the timeline, it just snaps strips to frames; a bit lame for sure (makes it impractical for audio sync critical things), but anyways thats another topic. I'm sure audio-follow-video is possible to achieve with BGE now :) More testing to come!







Tags:
bge
blender
game
engine
3d
video
texture
videoexture
alpha
channel
transition
overlay
downstream
key
dsk
keying
glsl
mixing
mixer
miku
vocaloid
sailor
moon
sailormoon