Outerra forum

User mods, screenshots & videos => Watercraft => Topic started by: andfly on February 21, 2016, 10:54:35 am

Title: Sail Boat
Post by: andfly on February 21, 2016, 10:54:35 am
(http://i63.tinypic.com/2iw4zs2.jpg)

Since it was introduced the wind in Outerra I dreamed of building a model sailboat.
When I had a little time I began to experiment and I noticed that the wind does not affect the motion of the ship models but only that of flying models
 (probably acts on the JsbSim characteristics and does not affect models that use Bullet Phisics) .
This, after all, it was lucky , because I did not know how to set the sails of a boat as "collision meches" and give them the aerodynamic characteristics necessary to "respond" to the wind Outerra and determine the thrust of progress model.
So I searched on the Web some manual of sailing and I realized that, remaining the basic interactions and without trying to implement sophisticated interactions, was not so difficult to write the algorithms that apply the force of the wind to the sails of a boat and it determine the movement in the sea.

So .... here is the model of a sailing boat!

I repeat ... I have not tried an "absolute" closeness to reality, only the "appearance of realism" that should allow you to sail with this boat in an interactive and fun way: I hope I succeeded ...

I developed the model with the default setting of Anteworl (wind at 10 m/sec) to be able to sail immediately, but you can change the wind speed and its direction in the Anteworld menu to amplify or reduce the effects of the thrusts.

The manual that lists the commands of the sailboat is in the "Help" folder of the model.

To all .... Good navigation !!!


To Download Sail Boat:
https://drive.google.com/file/d/0B6114pZ3kPTgN0gxSklmSDdnNkE/view?usp=sharing

A short video:
https://youtu.be/xvhfkoxPNBE
Title: Re: Sail Boat
Post by: HiFlyer on February 21, 2016, 11:09:22 am
Absolutely awesome! Thank You very much!  =D
Title: Re: Sail Boat
Post by: SteelRat on February 21, 2016, 12:34:34 pm
File Sail_boat.andfly.otx It contained a virus and was removed. :facepalm: :facepalm: :) :)
Title: Re: Sail Boat
Post by: KW71 on February 21, 2016, 01:19:13 pm
Wooow!!! That looks so peaceful!!! Love how the sailors move their head!!
Title: Re: Sail Boat
Post by: aWac9 on February 21, 2016, 01:26:16 pm
great contribution
thanks

Virus ¿? ,, Are called false positives, error detection algorithms, caused mostly by comparing arhivos database of signatures -Base -. Which are ineffective against new threats where the virus is not static but changes your code without stopping.
Remember when Security Essentials, AVG Micorsoft and erased the file "user 32.dll" damaging infinite pc user. At that time ...
Quiet,, download it has nothing to fear .... I believe ?  ^-^ ^-^

Title: Re: Sail Boat
Post by: andfly on February 21, 2016, 08:07:27 pm


I came back from work now and I turned on the computer to read this shocking news ...
File Sail_boat.andfly.otx It contained a virus and was removed. :facepalm: :facepalm: :) :)
I immediately blocked the download of the sailboat OTX file and started the appropriate inspections ...

I scanned with antivirus the "Sail_boat.andfly.otx" file in my computer and downloaded file in Google Drive (Microsoft Defender ... maybe is not the best ...) and I have not gotten any response troubling.
I installed and run "Norton Security Scan" and, excepting the obvious solicitation to buy one of their most complete and powerful product because my computer, in their view, is not protected in a secure, I have not yet received any alarming warning on file concerned.
I scanned the file using the service Metascan Online (leans to 43 different anti-virus) and I have found no fault ...

I'm really puzzled ......
In recent weeks my computer worked perfectly and did not give me any of viral infections suspected in place ....
I hope, with all my heart, that this is a "false positive" ... he says the friend aWac9 (whom I thank very much for the speed with which you are interested in this fact) and the "offending" file is completely sure.

However I can not risk it.

Tonight I shall undertake a full and detailed scanning of the entire computer with the anti-virus and, if you still will not get worrying signs, only tomorrow will set it online the address to download the model.
The idea of ​​having spread, even if unintentionally, a computer virus infection,  makes me shudder, it is not something to consider lightly.

I apologize to all users if I have created problems, and I invite all those who have already downloaded the "Sail_boat.andfly.otx" file to pay close attention and to inform me promptly if they notice the possibility of an infection.

Thank you all for your attention           andfly
Title: Re: Sail Boat
Post by: SteelRat on February 22, 2016, 09:19:15 am
RU

У меня есть веские причины предполагать, что это фокусы Windows 10.
У меня, встроенная в Windows 10 система безопасности, иногда с подозрением относится к ссылкам на сайты Microsoft, и предупреждает что это не безопасно!  :) :) :)

Очень странная операционная система !!!  :) :) :)

Translate

I have good reasons to believe that this trick Windows 10.
I have built into Windows 10 security, sometimes with suspicious links on Microsoft's websites, and warns that it is not safe!  :) :) :)

Very strange operating system !!!  :) :) :)
Title: Re: Sail Boat
Post by: andfly on February 22, 2016, 12:51:34 pm
Last night I made a full and detailed scan of my computer and now I'm sure:  my computer is healthy !!!
 (At least in the opinion of Microsoft Defender).

However safety can never be too ....

* I have deleted the file "Sail_boat.andfly.otx" from Google Drive.
* I rebuilt the PDF files of the manuals.
* I checked that the .js files only contain text and had no headers or suspicious appendices.
* I double checked with Microsoft Defender the folder containing all files of the model.
* I ran Anteworld and I redid the export of the model by creating the OTX file.
* I double checked the file.otx with Microsoft Defender.
* I copied the file to Google Drive or obtained a new share link.

At this point I do not know what else to do .....
If the new file has a problem ... please tell me now!

I blot out everything ... and throw away the computer !!!

andfly
Title: Re: Sail Boat
Post by: Uriah on February 22, 2016, 02:25:06 pm
Very nice work andfly!!! Looks awesome.

That was definitely a false positive. The OTX format, being essentially a compression archive which unpacks files including JavaScipt to a pre-determined directory on your computer, will look like suspicious activity, which in some cases will trigger the automatic deletion of the files/OTX. Sure it is possible for someone to insert malware into an OTX on purpose, but it is extremely unlikely that any of the contained files would unintentionally become infected, even if your computer were infected, except in certain extreme cases. The OTX file extension is definitely a trust based system, and I completely trust andfly to not infect my computer intentionally.  :D

Regards,
Uriah

P.S. I wasn't able to download it, post that baby up there again!!!!!
Title: Re: Sail Boat
Post by: andfly on February 23, 2016, 07:24:02 am
It's been a whole day and got no funeral news .... :)
Now everything should be ok!

You can get back to normal!     :D :D
Title: Re: Sail Boat
Post by: andfly on February 23, 2016, 07:27:04 am
Absolutely awesome! Thank You very much!  =D

Many thanks to you,   Hiflyer

Indeed ...  2 times thanks a lot!   =D =D
Title: Re: Sail Boat
Post by: andfly on February 23, 2016, 07:29:50 am
Wooow!!! That looks so peaceful!!! Love how the sailors move their head!!

Thank you.

I just tried intentionally to convey the feeling of being in absolute peace, lulled by the sea.
The sway of the parapet chords and the heads of the sailors, the flicker of the flags, the sound of waves, the creaking of the wood and the screeching of seagulls ....
Everything should help to create this atmosphere.

I'm glad I passed this feeling.   :)
Title: Re: Sail Boat
Post by: HiFlyer on February 23, 2016, 07:31:59 am
Wooow!!! That looks so peaceful!!! Love how the sailors move their head!!

Thank you.

I just tried intentionally to convey the feeling of being in absolute peace, lulled by the sea.
The sway of the parapet chords and the heads of the sailors, the flicker of the flags, the sound of waves, the creaking of the wood and the screeching of seagulls ....
Everything should help to create this atmosphere.

I'm glad I passed this feeling.   :)

Yup, I have been using it with no problems.  :)
Title: Re: Sail Boat
Post by: andfly on February 23, 2016, 07:37:29 am
Yup, I have been using it with no problems.  :)

Excellent news .... thanks!  :)
Title: Re: Sail Boat
Post by: andfly on February 23, 2016, 07:42:19 am
great contribution
thanks

Virus ¿? ,, Are called false positives, error detection algorithms, caused mostly by comparing arhivos database of signatures -Base -. Which are ineffective against new threats where the virus is not static but changes your code without stopping.
Remember when Security Essentials, AVG Micorsoft and erased the file "user 32.dll" damaging infinite pc user. At that time ...
Quiet,, download it has nothing to fear .... I believe ?  ^-^ ^-^

Thanks for everything, Manuel

I very much liked the " I believe ? " at the end of your post.
Chilling ....  :o
Hitchcock was an amateur !!!   :)) :)) :))
Title: Re: Sail Boat
Post by: andfly on February 23, 2016, 07:46:59 am
Very nice work andfly!!! Looks awesome.

That was definitely a false positive. The OTX format, being essentially a compression archive which unpacks files including JavaScipt to a pre-determined directory on your computer, will look like suspicious activity, which in some cases will trigger the automatic deletion of the files/OTX. Sure it is possible for someone to insert malware into an OTX on purpose, but it is extremely unlikely that any of the contained files would unintentionally become infected, even if your computer were infected, except in certain extreme cases. The OTX file extension is definitely a trust based system, and I completely trust andfly to not infect my computer intentionally.  :D

Regards,
Uriah

P.S. I wasn't able to download it, post that baby up there again!!!!!

Hi!  Uriah
Thank you !!  :)

And thanks to the detailed technical and reassuring explanations.  :D

You managed with the download?
(  I checked and it seems all right .... )
Title: Re: Sail Boat
Post by: HiFlyer on February 23, 2016, 08:46:08 am
I downloaded it again after Uriah wrote that he was having problems, and if worked fine for me.
Title: Re: Sail Boat
Post by: z06z33 on March 06, 2016, 07:51:35 pm
Op any chance you could help me import some ships? I have access to some very good models but am not sure how to turn them from static models to vehicles
Thanks
David
Title: Re: Sail Boat
Post by: andfly on March 08, 2016, 08:39:03 pm
Op any chance you could help me import some ships? I have access to some very good models but am not sure how to turn them from static models to vehicles
Thanks
David


Import a model in Outerra and animate it is not an exceptionally complicated undertaking, but still requires a certain application and a little study.
The first step is to build or import a model in a 3D graphics program that can then export the model as collada file (.dae).
[You can also use the .fbx format, but I've never used this particular importer and can not give indications]
For this purpose I use BLENDER, fantastic and completely free.

In the model you will have to carefully fix the centers of rotation of all the objects that later you will want to animate, and you will have to create a "hierarchy" with the "parent" command that bind to each other all the components of the model, in sequence, until 'main object that identifies the model (for a ship, for example, may be: the hull).
In this way each command of rotation or movement applied to a single object "drag" also all the objects that were "parented", which can then be rotated or moved in turn.
Completed the design of the model is passed to its import into Outerra.
This phase is carried out automatically by the Importer that is inside Anteworld ( Menu --> Object -> Import )
Its operation is explained in the Wiki of this forum along with details for the setting of materials and textures.

At this point you should animate the model and this is done with a series of commands of a JavaScript file.
Even the list of all possible commands, their grammatical form and the characteristics of this "control file structure" is available in the Wiki forum.
A tip: the Wiki instructions sometimes are very synthetic and not readily perceived by those who are not very practical programming to a level a little high (and does not know the English language) ... but there is a simple and easy system to learn: read and study the JavaScript files that other modders have attached to their models.
I never happened to read copyright reserves in these files (in fact make available freely and free of their work and their "discoveries" ,  necessarily implies the freedom for anyone to use this knowledge for their work.)
This is definitely the best school because it allows you to discover how to set the controls and the effect they have, in practice, on the model animation.


One other useful indication could be the list of programs that I use to create models in Outerra.

Being a Hobby (very exciting but still a hobby) I can not afford to use commercial and expensive programs although fantastic ...
So I turned to the world of the programs are free to use, which is found throughout the Web, and that they are definitely lived.

* For the part of 3D modeling graphics, I tried various software (SketchUp, Wings 3D, Anim8or ..) and in the end I decided to Blender [https://www.blender.org/], with a little apprehensive because in the web many people consider it overly complicated.
Actually I do not think it's hard ... I think it is so vast and can do so many things to "give the impression" to be complicated for the frustration of not being able to use it completely, but you always have something to learn .. .
And however you can begin to use to build or develop the first simple models and the more we learn its possibilities, more and better will be able to get more and more sophisticated models.
* For the construction of the human characters is fantastic MakeHuman [http://www.makehuman.org/].
* To transport real objects within the graphics program (I use it for heads and human faces) there is the free service of Autodesk: 123D Catch [http://www.123dapp.com/catch]
* For the creation and conversion of textures in .dds files with mipmaps I use Gimp [https://www.gimp.org/].
* For the writing of the command file in Javascript (after the first disastrous attempts with Notepad)  I use FreeJavaScript [http://www.yaldex.com/Free_JavaScript_Editor.htm]  and PSPad [http://www.pspad.com/].
* If you want to learn (or improve) the knowledge of the JavaScript language is sufficient to do a simple search on the Web with Google.
There is a large number of free manuals to download and study.
* For processing of sounds and music: Audacity [http://www.audacityteam.org/]
* Finally, to create movies with your models, there is the classic, and for me enough,  Movie Maker in the package Window Live.

I hope to be liked, and this information helps you build more and more exciting models.


One last little note:
You said you had access to excellent models ...
"Full" access for their use and distribution?
Remember that, on a personal level and for private use, you can easily convert and animate any model.
And if you're passionate and your models are perfected, before publishing them you must make sure you do not infringe any copyright in order to avoid unpleasant legitimate owners claim ...

Good luck and good work.  :)
Title: Re: Sail Boat
Post by: bomber on January 11, 2017, 04:06:18 pm
Hi Guys I need a mono-hulled sail boat model similar in size to the cat in this thread.... anyone up for it ?

I have a JSBsim model for it, so can use the wind to actually sail.


Ok how about Australia II.... a lot of info out there including line drawings.
Title: Re: Sail Boat
Post by: josem75 on January 12, 2017, 10:40:59 am
Hi Guys I need a mono-hulled sail boat model similar in size to the cat in this thread.... anyone up for it ?

I have a JSBsim model for it, so can use the wind to actually sail.


Ok how about Australia II.... a lot of info out there including line drawings.

Hey Bomber. we miss your JSBsim files. Here we can find some boats, i dont know if this can be useful for your purpose:
http://tf3dm.com/3d-model/sailboat-81879.html

 Another question would be about permissions. But can try asking to authors.

There are great planes too, maybe we can try some permission from some author.
My dream is a Tie Fighter like that flying so fast around mountains: http://tf3dm.com/3d-model/tie-fighter-94029.html
Sure you can help with JSBsim for get something like that. And we have already the laser shots :)
Title: Re: Sail Boat
Post by: bomber on January 12, 2017, 02:31:30 pm
Any flight model like the tie fighter relies on first defining in simple terms how the forces needed are going to developed.... once that's done it's relatively easy.
Title: Re: Sail Boat
Post by: josem75 on January 12, 2017, 09:18:24 pm
Any flight model like the tie fighter relies on first defining in simple terms how the forces needed are going to developed.... once that's done it's relatively easy.

Great. I will try to contact the author for request permission to use and share in outerra.
In google warehouse are also some models. Warehouse is free to use and share in Outerra? I think they upgrade their conditions, so actually i dont know if we can use models from there. I think in the past we did.
Title: Re: Sail Boat
Post by: fly77 on October 29, 2018, 01:25:49 pm
Hi andfly. I have a problem with spawning the sailboat in the new outerra version 17.1.09891.

When spawning it I get this error   TypeError: Object [object Object] has no method 'get_pos_offset' (ot::js::vehicle_physics.update_frame(): )  and the boat just sits lifeless in the air.

seems that in the following lines of your code it can't apply the get_pos_offset commmand. I don't know if this command disappeared from the new outerra version or wether there is a workaround.

Code: [Select]
var v = this.get_geomob(0);
var ecef = v.get_pos_offset({x:100,y:0,z:0});


Title: Re: Sail Boat
Post by: andfly on October 30, 2018, 05:56:27 am
Yes, the "get_pos_offset" command is obsolete.
Has been replaced by: "get_world_pos_offset".

https://github.com/Outerra/anteworld/blob/master/include/ot/geomob.h

However I used it to create a reference point of known coordinates and from this, with trigonometric calculations, go back to the orientation of the model.
All this became useless when I discovered that there was a "heading_pitch_roll" method that directly provided geographic orientation without having to calculate it ...

https://github.com/Outerra/anteworld/blob/master/include/ot/vehicle_physics.h

If you wish to have a working model, download "Sail_boat.andfly.otx" again from google drive.

https://drive.google.com/file/d/0B6114pZ3kPTgN0gxSklmSDdnNkE/view?usp=sharing

Good adventures!  :D
Title: Re: Sail Boat
Post by: fly77 on October 30, 2018, 08:15:44 am
Thank you so much andfly ! Your sailboat is such a good mod that it was a pity not to be able to navigate with it. Thanks for the updated version. Also thanks for pointing to the github websites which I now recognize contains lots of information on available commands in outerra, apparently more extensive and more updated than the outerra http://xtrac.outerraworld.com/ (http://xtrac.outerraworld.com/) website.
I was looking for a pitch and roll command for vehicles in recent days and so this info comes as an extra with your response. Keep on your great work !