Hi Carsten,

> hm, getActNode() gives you the current Node, not the NodeCore. If your
> render action callback is a member function the current node core is
> simply "this" and the same as getActNode()->getCore().
> Can you post the relevant part(s) of your code?

Sorry about that, of course it gives the Node. The problem was occurring
because I was used to pass the Action* around to methods of other classes,
and used getActNode()->getCore() there, which no longer works. I changed it
now to pass the this pointer around instead so I no longer have the code,
but it was exactly like your cubes sample. If I was not seeing ghosts, it
should be reproducible using

Action::ResultE Cubes::drawPrimitives(DrawEnv *drawEnv)
{
        RenderAction* a = drawEnv->getAction();
        Node* node = a->getActNode();
        Cubes* cubes = dynamic_cast<Cubes*>(node->getCore());
        
At that point, the cubes variable was 0 which confused me, and after
inspecting the debugger output it seemed like the node was actually the
DirectionalLight from the headlight.

Aloha, Andi


------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to