Board index FlightGear Support Multiplayer

Animations on MP aircraft

Trouble getting online, setting up a server?
Forum rules
In order to help you, we need to know a lot of information. Make sure to include answers to at least the following questions in your initial post.

- what OS (Windows Xp/Vista, Mac etc.) are you running?
- what FlightGear version do you use?
- copy&paste your commandline.

Please, also see Requesting Technical Help.

Note: If you did not get a reponse, even after 7 days, you may want to check out the FlightGear mailing lists to ask your question there.

Animations on MP aircraft

Postby ReinartM » Fri Dec 09, 2016 10:43 am

Hi
I browsed this forum but could not quite get the answer I was looking for.
I have two instances of FlightGear 2016.4 running on windows 10, connected via the local loop in a multiplayer setup. The models in each instance have a network flight dynamics model.
For some reason, animations, effects (rocket flames) and smoke (particles) does not show up on the corresponding MP aircraft in each instance. The animations and effects are driven using
aliases. For instance the rocket flame on the first model is driven by /sim/multiplay/generic/float[8]. I tested by setting a value to /sim/multiplay/generic/float[8] on the first instance of flightgear. The model then has rocket and flame effects. But on the second instance of FlightGear, this model (which is now the MP model) does not show the rocket flame and smoke. Checking the properties in the second instance of flightgear shows /ai/models/multiplayer/sim/multiplay/generic/float[8] did indeed also change, so the value got transmitted over MP correctly, but the MP model does not show animations accordingly.
Is there any setting I need to make when running to program to enable the view of multiplayer animations? I am running from the command prompt.

First Aircraft:

C:
cd C:\FlightGear2016

SET FG_ROOT=C:\FlightGear2016\\data
SET FG_SCENERY=C:\FlightGear2016\data\Scenery
.\\bin\\fgfs --aircraft=aircraft1 --fdm=network,localhost,5501,5502,5503 --start-date-lat=2016:06:01:10:00:00 --lon=9.01456111 --lat=47.03332344 --altitude=1105 --heading=130 --roll=0 --pitch=90 --offset-distance=0 --offset-azimuth=0 --multiplay=in,10,127.0.0.1,5000 --multiplay=out,10,127.0.0.1,5001 --callsign=AIR1 --prop:/sim/rendering/multi-sample-buffers=true --prop:/sim/rendering/multi-samples=4

Second Aircraft:

C:
cd C:\FlightGear2016

SET FG_ROOT=C:\FlightGear2016\\data
SET FG_SCENERY=C:\FlightGear2016\data\Scenery
.\\bin\\fgfs --aircraft=aircraft2 --fdm=network,localhost,5501,5504,5503 --start-date-lat=2016:06:01:10:00:00 --lon=9.01456111 --lat=47.03332344 --altitude=1105 --heading=130 --roll=0 --pitch=90 --offset-distance=0 --offset-azimuth=0 --multiplay=in,10,127.0.0.1,5001 --multiplay=out,10,127.0.0.1,5000 --callsign=AIR2 --prop:/sim/rendering/multi-sample-buffers=true --prop:/sim/rendering/multi-samples=4
ReinartM
 
Posts: 4
Joined: Fri Dec 09, 2016 10:17 am

Re: Animations on MP aircraft

Postby Necolatis » Fri Dec 09, 2016 10:50 am

Make sure that when you alias you have a leading slash in front of the property, like: /sim/blabla
But everywhere you use the generic property to animate and such, make sure there is no leading slash in front, like: sim/multiplay/generic/float[8]
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore
User avatar
Necolatis
 
Posts: 2240
Joined: Mon Oct 29, 2012 1:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2020.3.19
OS: Windows 10

Re: Animations on MP aircraft

Postby ReinartM » Fri Dec 09, 2016 11:12 am

Thanks.
I have done this, and it looks like it does not have an effect :(
It is strange, as when I change on FlightGear instance 1 the value of /sim/multiplay/generic/float[8], then on FlightGear instance 2 the value of /ai/models/multiplayer/sim/multiplay/generic/float[8] changes immediately. On FlightGear instance 1, the flames and smoke does show up, but on FlightGear instance 2 the flame and smoke does not show.
So it looks like the values are getting communicated between the two FlightGear instances, but the animations does not react on these values in the MP environment.
ReinartM
 
Posts: 4
Joined: Fri Dec 09, 2016 10:17 am

Re: Animations on MP aircraft

Postby Necolatis » Fri Dec 09, 2016 11:16 am

I know its basic, but after you changed the slashes, did you remember to put the changed plane on instance 2 also?

Also shaders cannot be driven over MP, only animations and particle effects and such.
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore
User avatar
Necolatis
 
Posts: 2240
Joined: Mon Oct 29, 2012 1:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2020.3.19
OS: Windows 10

Re: Animations on MP aircraft

Postby ReinartM » Fri Dec 09, 2016 5:31 pm

Thanks I got it to work!
The slashes is for sure an issue, and I also saw that I had to add --enable-ai-models when starting fgfs.
ReinartM
 
Posts: 4
Joined: Fri Dec 09, 2016 10:17 am


Return to Multiplayer

Who is online

Users browsing this forum: No registered users and 1 guest