Differences

This shows you the differences between two versions of the page.

Link to this comparison view

mgl:functionreferencemovie [2011/07/19 18:53]
mgl:functionreferencemovie [2011/07/19 18:56]
Line 2: Line 2:
 **availability**:​ [[mgl:​beta|mgl 2.0]] Mac OS X 64-bit Matlab only\\ **availability**:​ [[mgl:​beta|mgl 2.0]] Mac OS X 64-bit Matlab only\\
 **usage**: movieStruct = mglMovie(filename,​position) or mglMovie(movieStruct,​command,<​argument>​);​\\ **usage**: movieStruct = mglMovie(filename,​position) or mglMovie(movieStruct,​command,<​argument>​);​\\
-**purpose**:​ Used to display quicktime movies. (This *only* works on 64 bit Mac. There is some issue with the quicktime library QTKit and threads which does not seem to be a problem on 64 bit). You also need to be using a cocoa window, so make sure to set mglSetParam('​useCGL',0) before running mglOpen.+**purpose**:​ Used to display quicktime movies. (This *only* works on 64 bit Mac. There is some issue with the quicktime library QTKit and threads which does not seem to be a problem on 64 bit). You also need to be using a cocoa window, so make sure to set mglSetParam('​movieMode',1) before running mglOpen.
    
 Also, note that the movies will play in front of the openGL buffer. Thus you can't draw on top of the movie and mglFrameGrab won't grab the movie frame -- you can grab movie frames with mglMovie(m,'​getFrame'​);​ Also, note that the movies will play in front of the openGL buffer. Thus you can't draw on top of the movie and mglFrameGrab won't grab the movie frame -- you can grab movie frames with mglMovie(m,'​getFrame'​);​
Line 8: Line 8:
 To init the movie, you open with a filename, and an optional position array [x y width height] and save the returned structure. To init the movie, you open with a filename, and an optional position array [x y width height] and save the returned structure.
    
 +  mglSetParam('​movieMode',​1);​
 +  mglOpen;
   m = mglMovie('​movie.mov'​);​   m = mglMovie('​movie.mov'​);​