From: Terry Welsh (mogumbo++at++totalmail.com)
Date: 03/17/2004 07:17:46
Don't forget to try setting up your texture with and without mipmapping. I've seen a pretty big performance hit doing animated textures with mipmapping turned on.
Terry
From: Paolo Farinelli <paolo++at++sgi.com>
Date: Tue, 16 Mar 2004 19:56:52 -0800
Subject: Re: [info-performer] How to put Video Stream into performer in real-time?
Hi JaeYoon,
you can use pfTexture::subload and pfTexture::subloadLevel.
Check out pfTexture man pages for more info.
Your Performer code would look something like this
(make sure you do this in a DRAW process):
tex->subloadLevel ( PFTEX_SOURCE_IMAGE /* source */,
readVideoFrameBuf /* image */,
0, 0, /* xsrc, ysrc */
1024, /* srcwidth */
0, 0, /* xdst, ydst */
1024, 1024, /* xsize, ysize */
PFTEX_LEVEL_BASE /* miplevel */ );
Hope this helps.
Regards,
Paolo
JaeYoon Kim wrote:
> HI
>
> I am interested in puting video stream into perfermer in real-time.
>
> In OpenGL, we use glTextImage2D() to insert rgb data of video stream. ( example source code)
> I think there is simiar function or way in performer, but I am unskilled at performer.
> How to conver this code to performer?
>
> Could you give me any advice ?
> Thanks
>
>
>
> <example OpenGL source code>
>
> glEnable(GL_TEXTURE_2D);
> glBindTexture(GL_TEXTURE_2D, texHandle);
> glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, glInternalFormat,glType, readVideoFrameBuf);
>
>-----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>-----------------------------------------------------------------------
>
>
>
>
-- Paolo Farinelli paolo++at++sgi.com Member of Technical Staff, OpenGL Performer 1-650-933-1808 Silicon Graphics 1600 Amphitheatre Pkwy, Mountain View, CA 94043_____________________________________________________________ Get Your Free Email at http://www.totalmail.com
This archive was generated by hypermail 2b29 : Wed Mar 17 2004 - 07:21:11 PST