TwinFan / LiveTraffic

LiveTraffic is an X-Plane multiplayer plugin, which fills your sky with live air traffic based on public flight tracking data.
https://twinfan.gitbook.io/livetraffic/
Other
99 stars 24 forks source link

Camera view: Programmatic info of plane being viewed #196

Closed TwinFan closed 3 years ago

TwinFan commented 4 years ago

Current Situation / Problem Camera plugins might be interested to know which plane is the current target for an External Camera View in LiveTraffic, e.g. to take over that view.

Suggested Solution

Benefits User can select camera view from within LiveTraffic, e.g. from the Aircraft List, but more powerful external camera plugins provide the actual viewing experience.

Additional context Forum post.

TwinFan commented 3 years ago

Camera Notification Support for 3rd party plugins now works as follows:

slgoldberg commented 3 years ago

Hi, @TwinFan, just a follow-up to say I'm finally able to spend a little time working on the integration of A-Better-Camera with these new datarefs, to implement the camera hand-off feature as requested -- thank you again for adding this!

I must say, at first blush, this design looks right -- and it's hopefully something the Laminar team can adopt and support as well, assuming that was your intent.

Can you confirm whether you've already opened a feature request with Laminar to add native support for these datarefs in an upcoming camera sprint Ben told me they may be working on a few months back? I was otherwise planning to request almost exactly this design -- but at a minimum, I can just point them to this, if that's okay with you.

I.e., was that your intention in putting these datarefs in sim/multiplayer?

(I would obviously include in the scope of changes I'd recommend to Laminar, the new cslModel and model dataref strings you defined for XPMP2 Remote Client as well, which I see you also thoughtfully placed into sim/multiplayer as well, since the combination are most if not all of what I consider missing features from last year's TCAS-override redesign in X-Plane 11.50.)

Either way, I'll post an update here when I've gotten the integration working or if I find any bugs/issues, if that's okay. (Expect such hopefully within the next day or two of this posting; though I'm not sure when I'll have my next release ready because I have a lot of other changes I want to get in for my next release.)

Thanks again.

Steve

TwinFan commented 3 years ago

It was FSTramp who suggested usage of shared dataRefs under sim/multiplayer (more info see the provided link and FSTramp's plugin) with the intend of more widespread use and ultimately adoption by Laminar. I don't know if he ever approached Laminar for follow-up or if even any other plugin followed the approach. I don't intend approaching Laminar on this.