Re: pfLightSource in projtex mode

New Message Reply Date view Thread view Subject view Author view

From: Lawrence bertoldi (lberto++at++md.prestige.net)
Date: 06/12/2001 12:30:33


set a pre and post callbacks for that node (look at the man page for
pfNode::setTravFuncs(.....)

In the preDraw funct disable the texture

pfOverride(PFSTATE_TEXTURE, PF_OFF);
pfDisable(PFEN_TEXTURE);
pfOverride(PFSTATE_TEXTURE, PF_ON);
pfDraw()

in the post draw call back reset everything.

pfOverride(PFSTATE_TEXTURE, PF_OFF);
pfEnable(PFEN_TEXTURE):
return;

Stephane Jaeger wrote:

> Hi all,
> the deadline is coming soon for me and there is one last thing I 'am
> stuck on. I would be most grateful if someone could answer to this:
> I am using a pfLightSource in projTex mode ( projective texture ) . All
> is working fine, but there is one node in my
> scene graph that I don t want to be affected by the projected texture.
> Does anybody know how I could do that.
> Thank you all for your help,
> Bye
> Stephane
>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/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 2b29 : Tue Jun 12 2001 - 12:17:49 PDT

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