Larry Ramey (ramey++at++ccpo.odu.edu)
Fri, 23 Apr 1999 14:15:49 -0400
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
This archive was generated by hypermail 2.0b2 on Fri Apr 23 1999 - 11:09:47 PDT