Search found 78 matches

by BenBaron
Fri Jun 05, 2020 6:21 pm
Forum: Software Development Kit (SDK) Questions
Topic: DirectX 12 RTT Render not called.
Replies: 1
Views: 2142

Re: DirectX 12 RTT Render not called.

Hi,

for me, this works. Render() is being called. So I guess there must be something with your code somewhere.

Greets, Ben
by BenBaron
Sun May 10, 2020 11:14 am
Forum: Software Development Kit (SDK) Questions
Topic: Simconnect disconnects immediately after connection is established
Replies: 2
Views: 4064

Re: Simconnect disconnects immediately after connection is established

To chime in: do you do some simconnect exception handling somewhere in your code? Maybe an exception with further information is thrown before you receive SIMCONNECT_RECV_ID_QUIT. But of course you have to handle it.

Greets,
Ben
by BenBaron
Sat May 02, 2020 2:49 pm
Forum: Software Development Kit (SDK) Questions
Topic: D3D11 RTT in v5
Replies: 0
Views: 3075

D3D11 RTT in v5

Hi guys, I am trying to port some D3D11 render-to-texture functionality over from v4 to v5 before completely migrating the code to D3D12, which will take quite some time. According to this SDK article it should be possible: https://prepar3d.com/SDKv5/sdk/pdk_api/samples/texture_and_effect_render_plu...
by BenBaron
Fri Nov 29, 2019 2:47 pm
Forum: Software Development Kit (SDK) Questions
Topic: IWeatherSystem Service issue
Replies: 4
Views: 20944

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: 9211

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: 13758

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: 4276

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: 6860

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: 6860

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: 6860

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: 6860

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: 6860

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: 4163

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: 4163

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: 7070

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

Go to advanced search