From: Paolo Farinelli (paolo++at++sgi.com)
Date: 11/24/2004 19:51:31
Hi Chiron,
Yes, dynamically subloading to pfTextures is broken in performer3.1*.
We have fixed this for the upcoming performer 3.2 release.
Regards,
Paolo
c.mottram wrote:
> Please can I clarify my problem,
> I have a pfTexture * tex, I can load it up quite happily with
> tex->setImage( (unsigned int*)image, 4, camerawidth, cameraheight, 0 );
> Every frame the image changes , on 3.0 I used the following code,
> which works fine, this code I culled from an earlier discussion on the
> subject.
> Does everyone else's code still work?
> Or have I missed something?????
> Chiron
> int ims = 512;
> 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.
-- 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
This archive was generated by hypermail 2b29 : Wed Nov 24 2004 - 19:51:40 PST