From: Alexandre Meyer (a.meyer++at++cs.ucl.ac.uk)
Date: 07/28/2002 05:01:09
Hi,
I'm new in Performer ...
I would like to use my own draw callback function for pfGeode geometry of a subpart
of my scene graph (to use NVidia Cg compiler).
For that I traverse the scene graph and I try to replace all pfGeoSet by pfGeoSetCB
like that:
pfGeoSet *oldgset = geode->getGSet(i);
pfGeoSetCB *gsetCB = new pfGeoSetCB();
gsetCB->copy(oldgset);
gsetCB->setDrawCB( drawCB, NULL);
geode->replaceGSet( oldgset, gsetCB);
but it doesn't work, my DrawCB is not used, ?
If I comment the line with the copy it works, my callback is used.
There is something that I don't understand in the copy function but what?
I could write a new copy function that copy a pfGeoSet to a pfGeoSetCB but
I would like to understand what is the problem with the standard copy
function here, if someone knows ...
Thanks,
Alex
This archive was generated by hypermail 2b29 : Sun Jul 28 2002 - 05:01:48 PDT