Jump to content
  • Advertisement
Sign in to follow this  

[max sdk]: getCameraMatrix never returns?!

This topic is 2609 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

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!