Blender Git Commit Log

Git Commits -> Revision f01f394

Revision f01f394 by Benoit Bolsee (decklink)
March 29, 2015, 11:59 (GMT)
BGE: BL_Shader.setUniformEyef(): new uniform type to pass stereo eye value.

BL_Shader.setUniformEyef() python method to define a uniform that will
receive the eye value as a float: 0.0 when rendering the left eye, 0.5
when rendering the right eye.
This can be used in a shader to split a 3D texture sent to the GPU by
VideoDeckLink as the left+right eye frame is sent as a single texture in
bottom/top order.

Work around a bug in VideoDeckLink with the the DVP library: the call to
dvpBindToGLCtx() fails for the first frame. This needs to be investigated
but for now catch the exception thrown by this condition and release the
decklink frame anyway as otherwise it corrupts the reference count of the
decklink device.

Commit Details:

Full Hash: f01f3949829fd71e87ece10744c42d523b414132
Parent Commit: ad75477
Lines Changed: +95, -40

3 Modified Paths:

/source/gameengine/Ketsji/BL_Shader.cpp (+31, -0) (Diff)
/source/gameengine/Ketsji/BL_Shader.h (+2, -0) (Diff)
/source/gameengine/VideoTexture/VideoDeckLink.cpp (+62, -40) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021