From: Paolo Farinelli (paolo++at++sgi.com)
Date: 12/02/2004 16:21:27
Hi Patrick,
if you are using Performer's emulated cliptextures, you may
need to call pfGeoSet::updateCteRefs for every cliptextured
geoset AFTER assigning cliptexture to geostate and assigning
geostate to geosets.
Also see man pfGeoSet.
Hope this helps.
Regards,
Paolo
Patrick J Melody - CONTRACTOR wrote:
>i am doing roughly the following:
>
>initially:
> mpct = pfdLoadMPClipTexture("foo.ct");
> pfuAddMPClipTexturesToPipes(listContaining_mpct, masterPipe, NULL);
> geostate->setAttr(PFSTATE_TEXTURE, mpct->getClipTexture());
>on every frame thereafter:
> mpct->setCenter(s, t, 0);
>
>this is single pipe, single process (let's start simple...).
>
>the result i am getting is that the texture appears, but only the
>non-clipped levels seem to be showing. initially it seems to try to load
>all the tiles down to the finest LOD, but it never displays them and as i
>roam around no extra tile loading occurs. this code is roughly a
>rearrangement of the spherepatch3 code. (i basically intend to divorce
>the texture loading code from the geometry generation code in the
>spherepatch3 loader, so i can load a gazillion cliptextures at user whim
>and slap the one the user specifies on the spherepatch geometry.) right
>now the new "spherepatch" loader just generates geometry with a default
>pfTexture. the app manually does the "initially" part above on user
>command after the geometry is loaded up and displaying it's default
>pfTexture.
>
>any ideas what i might be doing wrong or forgetting or otherwise
>inadvertantly changed?
>
>thanks,
>
>- patrick melody, ITT Industries ++at++ Naval Research Laboratory
>
>-----------------------------------------------------------------------
> 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
This archive was generated by hypermail 2b29 : Thu Dec 02 2004 - 16:22:04 PST