Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Read FSX Cameras - Static Lib

Featured Replies

  • Commercial Member

I will be publishing all of my code for FSX which could be interesting maybe for someone.

Here is the code to read the active camera position at any time (XYZ in meters) for FSXA-SP2-SE. Also it reads the 6DOF of the active camera.

There are 4 Libs (MT, MD, MTd, MDd), you just need to link it to your project (there are VS2005 Libs). Other VS20XX Lib versions please PM me!

To use it, include "camera.h" in your project and link the Lib. You need to call the InitCameras function, passing 2 float pointers which will be written every frame with the camera position and the current 6DOF.

 



#include "stdafx.h"
#include "camera.h"


float XYZ[3];
float _6DOF[6];

void DLLStart(void)
{
 
    InitCameras(XYZ, _6DOF);

}


void DLLStop(void)
{
    DeInitCameras();

}

When done, do not forget to call DeInitCameras.

camera-png.47049

You can download the code here

Any feedback is appreciated!

Thanks


 

 

Edited by fs1

Federico Sucari

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.