Re: Textures in Performer

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++sgi.com)
Fri, 23 Apr 1999 15:36:55 -0700


What hardware platform are you on?

Cheers,Angus.

Larry Ramey wrote:
>
> 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
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

-- 
"Microsoft's system was like a forest that hadn't had a controlled
 burn in decades, just waiting for one person with a match to turn
 it into a disaster. Melissa was Microsoft's fault. They left their
 system wide open to this sort of abuse, they knew it could happen
 and did nothing." -- Bruce Perens

For advanced 3D graphics Performer + OpenGL based examples and tutors: http://www.dorbie.com/


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Fri Apr 23 1999 - 15:36:59 PDT

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