Search found 80 matches

by BenBaron
Mon Feb 11, 2019 3:02 pm
Forum: Software Development Kit (SDK) Questions
Topic: Render-to-Texture at an ObjectWorldTransform
Replies: 2
Views: 7943

Render-to-Texture at an ObjectWorldTransform

Hi guys, I would like to render something into view using the Rendering Services. I've experimented with the IObjectRendererV440 but especially the facility to render text seems to be limited, at least up to now (esp. size and font). The SDK details something on how to render directly into a texture...
by BenBaron
Fri Jan 25, 2019 5:14 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] PDK Sound Service Instance -> Play() Function
Replies: 24
Views: 31174

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

Thanks for the information, Clifton.

Nice to know I can stop trying to figure this one out.

All the best,

Benny
by BenBaron
Wed Jan 09, 2019 8:21 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] Sim Object
Replies: 5
Views: 8569

Re: Sim Object

Glad you got it solved.

All the best,

Benny
by BenBaron
Wed Jan 09, 2019 7:35 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] Sim Object
Replies: 5
Views: 8569

Re: Sim Object

Hi Seth,

I'd suggest you define

Code: Select all

 CComPtr<IBaseObjectV400>  ppObject = nullptr; 
and then check the returned HRESULT of GetObject() for any problem as to why ppObject isn't filled:

Code: Select all

 HRESULT hr = ObjectManager->GetObject(ResObjID, &ppObject); 
Maybe this helps.

Greets, Benny.
by BenBaron
Tue Jan 08, 2019 8:26 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] Sim Object
Replies: 5
Views: 8569

Re: Sim Object

Hi,

you could use the ISimObjectManager and call the GetObject() method on it, which takes an UINT idObject. On the returned IBaseObjectV400 **ppObject you could then call GetTitle() which gives you a LPWSTR pszCfgTitle as out argument.

Greets, Benny
by BenBaron
Tue Jan 08, 2019 6:11 pm
Forum: Software Development Kit (SDK) Questions
Topic: IWeatherSystemV430->GetInterpolatedMetarData weather.dll exceptions
Replies: 3
Views: 7154

Re: IWeatherSystemV430->GetInterpolatedMetarData weather.dll exceptions

Hi guys, I did some further tests with my project regarding this issue. The interesting thing is that I can also trigger spurious exceptions within the weather.dll with the call to GetWeatherInformation() on an IBaseObjectV400 if am allowing the process to run long enough. For testing purposes and t...
by BenBaron
Sat Jan 05, 2019 11:39 am
Forum: SimConnect Interface Questions
Topic: Get Information about the aircraft's Gears
Replies: 11
Views: 16109

Re: Get Information about the aircraft's Gears

WarpD wrote: Thu Jan 03, 2019 10:52 pm ...based on heading and distance to nose gear.
Is the x,y,z-offset of the NLG directly available via SimConnect?

Greets, Benny
by BenBaron
Thu Jan 03, 2019 12:35 pm
Forum: SimConnect Interface Questions
Topic: Get Information about the aircraft's Gears
Replies: 11
Views: 16109

Re: Get Information about the aircraft's Gears

Hi, just a quick one: I don't know how to do this via SimConnect, or if this was even possible. When I needed this information, I used FSUIPC to get the path of the currently loaded aircraft.cfg. Within you have the contact_points section where you can query the x, y, z-offset of the front gear. Fro...
by BenBaron
Thu Dec 20, 2018 3:32 pm
Forum: Software Development Kit (SDK) Questions
Topic: IWeatherSystemV430->GetInterpolatedMetarData weather.dll exceptions
Replies: 3
Views: 7154

Re: IWeatherSystemV430->GetInterpolatedMetarData weather.dll exceptions

Thanks Rob, I am just using WeatherThemes "Clear Skies" and "Gray and Rainy" for testing. I guess they are setting global weather? Will test the "GLOB" identifier and see what happens. Right now, it is running for over an hour polling every 10s without a crash occuring,...
by BenBaron
Thu Dec 20, 2018 3:25 pm
Forum: Software Development Kit (SDK) Questions
Topic: P3D::PdkServices::GetEventService()->UnregisterCallback
Replies: 4
Views: 8479

Re: P3D::PdkServices::GetEventService()->UnregisterCallback

Hi Rob, took a look at the CameraSystemPDK sample and this is quite similar to what I am doing. Like me, it is using the call to: PdkServices::GetEventService()->UnregisterCallback(EVENTID_Message, this); if messageID == EVENT_MESSAGE_APPLICATION_SHUTDOWN. This should normally decrease the refCount ...
by BenBaron
Thu Dec 20, 2018 12:36 pm
Forum: Software Development Kit (SDK) Questions
Topic: P3D::PdkServices::GetEventService()->UnregisterCallback
Replies: 4
Views: 8479

Re: P3D::PdkServices::GetEventService()->UnregisterCallback

Hi guys, with the newest SDK 4.4.16.27106 I am still experiencing shomething odd with this method: although the UnregisterCallback method "seems" to unregister the callback (at least P3D doesn't show an API.dll crash on exit in EventViewer anymore), it is increasing the refCount on the cal...
by BenBaron
Wed Dec 19, 2018 6:40 pm
Forum: Software Development Kit (SDK) Questions
Topic: IWeatherSystemV430->GetInterpolatedMetarData weather.dll exceptions
Replies: 3
Views: 7154

IWeatherSystemV430->GetInterpolatedMetarData weather.dll exceptions

Hi guys, I am regularly polling for the metar string for a given location using the IWeatherSystemV430->GetInterpolatedMetarData() method. Currently this is every 10s, but I also experimented with other values. While this works initially, it seems to cause some spurious exceptions of unknown kind be...
by BenBaron
Wed Dec 19, 2018 9:38 am
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] PDK Sound Service Instance -> Play() Function
Replies: 24
Views: 31174

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

Clifton, no, I am using SOUND_GROUP::SOUND_GROUP_ENVIRONMENT. I'm gonna wrap up some code without error checking and mabye you can spot a mistake: CComPtr<P3D::ISoundInstanceV440> soundInstance = nullptr; PDKSoundService->CreateSoundInstance(this->name.c_str(), SOUND_GROUP::SOUND_GROUP_ENVIRONMENT, ...
by BenBaron
Tue Dec 18, 2018 9:43 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] PDK Sound Service Instance -> Play() Function
Replies: 24
Views: 31174

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

Clifton Crane wrote: Tue Dec 18, 2018 5:01 pm Hi Benny,

Do you see the same behavior if the sound is not created as 3D?
Hi Clifton,

indeed, changing b3D to 'false' it is only played once. So it seems to have something to do with the 3D mode. What might this be?

Greets,

Benny
by BenBaron
Tue Dec 18, 2018 2:26 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] PDK Sound Service Instance -> Play() Function
Replies: 24
Views: 31174

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

Hi guys, now, I am seeing the following problem: I am trying to play a 3D sound just once, when a certain condition is met. The sound is created as CreateSoundInstance(bLooping = false) and all HRESULTS return S_OK. I checked with the debugger that Play() is indeed called only once in my code on the...