[info-performer] pfGeoSetCB: copy and setDrawCB problem

New Message Reply Date view Thread view Subject view Author view

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


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sun Jul 28 2002 - 05:01:48 PDT

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