News for hackers. Stuff that matters.
Re:Sailboat simulation in WebGL (2D Wireframe) by defenestration on Tuesday April 05, 2016 @02:56AM (#11428388)
That's a nice subtle animation. I also had difficulty steering the boat. It might be an idea to map Q-W to the sail and O-P to the rudder. When you start the sail is on the left and the rudder is on the right.
Re:Sailboat simulation in WebGL (2D Wireframe) by zappo2938 on Tuesday April 05, 2016 @07:26AM (#11429529)
It would be a lot more interesting if apparent wind [1] was calculated and the vectors were superimposed on the sailboat so users can see what is happening.

Sails are curved so they act like foils with wind moving faster of the outer surface than the inner surface creating forward thrust. The faster the boat moves through the water more thrust created which is countered by drag of the boat through water. There is nothing like the feeling of acceleration when a windsurf board starts planing.

[1] http://www.sailbetter.com/apparent-wind/

Re:Sailboat simulation in WebGL (2D Wireframe) by Infernal on Tuesday April 05, 2016 @11:31AM (#11431144)
> Sails are curved so they act like foils with wind moving faster of the outer surface than the inner surface creating forward thrust.

https://en.wikipedia.org/wiki/List_of_common_misconceptions#...

Re:Sailboat simulation in WebGL (2D Wireframe) by noja on Tuesday April 05, 2016 @04:02AM (#11428658)
Black screen for me (apart from text). Firefox 45.
Re:Sailboat simulation in WebGL (2D Wireframe) by skool on Tuesday April 05, 2016 @12:49AM (#11427899)
Getting the boat to go in the direction I wanted was much more difficult than I thought it would be. I like the subtle wind animation. Seemed to have an issue with chrome, "Error creating WebGL context", though it worked in firefox.
Re:Sailboat simulation in WebGL (2D Wireframe) by JohnDoe365 on Tuesday April 05, 2016 @03:01AM (#11428417)
Worked for me in Chrome on Windows, doesn't work with FF 45.
Re:Sailboat simulation in WebGL (2D Wireframe) by ygra on Tuesday April 05, 2016 @07:58AM (#11429656)
Works fine in Edge, too.
Re:Sailboat simulation in WebGL (2D Wireframe) by mikebelanger on Tuesday April 05, 2016 @09:23AM (#11430117)
Cool stuff! Admittedly it took my a moment to figure out the particles signified wind gusts, but once I figured that out the rest was straight-forward.
Re:Sailboat simulation in WebGL (2D Wireframe) by teekert on Tuesday April 05, 2016 @04:59AM (#11428909)
Another Chrome exclusive ;) Looks very nice and usefull in Chrome though.
Re:Sailboat simulation in WebGL (2D Wireframe) by SG- on Tuesday April 05, 2016 @05:31AM (#11429083)
Works in Safari too.
Re:Sailboat simulation in WebGL (2D Wireframe) by pc2g4d on Tuesday April 05, 2016 @03:59PM (#11433842)
Controls aren't doing anything for me :-(
Re:Sailboat simulation in WebGL (2D Wireframe) by imakesnowflakes on Tuesday April 05, 2016 @10:12PM (#11436102)
Please make sure that the window has focus. If the boat is not moving, then the controls won't do anything other than rotate the sail and the rudder (which is very subtle).