problem with getPickedNodeBB()

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
wuallen
Posts: 67
Joined: Thu Jan 25, 2007 3:07 am
Location: Shanghai

problem with getPickedNodeBB()

Post by wuallen »

I do some test with this function, if I use setScale() to one node, then I always get this node selected, I think this is a problem.

I do some modify and work well.

Code: Select all

        /*
        // get world to object space transform
         core::matrix4 mat;
         if (!current->getAbsoluteTransformation().getInverse(mat))
            continue;

         // transform vector from world space to object space
         core::line3df line(ray);
         mat.transformVect(line.start);
         mat.transformVect(line.end);

         const core::aabbox3df& box = current->getBoundingBox();
         */
         core::line3df line(ray);
         core::aabbox3df box = current->getTransformedBoundingBox();
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

What kind of node? Animated? What type of animation? Skeletal/skinned? Can you provide sample application code and resources that demonstrates the problem?
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
wuallen
Posts: 67
Joined: Thu Jan 25, 2007 3:07 am
Location: Shanghai

Post by wuallen »

There are several people found this problem and already some fix solution.

I find some for your reference :)

http://irrlicht.sourceforge.net/phpBB2 ... ?p=123960

http://irrlicht.sourceforge.net/phpBB2 ... kednodebb
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Ah, fair enough. Thanks for refreshing this issue; it does look like it needs fixed.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Post Reply