From: Marcin Romaszewicz (marcin++at++sgi.com)
Date: 10/24/2002 11:41:28
pfGeoSets are not multibuffered objects, meaning that changes like this
will not happen in a frame synchronous manner. You will basically get
unpredictable behavior. What you need to do is use "fluxed" texture
coordinates or a fluxed pfGeoSet. Take a look at the pfGeoSet man page and
read about fluxed attributes; this is what you want to use.
-- Marcin
On Thu, 24 Oct 2002, Keith Parkins wrote:
> Hi,
>
> I am trying to change the repeat rate of textures on an object on the fly.
> Right now, I set two pfVec2*, (texcordsfat, texcordsthin) and then try to
> change the associated objects PFGS_TEXCOORD2 geoset attribute:
>
>
> for (i = 0; i < NUM_BLOCKS; i++) {
>
> if (hapticsVS->cylinderTex[i] == TEX_THIN) {
> pfGSetAttr(phantomVS->objPtrs[i].gSetPtr, PFGS_TEXCOORD2,
> PFGS_PER_VERTEX, texcordsthin, NULL);
> } else {
> pfGSetAttr(phantomVS->objPtrs[i].gSetPtr, PFGS_TEXCOORD2,
> PFGS_PER_VERTEX, texcordsfat, NULL);
> }
> }
>
> This doesn't work, but I'm not sure why. Is there a way to do this? These
> blocks change from thick to thin patterns periodically, but right now they
> just stay how they were initially set. I have verified that these
> statements are being reached, and the pfVec2 arrays are malloced from the
> shared arena.
>
> Thanks,
> Keith
>
> Keith Parkins U of R Computer Science
> kparkins++at++cs.rochester.edu Computer Science Building, Room 606
> (585) 275-1118
>
> -----------------------------------------------------------------------
> 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 : Thu Oct 24 2002 - 11:41:31 PDT