[info-performer] a question about transparency

New Message Reply Date view Thread view Subject view Author view

From: Archer Chen (archerc++at++hitrontech.com)
Date: 09/25/2002 20:52:11


 
 
Hi all,
 
I find that I can't read the attach file, so I post it again , sorry.
 
I had a problem about transparency , and have no idea to solve it .
Please someone can give me some suggestion.
 
My problem is that I can't show the Second transparent texture where
after the other transparent texture.
Because , the first transparent texture will make the Second texture to
transparent on the overlape region.
How can I make the first transparent texture near camera unable to
affect the Second texture's transparent effects.

  Please give me a solution to handle it .
  Thanks.
 
 
  pfGStateMode(shared->rain.gstate, PFSTATE_TRANSPARENCY,
PFTR_BLEND_ALPHA);
  pfGStateMode(shared->rain.gstate, PFSTATE_ALPHAFUNC, PFAF_ALWAYS);

  pfGStateMode(shared->rain.gstate, PFSTATE_ENFOG, 0);
  pfGStateMode(shared->rain.gstate, PFSTATE_ENLIGHTING, PF_OFF);
  pfGStateMode(shared->rain.gstate, PFSTATE_ENLPOINTSTATE, 1);
 
  pfGSetAttr(shared->rain.gset, PFGS_COLOR4, PFGS_PER_VERTEX,
shared->rain.colors, NULL);

  pfSetVec4(shared->rain.colors[i], 0.6, 0.6, 0.5, 0.3);
 
 
 
Regards

archer chen
 
 
 
 



clip_image002.jpg


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Sep 25 2002 - 22:22:11 PDT

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