Re: video texture on Octane

New Message Reply Date view Thread view Subject view Author view

From: Marc Price (marcp++at++rd.bbc.co.uk)
Date: 08/29/2000 01:50:43


Tetsu Miyagi wrote:
>
> Hello, I am Miyagi,Tetsu.
>
> I want to use video textures on Octane(IRIX6.5), but I
> cannot do it.
>
> When executing 'movietex' sample, its cannot draw a picture from
> Octane camera on a texture and it colored black in the window.
> But I can see a picture of the camera on 'live video input'.
>
> How can I do 'movietex' on Octane?
>
> Thanks in advance.

Hi Tetsu and other performers,

I have been developing an app which makes use of a video texture.
There are a number of problems with this, not all of which (so far),
I have been able to resolve (see my earlier emails to this group).

However, I would suggest as an initial measure, to place a call to
`glXMakeCurrentReadSGI()' within the draw process. This is
recommended in one of the Performer man pages (sorry, I can't
remember which one), and is a work-around for a known Octane h/w
bug.

I have appended the code for the draw process of my prototype app
as an example.

Hope this helps. If not, maybe Angus could shed some light?

Marc
Dr Marc Price
------------------------------------------------------------------------
BBC Research and Development,
Kingswood Warren, Tel: +44 (0)1737 839789
Tadworth, email: Marc.Price++at++rd.bbc.co.uk
Surrey KT20 6NP Fax: +44 (0)1737 839665

//-----------------------------------------------------------------------------
// Drawing Process
static void DrawChannel (pfChannel *channel, void *data)
{
        unsigned char *readBuffer;
        int dmError;
        char dmMessage[DM_MAX_ERROR_DETAIL];

        // erase framebuffer and draw Earth-Sky model
        channel->clear();

        // attach read and write drawables to context
        if ((Shared->blend_flag)&&(!Shared->vldmedia))
                glXMakeCurrentReadSGI(Shared->dsp, Shared->pw->getWSDrawable(),
                                        Shared->glxvidsrc, Shared->pw->getGLCxt());

        // invoke Performer draw-processing for this frame
        pfDraw();

        // process video
        ProcessVideoEvents();
        {
                int err;
                if ((err = glGetError()) != GL_NO_ERROR)
pfNotify(PFNFY_NOTICE,PFNFY_USAGE,"OpenGL Error 0x%x - %s",err,
gluErrorString(err));
        }
}


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Aug 29 2000 - 01:52:10 PDT

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