Hi!
I`m back with my export project (I write a plug-in that exports scene from 3ds to RenderMan RIB). I have a problem. I get the active viewport Affine Matrix:
pView->GetAffineTM(aTM);
aTM = Inverse(aTM);
ViewDir=aTM.GetRow(2);
EyePosition=aTM.GetRow(3);
and its ok. But! I want to automatically rotate the scene in renderman, so camera in renderman showed exactly the same as camera in 3ds. I know that axis are different placed in both systems. How to do it? And how to get angles? (I`m counting cosinuses and then using acos function). If you occured similar problems - PLEASE HELP (this project is killing me
)
Thanks
RegisPL