SDK Question Set FOV

JMW

Aspiring Addon Developer
Joined
Aug 5, 2008
Messages
611
Reaction score
52
Points
43
Location
Happy Wherever
How can FOV be set?

Have tried
double FOV = 30;
SetFOV (FOV);

but get good old

error LNK2019: unresolved external symbol "public: void __thiscall ShuttlePB::SetFOV(double)" (?SetFOV@ShuttlePB@@QAEXN@Z) referenced in function "public: virtual int __thiscall ShuttlePB::clbkConsumeBufferedKey(unsigned long,bool,char *)" (?clbkConsumeBufferedKey@ShuttlePB@@UAEHK_NPAD@Z)
 
Last edited:

orb

New member
News Reporter
Joined
Oct 30, 2009
Messages
14,020
Reaction score
4
Points
0
Code:
OAPIFUNC void oapiCameraSetAperture (double aperture);
Where aperture is 1/2 of vertical field of view, and is set in radians (so you need to convert your degrees first).
 

JMW

Aspiring Addon Developer
Joined
Aug 5, 2008
Messages
611
Reaction score
52
Points
43
Location
Happy Wherever
Thanks Orb, I'll try that.
:cheers:

Works great - thanks again
 
Last edited:
Top