Playing dmedia libMovieGL's in my Performer window

New Message Reply Date view Thread view Subject view Author view

Jeremy Friesner (jaf++at++chem.ucsd.edu)
Thu, 3 Oct 1996 17:24:11 -0700 (PDT)


Hi Everybody,

I'm trying to create an "intro animation" for my project by
letting my draw process play libmovieGL movies into my Performer 2.0.2 GL/X
window. To do this, I have to call
   
  mvBindOpenGLWindow(MVid movieid, Display* dpy, Window win, GLXContext ctxt);

Okay... I have movieid from my previous call to mvOpenFile(), dpy I can get by
calling pfGetCurWSConnection(), and win (I presume) is either the xWin or
glWin entry in the struct returned by my pfuGLXWinopen() call. Lastly, ctxt I
should be able to get by calling the getGLCxt() method of my pfWindow.

So, I plug all of these in and go to run the movie... and surprise, it
doesn't work. :( Instead, I get nasty errors from the window manager such as:

X Error of failed request: BadAccess (attempt to access private resource denied)
  Major opcode of failed request: 141 (GLX)
  Minor opcode of failed request: 5 (X_GLXMakeCurrent)
  Serial number of failed request: 0
  Current serial number in output stream: 14

It seems things are a little more complicated than I had hoped. :( Does
anyone out there have experience doing this? Some hints or example code
would be WAY appreciated here!

Thanks much,
Jeremy
jaf++at++chem.ucsd.edu
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:43 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.