SDK Question Set FOV

JMW

Aspiring Addon Developer
Joined
Aug 5, 2008
Messages
580
Reaction score
40
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)" ([email protected]@@[email protected]) referenced in function "public: virtual int __thiscall ShuttlePB::clbkConsumeBufferedKey(unsigned long,bool,char *)" ([email protected]@@[email protected])
 
Last edited:

orb

O-F Administrator,
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
580
Reaction score
40
Points
43
Location
Happy Wherever
Thanks Orb, I'll try that.
:cheers:

Works great - thanks again
 
Last edited:
Top