Notifications
Clear all

[Closed] 3ds Max 2018, SDK Viewport GetHit function problem

For select some objects in my plugin I use a code like this:


void selectnodes(IObjParam *ip, IPoint2 *p, Tab<INode *> &nodes){
   ViewExp *vpt = &ip->GetActiveViewExp();
   vpt->ClearHitList();
   ip->BoxPickNode(vpt, p, true);
   int nodes_count = vpt->HitCount();
   for (int i=0; i<nodes_count; i++){
      INode *node=vpt->GetHit(i);
                if (node)
                    nodes.Append(node);
      }
}

3ds max 2018 crashed when i>0 (I try to select more then one object) in line #7: vpt->GetHit(i);
on previous versions of 3dsmax it work properly.

Any ideas?

2 Replies

No idea. Although, did you download/see the new service pack / update they just released?
Looks like they “should” have fixed a lot of bugs.

It could be to do with the hardware hit-testing?