From: c.mottram (ucftchr++at++ucl.ac.uk)
Date: 11/19/2004 04:13:16
HI all,
I've found that my video textures and my stereo view no longer works with
version 3.1, is there anything obvious I could have missed here, that could
lead to both features no longer working.
I'm working on a Windows 2000 with Wildcat 5110.
The stereo view worked like this
pfPipe *pipe = pfGetPipe(0);
pfPipeWindow* pw = new pfPipeWindow(pipe);
pfPipeWindow* pw2 = new pfPipeWindow(pipe);
then I set the size position etc.
then
chan = new pfChannel(pipe);
right = new pfChannel(pipe);
mask = chan->getShare();
mask|=PFCHAN_SWAPBUFFERS;
chan->setShare(mask);
chan->attach(right);
pw2->addChan(right);
pw->addChan(chan);
fairly simple..
The texture code went as follows
int s = camerawidth*cameraheight*4;
image = (long*)pfMalloc (sizeof(long)*s, pfGetSharedArena());
int ims = 512;
while(camerawidth>ims)ims*=2;
tex->setImage( (unsigned int*)image, 4, ims, ims, 0 );
tex->setFilter( PFTEX_MINFILTER, PFTEX_LINEAR );
tex->setFilter( PFTEX_MAGFILTER, PFTEX_LINEAR );
tex->setRepeat( PFTEX_WRAP_S, PFTEX_CLAMP );
tex->setRepeat( PFTEX_WRAP_T, PFTEX_CLAMP );
tex->setFormat( PFTEX_INTERNAL_FORMAT, GL_RGBA );
tex->setFormat( PFTEX_SUBLOAD_FORMAT, PF_ON );
tex->setLoadMode( PFTEX_LOAD_BASE, PFTEX_BASE_AUTO_SUBLOAD );
tex->setLoadOrigin( PFTEX_ORIGIN_DEST, 0, 0 );
tex->setLoadSize( camerawidth, cameraheight );
tex->setLoadImage( (unsigned int*)image);
I then to a tex->load() every frame.
I'm getting nothing though.
I would be grateful for any help
cheers
Chiron
This archive was generated by hypermail 2b29 : Fri Nov 19 2004 - 04:14:00 PST