From: c.mottram (ucftchr++at++ucl.ac.uk)
Date: 11/19/2004 06:19:08
Hi,
Since this morning, I've seemed to have got the stereo going, so its just a
problem with the texture now. So if anyone else has had a problem with
textures after changing from 3.0 to 3.1 please tell me!
The code I have to load a bmp from a file and add to a pfTexture works
fine, so its just a problem with dynamic textures
thanx in advance
Chiron
At 12:13 19/11/2004, you wrote:
>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
>
>-----------------------------------------------------------------------
> 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
>-----------------------------------------------------------------------
>
This archive was generated by hypermail 2b29 : Fri Nov 19 2004 - 06:19:18 PST