Three years ago I had to use Macromedia’s Director for an interactive video for my university. Being an open source guy, I wanted desperately to find an alternative to Director for Linux, but I couldn’t, or at least I couldn’t find something to fit my cause. Three years later, after having more experience with Blender and BGE I stumbled upon my old files and project and I though: “What about Blender?!”
So I made it.
To warn you, the Video quality is very low. The codecs used are wrong. And it was one of my first times using a camcorder.
But it’s the thought that counts and the possibility that Blender can replace Director as an interactive tool (with ease in many aspects).
The project is similar to these:
So, in this one you can choose a character’s point of view and make 2 decisions along the movie.
I’m glad you liked it. This technique is used for game intros as well.
If everything goes as I expect, in 2-3 days from now the first tutorial will be ready and it will cover the basics of this feature and how can be used.
# get video
video = obj["Video"]
# update the video
if video hasn’t been added
# import VideoTexture module
# get matID for the movie screen
matID = VideoTexture.materialID(obj, "MA" + obj['material'])
# get the texture
video = VideoTexture.Texture(obj, matID)
movieName = obj['movie']
# get movie path
movie = bge.logic.expandPath('//' + movieName)
# get movie
video.source = VideoTexture.VideoFFmpeg(movie)
# set scaling
video.source.scale = True
# save mirror as an object variable
obj["Video"] = video
# check for optional loop property
if "loop" in obj:
# loop it forever
if obj['loop'] == True:
video.source.repeat = -1
# no looping
video.source.repeat = 0
# start the video