Re: cliptextures with alpha?

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++sgi.com)
Tue, 16 Jun 1998 09:39:14 -0700


Stephen Maher wrote:
>
> Hi,
>
> Is alpha supported with clip textures?
>
> I created a clip texture with alpha and I'm not seeing good results in
> perfly 2.2 (i.e., no alpha). I'm using mgmosaic to generate the clip
> texture (sgi8888, or raw8 format) and specifying alpha=0 for the
> region mgmosaic pads to create a square texture.
>
> I haven't verified the alpha values in the raw8 files, but I have
> verified mgmosaic generates correct alpha in rgba ("RGBA" in mgmosaic)
> files. (That format isn't read by pf 2.2).
>
> Do I have to pfEnable(blending ..) somewhere?
>

Yes, or use pfAlphaFunc to cull fragments but you also have to
specify the right formats in the .ct file or you'll convert to
just rgb on the way to texture memory.

Cheers,Angus.

-- 
"Only the mediocre are always at their best." -- Jean Giraudoux 

For advanced 3D graphics Performer + OpenGL based examples and tutors: http://www.dorbie.com/ ======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:57:32 PDT

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