Search found 17 matches

by MicMac44
Thu Aug 15, 2019 3:52 pm
Forum: Software Development Kit (SDK) Questions
Topic: Draw Distance in Virtual Cockpit
Replies: 0
Views: 494

Draw Distance in Virtual Cockpit

Is there a minimum distance away from the user that is needed for DrawLine(), DrawSphere(), etc... to be seen? I am trying to draw inside the cockpit to grab the pilots attention during various events and I can't see any of my draws inside the cockpit.

Thanks!
by MicMac44
Wed Apr 17, 2019 5:51 pm
Forum: Software Development Kit (SDK) Questions
Topic: On screen text display in VR
Replies: 14
Views: 3451

Re: On screen text display in VR

Okay I figured it out. Didn't copy all my code so the error wasn't easily available. I was using the wrong SIMCONNECT_CLIENT_DATA_DEFINITION_ID in my SimConnect_RequestClientData call. The corrected code if anyone cares: DWORD ClientIDStruct = 9999; enum DATA_DEFINE_ID { LASER_FIRING_DATA_ID2, }; en...
by MicMac44
Tue Apr 16, 2019 6:46 pm
Forum: Software Development Kit (SDK) Questions
Topic: On screen text display in VR
Replies: 14
Views: 3451

Re: On screen text display in VR

I've figured out the sizing and it seems to be working (returning a size of 24 for my 3 doubles, thank you JB3DG and Clifton). My issue is pulling the information out in the MyDispatchProc . I'm not getting newStruct->Lon or newStruct->Alt to return the numbers I set for them before the SimConnect_S...
by MicMac44
Tue Apr 16, 2019 2:23 pm
Forum: Software Development Kit (SDK) Questions
Topic: On screen text display in VR
Replies: 14
Views: 3451

Re: On screen text display in VR

How does the SetClientData change when the data is a struct (composed of doubles) instead of a double? I'm not getting my callback to fire when I change a piece of my struct and then SetClientData. I looked at the TaggedData.cpp but I don't think a struct will act in the same way as the enums do aft...
by MicMac44
Mon Apr 15, 2019 9:39 pm
Forum: Software Development Kit (SDK) Questions
Topic: On screen text display in VR
Replies: 14
Views: 3451

Re: On screen text display in VR

Thank you! That worked!

I did have to change it just a little to:
case REQUEST_DATA:
printf("\nData request returned: %f\n", *(double*)&pObjData->dwData);
break;
by MicMac44
Mon Apr 15, 2019 7:28 pm
Forum: Software Development Kit (SDK) Questions
Topic: On screen text display in VR
Replies: 14
Views: 3451

Re: On screen text display in VR

Clifton, Thank you for the tip! I will be moving to more complicated data types but I wanted to start with something simpler. I guess I got lucky on that! Here's the callback code that waits for changes in the block data: case SIMCONNECT_RECV_ID_CLIENT_DATA: { SIMCONNECT_RECV_CLIENT_DATA *pObjData =...
by MicMac44
Mon Apr 15, 2019 4:47 pm
Forum: Software Development Kit (SDK) Questions
Topic: On screen text display in VR
Replies: 14
Views: 3451

Re: On screen text display in VR

Okay so I'm almost there! I have the SimConnect instance up and running. Now I'm trying to create a block of data on the server that my clients can write to (sorry for the wall of text): enum SIMCONNECT_CLIENT_DATA_DEFINITION_ID { LASER_FIRING_DATA_ID, }; enum DATA_REQUEST_ID { REQUEST_DATA, }; void...
by MicMac44
Thu Apr 11, 2019 2:48 pm
Forum: Prepar3D Professional Plus Client Application Questions
Topic: DE/KE weapon interaction
Replies: 4
Views: 1863

Re: DE/KE weapon interaction

There is also new DIS PDK functionality that has been recently added that allows developers to receive callbacks as PDU's are sent and received by P3D, as well as the ability to create and send their own PDU's. This gives a plugin the ability to potentially implement unsupported PDU's. Do you have ...
by MicMac44
Fri Apr 05, 2019 8:55 pm
Forum: Software Development Kit (SDK) Questions
Topic: PDK PDU Callback
Replies: 0
Views: 913

PDK PDU Callback

Is there an example I could use to create my own callback to intercept any incoming PDUs for processing?

I've looked at the CIGI example but I'm trying to intercept "Detonate" packets so I can affect P3D SimObjects accordingly.

Any help is greatly appreciated!
by MicMac44
Wed Mar 20, 2019 3:11 pm
Forum: Software Development Kit (SDK) Questions
Topic: can PdkServices be invoked from processes other than P3ds?
Replies: 4
Views: 3843

Re: can PdkServices be invoked from processes other than P3ds?

Do you have an example I could look at that demonstrates how to request those notifications?
by MicMac44
Tue Mar 19, 2019 7:29 pm
Forum: Software Development Kit (SDK) Questions
Topic: On screen text display in VR
Replies: 14
Views: 3451

Re: On screen text display in VR

You first need to QueryService the PDK to get the ISimObjectManager. Once you have the ISimObjectManager you can call GetUserObject to get the user's IBaseObject interface. Using the IBaseObject interface you can call GetProperty to get the FCS information. I should have responded earlier! I figure...
by MicMac44
Mon Mar 18, 2019 5:09 pm
Forum: Software Development Kit (SDK) Questions
Topic: can PdkServices be invoked from processes other than P3ds?
Replies: 4
Views: 3843

Re: can PdkServices be invoked from processes other than P3ds?

However, it should be possible for your executable to be able to communicate with a PDK based DLL using SimConnect calls such as SimConnect_CreateClientData and SimConnect_SetClientData. This would allow an external application to transmit data to a PDK based C++ plugin over SimConnect where the pl...
by MicMac44
Mon Mar 18, 2019 4:14 pm
Forum: Software Development Kit (SDK) Questions
Topic: On screen text display in VR
Replies: 14
Views: 3451

Re: On screen text display in VR

Is there an example of passing data from a SimConnect project to a PDK project? I have the text rendering but I have not been able to access the user's FCS target info nor any weapon info. I've seen a few posts mentioning you can use SimConnect_SetClientData and then have your PDK read in that clien...
by MicMac44
Thu Mar 14, 2019 7:16 pm
Forum: Software Development Kit (SDK) Questions
Topic: On screen text display in VR
Replies: 14
Views: 3451

Re: On screen text display in VR

Hello, You should be able to use the DrawText3D function in the PDK through the ObjectRenderer service. https://www.prepar3d.com/SDKv4/sdk/pdk_api/service_providers/group__rendering.html#class_i_object_renderer_v440 Regards, Kayla Excellent! Thank you! I'm not familiar with the PDK so I'm working t...
by MicMac44
Tue Mar 12, 2019 6:35 pm
Forum: Software Development Kit (SDK) Questions
Topic: On screen text display in VR
Replies: 14
Views: 3451

On screen text display in VR

Has anyone found a way to display text on-screen that is viewable in VR similar to the SimDirector's "OnScreenText" Object? I know there are a few SimConnect_Text option but they don't seem to be viewable in VR nor can I control the offset.

Go to advanced search