I run the following simple picking routine in the cluster machine. I
added the following into 13ClusterClient.cpp. But it makes "apply:
node is Null!" error in the cluster whenever I click a picking
polygon(node). Is there anybody who knows why I couldn't use picking
routine in the cluster machine?

Thank you

void mouse(int button, int state, int x, int y)
{

                Line ray = mgr->calcViewRay(x, y);
                IntersectAction *iAct = IntersectAction::create();
                iAct->setLine(ray);
                iAct->apply(scene);

                if (iAct->didHit()){
                        Pnt3f p = iAct->getHitPoint();
                        hitnode = iAct->getHitObject();

                       mgr->setHighlight(hitnode);

                        parent = hitnode->getParent();

                          if (hitnode->getParent() == Child_1_TransMain) {
                                node = 1;
                                printf("Child_1_transmain!\n");
                          }
}

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to