Search found 80 matches

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

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

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

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

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

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 ...
by BenBaron
Wed Jun 12, 2019 2:30 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] Question about C# vs. C++ development in P3D
Replies: 3
Views: 12678

Re: Question about C# vs. C++ development in P3D

Hi, well...there is a managed layer available that lets you use C# as the language of your choice. Basically, just reference LockheedMartin.Prepar3D.SimConnect in your project and you are ready to interface with P3D via SimConnect. However, this is limited to an external program. So, if you wanted t...
by BenBaron
Wed Jun 12, 2019 2:17 pm
Forum: Software Development Kit (SDK) Questions
Topic: Regarding E:TIME OF DAY with PDK
Replies: 2
Views: 11512

Re: Regarding E:TIME OF DAY with PDK

Thanks Clifton for the quick reply. Indeed, it is working as you described. Maybe you can update the documentation on this matter, as there is only a notice on the SDK page, that P3D::IGlobalDataV430 inherits IGlobalDataV400, but not what IGlobalDataV400 exactly entails :). Thanks for your help. All...
by BenBaron
Tue Jun 11, 2019 3:11 pm
Forum: Software Development Kit (SDK) Questions
Topic: Regarding E:TIME OF DAY with PDK
Replies: 2
Views: 11512

Regarding E:TIME OF DAY with PDK

Hi guys, can the variable "E:TIME OF DAY" which is referenced here: https://www.prepar3d.com/SDKv4/sdk/references/variables/environment_variables.html , be retrieved via PDK's GlobalDataService, like the other time variables on that page? Didn't find a way to do so, so I am currently using...
by BenBaron
Tue Apr 16, 2019 2:54 pm
Forum: Software Development Kit (SDK) Questions
Topic: Debug output
Replies: 2
Views: 9465

Re: Debug output

Hi Jean Luc, just chiming in to say that I am not seeing something like this. I've just upgraded from 4.3 Client and Content to 4.5 Client and Content and things are working out as before on my side with a debugger attached to my PDK dll. So maybe you can elaborate more on what you are doing and exp...
by BenBaron
Tue Apr 16, 2019 2:38 pm
Forum: Software Development Kit (SDK) Questions
Topic: PDK, IBaseObjectV430, GetWeatherInformation
Replies: 12
Views: 24491

Re: PDK, IBaseObjectV430, GetWeatherInformation

Hi guys, for experimentation I tried to create a SimObject via the SimObjectManagers' CreateObject() method WITHOUT my own ISimObject implementation as I would rather want to avoid forcing the user to write my ISimObject implementations' GUID into every aircraft oder sim.cfg they intend to use my .d...
by BenBaron
Mon Apr 15, 2019 4:19 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] PDK Sound Service Instance -> Play() Function
Replies: 24
Views: 55259

Re: PDK Sound Service Instance -> Play() Function

Hi guys,

it is now working on my side with 4.5. Thanks for the fix.

All the best,

Benny
by BenBaron
Mon Apr 15, 2019 4:09 pm
Forum: Software Development Kit (SDK) Questions
Topic: P3D::PdkServices::GetMenuService()->AddItem with unknown parent MenuID
Replies: 5
Views: 28697

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

So, unfortunately this still produces the above mentioned error in 4.5 on my side. Not able to add a menu item to the Addon submenu.

All the best,

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

Re: Render-to-Texture at an ObjectWorldTransform

I came to the conclusion that what I am trying to achieve doesn't seem to be possible, at the moment, as the rendered texture is limited to be referencable externally only via the the panel.cfg like in the Mooney's example. Thinking further, maybe the ObjectRenderer could be expanded in the future t...
by BenBaron
Thu Feb 21, 2019 6:19 pm
Forum: Software Development Kit (SDK) Questions
Topic: P3D::PdkServices::GetMenuService()->AddItem with unknown parent MenuID
Replies: 5
Views: 28697

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

Thanks Beau for your reply and the hint for the defines.

SCENARIO_ITEM_ID or ANALYSIS_ITEM_ID are working fine as parent MenuID. ADDON_ITEM_ID doesn't work, though. Produces a HRESULT of E_FAIL.

Greets, Benny
by BenBaron
Thu Feb 21, 2019 5:20 pm
Forum: Software Development Kit (SDK) Questions
Topic: P3D::PdkServices::GetMenuService()->AddItem with unknown parent MenuID
Replies: 5
Views: 28697

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

Hi guys, I am adding a menu item to P3Ds menu. With SimConnect, this is automatically added to P3Ds Add-Ons menu item as a child. But now, with the PDK method, the menu item is placed directly in the main menu bar, which I don't want. So, is it somehow possible to retrieve the MenuID of an existing ...