Textures in Performer

New Message Reply Date view Thread view Subject view Author view

Larry Ramey (ramey++at++ccpo.odu.edu)
Fri, 23 Apr 1999 14:15:49 -0400


I may be the only one out here that feel that the Texture section of
performer was skimmed by the documentors, but I doubt it.

I have successfully generated my texture coordinates (thanks Brian). It
was simple, once I figured out exactly WHAT the OpenGL book was trying
to say.<g>

Problem, I want to STOP a texture at a certain point. When the TexCoords
exceed 1 I want to IGNORE any further texturing. The OpenGL book (page
361) mentions that Clamping with a texture border of (0,0,0,1) ought to
do this (in decal mode) but what I seem to get is an average of the
border and the last texel. ARGGHHH!!!!

tex = new pfTexture;
tev = new pfTexEnv;

//check for NULL clipped

tev->setMode(PFTE_DECAL);
pfVec4 border;//=(pfVec4*) pfMalloc(sizeof(pfVec4),pfGetSharedArena());
border.set(0,0,0,0); //see through black
tex->setBorderType(PFTEX_BORDER_COLOR);
tex->setBorderColor(border);
tex->setRepeat(PFTEX_WRAP,PFTEX_CLAMP);
tex->setName(texname);

what am I missing? The Tex Coords are perfect, I just can seem to get
the "repeat" area to show clear black.

---------------------------------------------------------------
Larry E. Ramey ramey++at++ccpo.odu.edu
757-683-6276(office) 757-683-5335 (CAVE)
"Count the heads man." - Zaphod Bebblebrox
"Won't weigh you down, with good intentions" -Sarah McLachlan


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Fri Apr 23 1999 - 11:09:47 PDT

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