movietex and OpenGL

New Message Reply Date view Thread view Subject view Author view

Dewey Anderson (dewey++at++evt.com)
Fri, 26 Apr 1996 18:10:37 -0700


I've had some trouble trying to get movietex to work with OpenGl. (I haven't
tried IGL.) This is on an Onyx REII, Performer 2.0, IRIX 5.3.

First I had to fix some errors to get it to compile, to wit:

The variable "DoFields" was declared twice. I removed one.

In VideoInit, the line

     videosource = glXCreateGLXVideoSourceSGIX(Dsp, 0 /* screen */,
            vlServer, vlPath, VL_TEXTURE, vlDrn)) == None);

has unbalanced parentheses. Since there was no obvious "if" action taking
place, I just removed the ") == None)"

There were also 4 calls to "mmode" which is not OGL. I replaced them with
calls to glMatrixMode.

And then I installed patch 154 so that the GLXVideoSourceSGIX stuff in
VideoInit would work.

This done, I got it to compile and run. I used the -vR commands, i.e.:

movietex -vR

so that it would map video onto the texture and begin running immediately.

All I get is a white square rotating about the Z axis. The motion looks right,
but that white square is supposed to be incoming video. I have called up the
video control panel and done "Live Video Input" to verify that the video is
coming in OK. It is. Also, vidtotex works fine, so I'm confident the video
can get in OK. movietex just doesn't seem to be able to do the "Performery"
thing with it.

Has anybody gotten movietex to work with live video and OpenGL?

Naturally, my objective isn't to have movietex running, but to use a working
example as a guide to get my own application to work. But I can't get the
example to work.

Thanks,

Dewey K. Anderson
Evolving Video Technologies
Arvada, Colorado


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:52:46 PDT

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