Search found 14 matches

by lequinne
Fri Sep 13, 2019 1:31 am
Forum: SimConnect Interface Questions
Topic: Lag/poor station-keeping with AttachSimObjectToSimObject
Replies: 3
Views: 29758

Lag/poor station-keeping with AttachSimObjectToSimObject

I am attaching 40 or so airplanes to the deck of an AI aircraft carrier using SimConnect_AttachSimObjectToSimObject(). It works reasonably well, however the planes appear to oscillate up and down considerably (in perfect unison) as the deck pitches and rolls - they are not in sync with the deck of t...
by lequinne
Tue Oct 30, 2018 8:44 pm
Forum: SimConnect Interface Questions
Topic: SimConnect VideoStream with overlay?
Replies: 0
Views: 13947

SimConnect VideoStream with overlay?

Hey there, a question about the streaming interface supported by SimConnect_BeginVideoStream(). I got it working fine, I can create and control two aircraft carrier PLATS/ILARTS cameras using the PDK, and view the streams in VLC. When I view them in sim, I can also overlay the appropriate text using...
by lequinne
Tue Oct 23, 2018 2:34 pm
Forum: Software Development Kit (SDK) Questions
Topic: Virtual Cockpit Lighting using PDK IObjectRendererV400::AddLight()
Replies: 0
Views: 7864

Virtual Cockpit Lighting using PDK IObjectRendererV400::AddLight()

Hi all, We are trying to make a VC lighting system by placing lights dynamically using the PDK. So far we are able to place lights using the IObjectRendererV400::AddLight() function. However, whenever the camera is closer than 1 meter from a light, that light is clipped out of view and disappears. C...
by lequinne
Thu Mar 15, 2018 4:37 am
Forum: SimConnect Interface Questions
Topic: VC camera movement due to accelleration
Replies: 0
Views: 7533

VC camera movement due to accelleration

Hi folks, I have a wee bug report/feature request: The virtual cockpit camera moves due to acceleration in the sim, which is great. However, it does not take into account acceleration/velocity values that I set through SimConnect. So when I'm attached to my custom catapult/holdback/tiedown and the v...
by lequinne
Mon Mar 05, 2018 7:06 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] Wave simulation
Replies: 6
Views: 17823

Re: Wave simulation

Ah, that's perfect. Thank you sir!

Farley
by lequinne
Fri Mar 02, 2018 5:44 am
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] Wave simulation
Replies: 6
Views: 17823

Re: Wave simulation

Hi Beau,

On a related note, would you consider adding an interface to the PDK at some point to query ocean/wave information? Specifically, I'd really like to be able to call Triton's GetHeight() function, it would be extremely useful.

Thanks,
Farley
by lequinne
Thu Jul 27, 2017 6:07 pm
Forum: Simulation Object Development Questions
Topic: Losing control of Lvars on Aircraft reload
Replies: 10
Views: 22151

Re: Losing control of Lvars on Aircraft reload

Hi Doug, Thanks so much for your reply. Unfortunately, I'm extremely reluctant to suspect the calls to register_named_variable(), as they weren't in my original code. I originally was doing it the normal way, i.e. calling register_named_variable() only in the constructor, at the same time as I set t...
by lequinne
Wed Jul 26, 2017 10:12 pm
Forum: Simulation Object Development Questions
Topic: Losing control of Lvars on Aircraft reload
Replies: 10
Views: 22151

Re: Losing control of Lvars on Aircraft reload

No joy. I dumped the strings to a text file before aircraft reload (while it was working normally), and a few seconds after aircraft reload (when it's broken), compared the two files, and according to my hex editor, they are identical on a binary level.
by lequinne
Wed Jul 26, 2017 9:48 pm
Forum: Simulation Object Development Questions
Topic: Losing control of Lvars on Aircraft reload
Replies: 10
Views: 22151

Re: Losing control of Lvars on Aircraft reload

I will try dumping all the string names before and after aircraft load.
by lequinne
Wed Jul 26, 2017 9:45 pm
Forum: Simulation Object Development Questions
Topic: Losing control of Lvars on Aircraft reload
Replies: 10
Views: 22151

Re: Losing control of Lvars on Aircraft reload

CarrierConfig::CarrierConfig(){ Init(); } void CarrierConfig::Init(){ strings[0] = "cv41_genvis1"; strings[1] = "cv41_genvis2"; strings[2] = "cv41_genvis3"; strings[3] = "cv41_genvis4"; //etc... all the way to: strings[109] = "cv43_deck_lights"; } Cl...
by lequinne
Wed Jul 26, 2017 7:22 pm
Forum: Simulation Object Development Questions
Topic: Losing control of Lvars on Aircraft reload
Replies: 10
Views: 22151

Re: Losing control of Lvars on Aircraft reload

Hi, What I'm doing is running a 6hz simconnect update, and in that callback function, doing the following: double oldVals[110]; std::string strings[110]; void On6hzUpdate(){ for (int i = 0; i < 110; i++){ set_named_variable_value(register_named_variable(strings[i].c_str()), oldVals[i]); } } Where th...
by lequinne
Mon Jul 24, 2017 8:24 pm
Forum: Simulation Object Development Questions
Topic: Losing control of Lvars on Aircraft reload
Replies: 10
Views: 22151

Losing control of Lvars on Aircraft reload

Hi, We are building an aircraft carrier for P3Dv3 and 4, and it has static aircraft who's visibility is controlled by L:vars which I'm setting through a DLL, which is being loaded by the sim through dll.xml. The issue I'm having is that it all works fine when the ship is loaded after the airplane, b...
by lequinne
Fri Jun 09, 2017 4:32 pm
Forum: SimConnect Interface Questions
Topic: SimConnect_RequestCameraRelative6DOF
Replies: 2
Views: 8988

Re: SimConnect_RequestCameraRelative6DOF

Hi Beau, Thanks so much for your response. After going through the PDK docs, it certainly looks like it can provide exactly what I am after. But given that we are for the moment still developing aircraft for FSXA/FSX:SE in parallel, it would be tremendously helpful if there is a way to attach to the...
by lequinne
Thu Jun 08, 2017 8:10 pm
Forum: SimConnect Interface Questions
Topic: SimConnect_RequestCameraRelative6DOF
Replies: 2
Views: 8988

SimConnect_RequestCameraRelative6DOF

Hi folks, My question is: is it possible to get the camera relative 6DOF data in realtime, like is possible for the "dynamic eyepoint position". Is there a way to get this data delivered automatically every frame? It seems like the only way I've discovered is to keep calling SimConnect_Req...