Problems with pfOverride and Material

New Message Reply Date view Thread view Subject view Author view

Guenter Schreiber (Guenter.Schreiber++at++dlr.de)
Mon, 14 Jun 1999 17:20:41 +0200


Hello pfGurus,

I have a problem in useage of pfOveride in a traversal callback routine.
I'd like to highlight some part of the scenegraph under certain
circumstances,
so I defined a callback routine, which applies a certain material and
defines with
pfOverride() not to be overriden anymore.

My problem is, that on doing this, some other (additional) geometry is
painted on the screen additionally, and I don't know why ?
Is there some pointer to be initialized with pfMat ? or whats going on
?

The relevant code snippet:

pfMat * hlMat ;

int highlightCallback ( pfTraverser *trav, void *data)
{

/* .. */

pfPushState()
pfEnable(PFEN_HIGHLIGHTING |
                                      PFEN_TEXTURE);
hlMat -> apply;
pfOverride(PFSTATE_FRONTMTL, PF_ON);

return PFTRAVCONT;

}

/*.. */

So my question: What do I have to change within that code ?

Any help appreciated, and some clues, where to find more documentation
about the pfEnable and pfOverride flags and about pfHighlight. man pages
do not tell the whole story ..

Thanks, Günter

-- 
Enjoy life  --  enjoy juggling - God gave you that creativity.
                      ... 
        o o          .   .
    O o     o O      . O .
    |/       \|       \|/
    |         |        |
   / \       / \      / \
 ______________________________________________________________
| Dipl.-Ing. Günter Schreiber | phone: *49/*8153/28/1183       |
| German Aerospace Center     | fax:   *49/*8153/28/1134       |
| Institute for Robotics and  | email:                         |    /| 
|    System Dynamics          |  Guenter.Schreiber++at++dlr.de       
--------
| P.O. Box 1116               | priv:                           /  | | 
/
| 82230 Wessling              |  Katja_Guenter.Schreiber++at++gmx.de ---+-+--
|________ http://www.robotic.dlr.de/Guenter.Schreiber _________|   |/

It is unlawful to use this email address for unsolicited ads (USC Title 47 Sec.227). I will assess a US$500 charge for reviewing and deleting each unsolicited ad.


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Jun 14 1999 - 08:21:09 PDT

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