Search found 75 matches

by BenBaron
Fri Nov 29, 2019 2:47 pm
Forum: Software Development Kit (SDK) Questions
Topic: IWeatherSystem Service issue
Replies: 3
Views: 10730

Re: IWeatherSystem Service issue

Hi Ahmed,

I don't know if that helps, but why do you query for the legacy IID_IWeatherSystem and not directly for the current version IID_IWeatherSystemV430 of the interface?

Greets, Benny
by BenBaron
Fri Nov 22, 2019 6:09 pm
Forum: Software Development Kit (SDK) Questions
Topic: Different Eyepoint with PDK
Replies: 1
Views: 1188

Re: Different Eyepoint with PDK

Hi, are you sure you are actually working on the current ICameraSystem? I am constanly checking GetCurrentWindow() and GetCameraSystem() and see whether they are returning different objects than the ones I am doing calculations on. Once I figured this out, everything has been working out quite well....
by BenBaron
Mon Nov 04, 2019 3:10 pm
Forum: Software Development Kit (SDK) Questions
Topic: P3D::PdkServices::GetMenuService()->AddItem with unknown parent MenuID
Replies: 5
Views: 4190

Re: P3D::PdkServices::GetMenuService()->AddItem with unknown parent MenuID

Hi guys,

just wanted to chime in that also with Prepar3D v4 SDK 4.5.13.32097 this doesn't seem to be fixed.

Greets,

Benny
by BenBaron
Mon Oct 14, 2019 9:31 pm
Forum: Software Development Kit (SDK) Questions
Topic: How to get all waypoints of flight plan
Replies: 1
Views: 2755

Re: How to get all waypoints of flight plan

Hi John, you can use the variables in the following link in conjunction with the ExecuteCalculatorCode() function of the PDKs IPanelSystemV400 interface to query the GPS system for a lot of flightplan data: https://www.prepar3d.com/SDKv4/sdk/panels_and_user_interface/gauges/references/gps_variables....
by BenBaron
Fri Oct 11, 2019 10:10 pm
Forum: Software Development Kit (SDK) Questions
Topic: Flightplan data with the PDK
Replies: 9
Views: 3648

Re: Flightplan data with the PDK

Hi adiemus, well...I am not super proficient with this stuff, but as I am able to do the following: ExecuteCalculatorCode("(>C:fs9gps:FlightPlanWaypointIndex, number)", nullptr, &waypointNo, nullptr) in order to set the current waypoint index of the GPS system And it actually changes the waypoint i...
by BenBaron
Fri Oct 11, 2019 5:55 pm
Forum: Software Development Kit (SDK) Questions
Topic: Flightplan data with the PDK
Replies: 9
Views: 3648

Re: Flightplan data with the PDK

Hi adiemus, well...I am not super proficient with this stuff, but as I am able to do the following: ExecuteCalculatorCode("(>C:fs9gps:FlightPlanWaypointIndex, number)", nullptr, &waypointNo, nullptr) in order to set the current waypoint index of the GPS system I would think that you should also be a...
by BenBaron
Sun Sep 29, 2019 3:44 pm
Forum: Software Development Kit (SDK) Questions
Topic: Flightplan data with the PDK
Replies: 9
Views: 3648

Re: Flightplan data with the PDK

Thanks Jonathan for the hint. I looked at the link you provided and compared it to the PDK documentation of the Panel System Service...while I could recreate the TacPack approach with it, I don't see the advantage coding-wise over just using ExecuteCalculatorCode() from within my module. They are wr...
by BenBaron
Sat Sep 28, 2019 7:42 am
Forum: Software Development Kit (SDK) Questions
Topic: Flightplan data with the PDK
Replies: 9
Views: 3648

Re: Flightplan data with the PDK

Just as a follow-up: I know I can use ExecuteCalculatorCode() from the IPanelSystemV400 to retrieve flighplan data from the gps system, but this seems a little cumbersome to me...but if need be, I will go down this route, for now. Just looking for some confirmation that there actually is no other wa...
by BenBaron
Fri Sep 27, 2019 8:33 pm
Forum: Software Development Kit (SDK) Questions
Topic: Flightplan data with the PDK
Replies: 9
Views: 3648

Flightplan data with the PDK

Hi guys,

does anyone know a viable way to retrieve loaded flightplan data (esp. departure and destination ICAOs) via the PDK as well as getting notified if a new flightplan is loaded? Is this even possible, yet?

Thanks for your help.

Benny
by BenBaron
Sat Sep 21, 2019 2:47 pm
Forum: Software Development Kit (SDK) Questions
Topic: Question on PDKs RenderingPlugin
Replies: 1
Views: 2589

Re: Question on PDKs RenderingPlugin

Hi guys,

can be disregarded. In the meantime I've found out that the renderer is also running on the main thread. So no problem.

All the best, Benny
by BenBaron
Mon Sep 02, 2019 8:33 pm
Forum: Software Development Kit (SDK) Questions
Topic: Question on PDKs RenderingPlugin
Replies: 1
Views: 2589

Question on PDKs RenderingPlugin

Hi guys, just for clarification: is it safe (like e.g. thread-safe) to perform tasks unrelated to the actual rendering in the Render or PreRender methods? Which are thus called at the pace of the framerate? Like an IBaseObject's GetPosition() or GetProperty() methods? Maybe this might put a strain o...
by BenBaron
Wed Aug 28, 2019 5:04 pm
Forum: Software Development Kit (SDK) Questions
Topic: I cant get the IDISManagerV450.
Replies: 6
Views: 4098

Re: I cant get the IDISManagerV450.

Hi Reyad,

I assume you have P3D Professional Plus? As it states *Professional Plus Only* in the SDK.

All the best, Benny
by BenBaron
Sat Jul 06, 2019 12:26 pm
Forum: SimConnect Interface Questions
Topic: Cancel Flight Plan from SimConnect
Replies: 4
Views: 4124

Re: Cancel Flight Plan from SimConnect

Hi Fredo,

I guess this is indeed what he meant...easiest way would be to just try it out...pass in a nullptr as szFileName and see what happens :).

Greets,

Benny
by BenBaron
Sun Jun 23, 2019 5:04 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] Using DIS Engagement Lines or Ribbons for Aircraft
Replies: 3
Views: 3011

Re: Using DIS Engagement Lines for Aircraft

Hi,

I don't know exactly what you want to achieve or what this DIS weapon stuff is about, but maybe the IObjectRendererV440 from the PDK would do you something good? It can render primitives into the P3D world and has a DrawLine() method. Maybe take a look at it?

All the best,

Benny
by BenBaron
Wed Jun 12, 2019 2:49 pm
Forum: Software Development Kit (SDK) Questions
Topic: Render-to-Texture at an ObjectWorldTransform
Replies: 2
Views: 2600

Re: Render-to-Texture at an ObjectWorldTransform

Hi guys, I got further with this...regarding the render-to-texture functionality: As I said, I am fairly new to using DirectX, the render pipeline and everything related. However, I can now render into a texture which is referenced in a .mdl. So far, so good, but now, I ran into the following issue ...

Go to advanced search