[info-performer] Changing texture coordinates

New Message Reply Date view Thread view Subject view Author view

From: Keith Parkins (kparkins++at++cs.rochester.edu)
Date: 10/24/2002 08:11:11


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


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Oct 24 2002 - 09:07:52 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.