• Advertisement
Sign in to follow this  

[max sdk]: getCameraMatrix never returns?!

This topic is 2459 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Sign in to follow this  

  • Advertisement