Texture and transparency

New Message Reply Date view Thread view Subject view Author view

Jean-Benoit Bonne (bonne++at++thomson-lcr.fr)
Fri, 19 Jul 1996 16:53:29 -0600


Hello.

We have a Max. Impact ( or high ) and we use C++.

I would like to transform an individual object with tansparency.
To do that I use a post and pre func for each GState of my object.
It seem to work with objects with no texture.
But it doesn't work with objects with texture.

Does anybody know why or have an other solution ?

Thank you.
Best regards.

int pre ( pfTraverser *tra, void *userData ) {

  float tmp[4];

  ...

  glBlendColorEXT(tmp[0], tmp[1], tmp[2], tmp[3]);
  glBlendFunc(GL_CONSTANT_ALPHA_EXT, GL_ONE_MINUS_CONSTANT_ALPHA_EXT);
  return (0);
}

int post ( pfTraverser *tra, void *userData ) {

  glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
  return (0);
}

-- 
_____________________________________________________________________________

Jean-Benoit BONNE

Tel : (+ 33 1) 69 33 08 07 Thomson-CSF LCR Fax : (+ 33 1) 69 33 08 65 Domaine de Corbeville Email : bonne++at++thomson-lcr.fr F-91404 Orsay cedex _____________________________________________________________________________

======================================================================= 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:53:12 PDT

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