[info-performer] a question about transparency

New Message Reply Date view Thread view Subject view Author view

From: ®a¥ (ccsheng1201++at++yahoo.com.tw)
Date: 09/24/2002 23:02:44


Hi all,

I had a problem about transparency , and have no idea to solve it .
Please someone can give me some suggestion.
The question is :
  I create a GeoSet, GState, and Geode. I want to build a particle system to simulate a smoke effect.
  But I got the worng result ( see attach picture ).
  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);

 



2002_08_16_145625_shot.jpg

2002_08_16_145554_shot.jpg

-----------------------------------------------------------------
< (C$Q3# Yahoo!)_</ > www.yahoo.com.tw


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Sep 24 2002 - 23:26:11 PDT

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