Different Eyepoint with PDK

flyboy7798
Posts: 37
Joined: Thu Jul 20, 2017 7:15 pm

Different Eyepoint with PDK

Postby flyboy7798 » Tue Nov 19, 2019 7:27 pm

We have managed to get the eyepoint offset from the PDK using GetCameraOffset() successfully. We have also successfully gotten data from GetLLARadians and GetPBHRadians.

However, using GetCameraOffset() only gives us the offset from the default Virtual cockpit eyepoint, as it is specified in aircraft.cfg. When switching to a different virtual cockpit camera, the output from GetCameraoffset() is frozen to the last known position of the default eyepoint and does not update to correspond with the current camera and its position.

Therefore, the question is: how do we get from the PDK the active camera the user has switched to and gives the eyepoint offset for that camera?

BenBaron
Posts: 80
Joined: Fri Jan 16, 2015 7:51 am

Re: Different Eyepoint with PDK

Postby BenBaron » Fri Nov 22, 2019 6:09 pm

Hi,

are you sure you are actually working on the current ICameraSystem? I am constanly checking GetCurrentWindow() and GetCameraSystem() and see whether they are returning different objects than the ones I am doing calculations on. Once I figured this out, everything has been working out quite well.

Greets, Benny


Return to “Software Development Kit (SDK) Questions”

Who is online

Users browsing this forum: No registered users and 26 guests