Fbmodel in mobu and openGL

I’m working on a custom FBModel in Motionbuilder and it seems that it uses openGL for detecting if you select the object. right now i have this problem:


It feels like a matrix hasn’t been accounted for, And I’m not quite familiar with openGL so I cant find how to fix it.

Any help would be appreciated.

It looks like there’s a shear happening, or maybe even a non-uniform scale.

Are you constructing the transformation matrix manually or does Motionbuilder handle all that for you?

I got it to work better now, it was the order i constructed the matrix…