SDK Question SetCameraDefaultDirection not refreshing

Bibi Uncle

50% Orbinaut, 50% Developer
Addon Developer
Joined
Aug 12, 2010
Messages
192
Reaction score
0
Points
0
Location
Québec, QC
Hello everybody !

I'm currently compiling Project Mercury (yeah, the good old add-on of Mr. Conley) in Orbiter 2010. You can see the development thread here (in French) : http://orbiter.dansteph.com/forum/read.php?f=5&i=21680&t=21680

Everything works fine, but SetCameraDefaultDirection() is not refreshing the camera. When I change panel in clbkLoadPanel (because I use VESSEL2 interface for now), the camera stay at its current direction. However, when I press the 'Home' key, the camera rotates to the correct direction.

Any idea of what I'm doing wrong ?

Thanks in advance :)
 
IIRC from the beta team discussions, SetCameraDefaultDirection only sets the default camera direction (ie, the direction the camera will point to if the user presses the 'Home' key), it does not set the actual camera direction (despite the note to the contrary in the documentation). You need to do that with oapiCameraSetCockpitDir(0,0).
 
Thank you very much tblaxland, it works now ! :thumbup:
 
Back
Top