radi wrote:
miercovich wrote:Hello !
I am interested in educational use of flightgear for an academic project. Part of this will require a richer scenery with urban traffic.
After having looked at the documentation, I understand there is a multiplayer feature in flightgear, as well as generic protocol system for creating custom network protocols, is that true?
Can these systems be used to drive AI ground traffic (cars) on flightgear scenery roads using a network protocol?
If this is not currently possible, would it be possible to create such a custom protocol for doing just that? I am thinking in terms of just GPS coordinates for a number of cars, that get updated at a rate of about 0.1-2 hz, depending on the viewer distance (high priority at low altitudes with high visibility).
I also understand that there is a patch available for flightgear to support the vamos automotive simulator as the fdm: http://www.mail-archive.com/flightgear- ... 22899.html
Then, there is the open source sumo project for simulating urban traffic. Sumo can simulate random urban traffic patterns and uses shape files for moving traffic along real existing roads, in addition it is possible to replay actual recorded real life traffic data. So this would be a great way for populating the scenery.
My question is: Can these features together be used to drive realistic AI road traffic in flightgear from another application (sumo)?
I don't just mean a single AI car, but posssibly hundreds at once to create the impression of realistic traffic driving through the scenery. Like I mentioned, sumo can provide all the traffic information. Flightgear would just need a way to turn the traffic information (positions) into AI objects and move/animate the cars accordingly (using the vamos fdm).
If this is currently not yet possible, what changes would be necessary to support this feature? Could this be added with some scripting, or would we need to look into the C++ source code?
And is anybody working on this or also interested in this idea? What would be the most appropriate (or recommended) route to go about implementing this?
In programmer terms, the following 3 questions are most interesting at the moment:
- can AI traffic be created and controlled using a network protocol?
- can flightgear be used (or made) to accept a sumo feed (positions of car objects)?
- and can these positions then be used to to tell the vamos fdm to move the AI cars realistically?
Thank you very much
- miercovich
Why not a proper texture that looks like a road? You know, black and white lines and grey footpath?...
Users browsing this forum: No registered users and 1 guest