Sign in to follow this  

[max sdk]: getCameraMatrix never returns?!

Recommended Posts

Matrix3 *invTM2;
float mat2[4][4];
int *persp2;
float *hither2;
float *yon2;

Interface *ip2 = GetCOREInterface();
ViewExp *pView2 = ip2->GetActiveViewport();
GraphicsWindow *gw2 = pView2->getGW();

gw2->getCameraMatrix( mat2, invTM2, persp2, hither2, yon2 ); // never returns
With max 2011 sdk,
I didn't understand why the method getCameraMatrix never returned. I've cross-checked my code, i've never created the variable twice. I had everything setup correctly in max including "enabling" the relevant viewport. But still, it never came back at that point.... Anyone got further ideas why this would happen?
What I currently know about is that getCameraMatrix is pure virtual, but i don't see any necessities to override that method cos max has implemented it

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this