plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.


Please take a moment to read the platform’s guidelines before you get started!


Idea

runshotgun avatar image
runshotgun suggested Simbol edited

Camera API

Here's a few things we'd love to see added to the SDK:

  • Functions to create and use cameras programmatically, without having to define it beforehand in the airplane configuration.
  • Dynamic cameras that can be moved, zoomed, created or destroyed.
  • Functions to retrieve the position/orientation of every camera.
defaultsimconnect
1 comment
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

louismg avatar image louismg commented ·
This is absolutely crucial!
0 Likes 0 ·

10 Comments

·
Simbol avatar image
Simbol commented

I also vote for this please. Very much needed and requested by thousands of current MSFS users.


Regards,

Simbol

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

EZdok_software avatar image
EZdok_software commented EZdok_software edited

Hi guys. I voted too.

As a interested party, I vote many many times ..

What do you mean by "Camera API" ?

Such an API exists and implies the creation-deletion-adjusting of cameras through the cameras.cfg file.

It seems to me that it is necessary to clarify that the word "Camera API" means a set of simconnect variables that will allow you to operate the simulator cameras in real time, such as the old function Camera6DOF.


Based on the experience of the past 10 years, I have a complete list of necessary functions for such an API.

This list contains no more than 10 simple functions.


But I'm wondering if Osobo reads this forum and is there any feedback?







10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

virtuali avatar image
virtuali commented

Prepar3D has a comprehensive Camera API, it would be very nice if MSFS had it too.

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

EZdok_software avatar image
EZdok_software commented

Prepar3D has a comprehensive Camera API, it would be very nice if MSFS had it too.

====

Yes, but programmers still have their hands tied even with such a large API in P3D.

It is still not possible to get the name of the selected camera and its 7DOF coordinates. 7DOF because there is a ZOOM that must be included in variables like in the Camera API for Xplane for example.

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

IcemanFBW avatar image
IcemanFBW commented

Not necessarily an SDK request, but it would be nice to have a one-click flyby camera included in the sim, as is present in FSX and P3D.

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

SonantAlpaca avatar image
SonantAlpaca commented

Hello,

Can you please provide details about your specific needs here? We'd rather design a solution knowing exactly what you need to achieve.

Thanks!

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

MarkCEllis avatar image
MarkCEllis commented

I also would like to see this. Here are some thoughts:

  1. Ability to create cameras any where in the world and control their lat,lon, altitude, pitch, and roll. Also with the ability to zoom the camera
  2. Ability to create cameras in the 3D cockpit or outside the plane but the camera moves with the plane. That said you can control the camera pitch, roll, heading and X,Y,Z relative to the aircraft. Also have the ability to zoom the camera.
  3. The ability to place cameras on any of the AI traffic.
  4. With all items above you should have the ability to adjust the camera with each frame. As an example to apply vibrations or animations, like an automatic orbit, walk-around, etc.

Just some initial thoughts.

Mark

Stick and Rudder Studios

X-Camera

1 comment
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

PeteB avatar image PeteB commented ·
Agree 100%. I still fly XPlane esp now I purchased V12 and the updated X-Camera . Every time I use my interior and exterior views it reminds me of how simple it should be in MSFS. Please add my vote to your request to Asobo/Microsoft to make available a means to make it happen
0 Likes 0 ·
virtuali avatar image
virtuali commented

Another set of features that will be very useful for a Camera API, is the ability to convert back and forth between world Lat/Lon coordinates and Screen coordinates, which could be combined with handling of mouse clicks to achieve things like clicking on screen to move/select/drag objects.

The Dev Mode already use it to edit the scenery and has several ray casting features, which would be very useful if they were exposed through an API. Perhaps something more high performing than Simconnect, working directly through WASM.

About Simconnect, it would be already a big improvement if we could just get new Simvars with the absolute position of the active camera view, or its position in relationship to the user airplane, or both.

Also, when creating a new camera on the fly, it would be nice if all the following could be controlled:

- The projection ( Perspective or Orthographic )

- The Zoom Level

- The Near/Far clipping plane, to create cameras optimized for short or long distance.

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

runshotgun avatar image
runshotgun commented runshotgun edited

Just so everyone is on the same page about the state of this, I will add clips from every Dev Q&A below. The question is basically getting asked on every stream now.

2 comments
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

runshotgun avatar image runshotgun commented ·

From March 21, 2022:


Here is Asobo’s response to the following question:

ChunkyAviation: Can we have the camera view system opened up to devs to create custom camera views & programs similar to EZDok or Chaseplane in FSX and to allow for the creation of custom fly by and spectator views to lock onto other aircraft in multiplayer or single player replay?

https://clips.twitch.tv/PlausibleKindLeopardRitzMitz-S5MwtrzFufM5YsYb

TLDR: They're not sure what it will look like if the camera changes often or quickly. Not scheduled yet "but maybe something we should rethink"

0 Likes 0 ·
runshotgun avatar image runshotgun commented ·

From April 27, 2022:

https://clips.twitch.tv/FunnyDifferentPuffinRlyTho-NNteKu8b926j5oA6

TLDR: They've always hesitated to make a camera API available. They want to make improvements to the built-in camera system.

0 Likes 0 ·
Simbol avatar image
Simbol commented Simbol edited

Dear Asobo,

I really hope this gets re-considered.. another example of why we need this: https://devsupport.flightsimulator.com/questions/7672/cameras-configuration.html

I am currently stuck with many limitations that would prevent showcasing my product much better and provide my customers with a much better experience.

I even tried the RTC route to find out the tutorial provided with SDK documentation doesn't really do what it says, and it is also limited. https://devsupport.flightsimulator.com/questions/7620/rtc-real-time-cinematic.html

It would be great if we could create any RTC sequences outside the hangar, people want to see products in action.. flying, passing POI, performing maneuvers, etc. So please expand this as well, not very much use to have this only via the hangar.

Thanks for taking the time to read our ideas.

Best Regards,
Raul

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Write a Comment

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Your Opinion Counts

Share your great idea, or help out by voting for other people's ideas.