RenderMan and 3dstudio


#1

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 :frowning: )
Thanks

RegisPL


#2

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.