From: Terry Welsh (mogumbo++at++totalmail.com)
Date: 03/28/2003 12:55:55
Hi,
I've got pre and post node draw callbacks that affect pfLightSources called "redlight" and "greenlight". I apply these to one object in my scene with pfNode::setTravFuncs(PFTRAV_DRAW, preDraw, postDraw);
int preDraw(pfTraverser* trav, void* data){
redlight->off();
greenlight->on();
return PFTRAV_CONT;
}
int postDraw(pfTraverser* trav, void* data){
redlight->on();
greenlight->off();
return PFTRAV_CONT;
}
The idea here is to draw one object with the green light and draw the rest of the scene with the red light. However, when I run my program, everything gets drawn with the red light only. It's as if both draw callbacks get executed before anything is drawn. Can anyone explain why this isn't working the way I expect it to?
Terry Welsh
http://www.reallyslick.com
_____________________________________________________________
Get Your Free Email at http://www.totalmail.com
_____________________________________________________________
Select your own custom email address for FREE! Get you++at++yourchoice.com w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag
This archive was generated by hypermail 2b29 : Fri Mar 28 2003 - 12:59:19 PST