Board index FlightGear Development

Sailing, anyone?

FlightGear is opensource, so you can be the developer. In the need for help on anything? We are here to help you.
Forum rules
Core development is discussed on the official FlightGear-Devel development mailing list.

Bugs can be reported in the bug tracker.

Re: Sailing, anyone?

Postby AndersG » Wed Sep 07, 2016 7:25 am

rastafioul wrote in Tue Sep 06, 2016 5:32 pm:Nice!... real nice!
it seems that right now, the boat moves mainly on pitch but that is a great start.

Would it need to be possible to add this behavior to an AI ship (carrier or carrier 's escorts)?


No, not easily since it is for the primary (aircraft) FDM, i.e. the "player"'s craft and is built up (well, more or less) from generated forces and rigid body mechanics using JSBSim. The AI FDMs are very different and should probably be handled differently (e.g. through scripted movements).
Callsign: SE-AG
Aircraft (uhm...): Submarine Scout, Zeppelin NT, ZF Navy free balloon, Nordstern, Hindenburg, Short Empire flying-boat, ZNP-K, North Sea class, MTB T21 class, U.S.S. Monitor, MFI-9B, Type UB I submarine, Gokstad ship, Renault FT.
AndersG
 
Posts: 2413
Joined: Wed Nov 29, 2006 9:20 am
Location: Göteborg, Sweden
Callsign: SE-AG
OS: Debian GNU Linux

Re: Sailing, anyone?

Postby AndersG » Wed Sep 07, 2016 7:00 pm

To reconnect to the original topic: my Gokstad Viking ship is relatively (or perhaps somewhat, there is something odd with the sail) sailable now, but how realistic its (simple) physics may be is rather unclear and being a landlubber I'm rather unfamiliar with how boats handle.
Image
Image
(Note: if you want to try it in waves you'll also need to install the MTB_20m)
Callsign: SE-AG
Aircraft (uhm...): Submarine Scout, Zeppelin NT, ZF Navy free balloon, Nordstern, Hindenburg, Short Empire flying-boat, ZNP-K, North Sea class, MTB T21 class, U.S.S. Monitor, MFI-9B, Type UB I submarine, Gokstad ship, Renault FT.
AndersG
 
Posts: 2413
Joined: Wed Nov 29, 2006 9:20 am
Location: Göteborg, Sweden
Callsign: SE-AG
OS: Debian GNU Linux

Re: Sailing, anyone?

Postby Hooray » Fri Sep 09, 2016 7:52 am

The AI FDMs are very different and should probably be handled differently (e.g. through scripted movements).


To elaborate on AndersG's comments, see the summary at: http://wiki.flightgear.org/Status_of_AI_in_FlightGear

Which is to say that you can only get so far with scripted FDMs - sooner or later, it may be easier to actually extend the AI code to support actual FDMs (think JSBSim/YASim), which is a long-standing idea suggested by many core developers originally - it's just that the actual development of the AI subsystem took a very different path. Anyway, the power of scripted AI dynamics can be seen in tanker.nas, fox2.nas and particularly the bombable addon - all of which get away without using an actual FDM, using just scripted dynamics.
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11163
Joined: Tue Mar 25, 2008 8:40 am

Re: Sailing, anyone?

Postby Yakabuki » Wed Nov 23, 2016 5:12 pm

I found a sailing simulator that it currently in beta stage. https://sailaway.world/index.html is the site.

It looks good, but I won't be able to do anything with it unless and until they make it work OFFLINE. One email exchange with a developer indicates there is no plan to make it work offline. What a shame.

If Flightgear can work offline, there is no reason a sailing sim couldn't. Dang, why does everything have to be online, when it really doesn't?

So hat's off to Fightgear architects who got it right the first time.

Anyway, check out Sailaway at the link. You'll have to register, and get a download link. It looks very beta at this point, but dang, it is a salboat!
Yakabuki
 
Posts: 4
Joined: Sat May 21, 2016 1:36 am

Re: Sailing, anyone?

Postby Timi » Sat Mar 18, 2017 6:52 pm

We have a bunch of ships in development at FGUK. I was pointed to a piece of code on this forum post which
I adapted to our use:
viewtopic.php?f=5&t=2635

A few videos about the results:
https://youtu.be/KVT8r6pHi_Y
https://youtu.be/he0McoQQ4cI
https://youtu.be/qQI3wzuk1gE

Cheers,

-Timi
Timi
 
Posts: 21
Joined: Mon Nov 21, 2016 8:08 am
Callsign: Jaeger
Version: 2018.2.2

Previous

Return to Development

Who is online

Users browsing this forum: No registered users and 4 guests