Creating a Researched Based Sailing Simulation | Devlog #3

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 มิ.ย. 2023
  • Support me on Patreon - / byteslider
    Join our Discord - / discord
    Researched-Based Water Physics, Ocean Simulation, Buoyancy, Sailing Simulation are alternative titles. As you can guess it's a bit of a sailing simulator game.
    //about
    Hey, I'm Thomas and I've been doing game dev for a decade now, professionally and not. In this devlog I'm talking about my current game, an Immersive and cozy farming / merchanting / adventure game set in a tropical setting. Either you choose your own adventure with Base Building, which is inspired by games like Stardew Valley and Animal Crossing New Horizon or ACNH, or you become a merchant and travel the world from port to port like in Sailwind and are trying to make a profit. This was also inspired by two Skyrim mods, which would change the economie with regional pricing and stuff. And if that is not your style, experience an indie adventure and take a look at the story, which will let you explore this small open world with enough simulated physics to let you sandbox around. Sounds like a lot to do in programming, low poly art, sounds, music and so on and thats why I'm making these videos.
    //credits
    The Music consists of (in no particular order)
    Galloping Horses, Rust and Percussive Intro
    all made by Alexander Nakarada (www.serpentsoundstudios.com)
    Licensed under Creative Commons: By Attribution 4.0 License
    creativecommons.org/licenses/b...
    "Sanderburry's Steamworks" Trey VanZandt ( / treyvanzandt )
    Licensed under Creative Commons: By Attribution 3.0 License
    Stockfootage and other Music is taken from
    pixabay.com/
    #devlog #unity #gamedev

ความคิดเห็น • 54

  • @jakubracek3562
    @jakubracek3562 8 หลายเดือนก่อน +19

    People generally think that sailboat is a parachute. But it's more of a wing

    • @Bishiba92
      @Bishiba92 26 วันที่ผ่านมา

      No, I think it's more of a floating vehicle.

  • @connycontainer9459
    @connycontainer9459 หลายเดือนก่อน +2

    Maybe ask the developer of Sailwind how he's done it.

  • @hansa5867
    @hansa5867 28 วันที่ผ่านมา +1

    Well, you could do it this way. Or you can use a 180 degree animation curve that works as a factor on the apparent wind force. 0 if sailing into wind. 0.1 if the wind is somewhat in front. 0.5 if from the side. 0.99 if angled from behind and 0.7 if directly behind.

    • @byteslider
      @byteslider  27 วันที่ผ่านมา

      Good point

  • @rwnalite426
    @rwnalite426 9 หลายเดือนก่อน +2

    That's the best video on developing a sailing mechanic I've seen. Thank you for the inspiration!

  • @AravisUndercroft
    @AravisUndercroft 9 หลายเดือนก่อน

    I'm wrestling with a very similar issue myself right now and you helped me feel a flash of solidarity and hope. Thanks for sharing the rad video!

  • @PaperPilz
    @PaperPilz 11 หลายเดือนก่อน +2

    And there is nthe next wonderful devlog of yours

    • @byteslider
      @byteslider  11 หลายเดือนก่อน +1

      I'm doing my best ^^

  • @Simon-uj1ic
    @Simon-uj1ic 11 หลายเดือนก่อน +1

    damn men such a banger video, very funny gestaltung and i am pretty hyped for more devlogs they are tooooo good

    • @byteslider
      @byteslider  11 หลายเดือนก่อน +1

      Dankeschön! :D

  • @mesmeree1742
    @mesmeree1742 11 หลายเดือนก่อน +1

    I love these devlogs and I hope that they will be coming out more often! :D

    • @byteslider
      @byteslider  11 หลายเดือนก่อน +1

      Yeah, me too (I'm trying) ^^

    • @mesmeree1742
      @mesmeree1742 11 หลายเดือนก่อน

      @@byteslider take your time mate, I am all in for those updates even if I had to wait a long time :)

  • @BakinKoljac
    @BakinKoljac หลายเดือนก่อน

    ich liebe es wie deine notizen EXAKT so aussehen wie meine (inkl "kompass"-zeichnungen)

    • @byteslider
      @byteslider  หลายเดือนก่อน

      Man kanns ja schwerlich Notizen nennen, wenn es nicht nach dem gekritzel eines Verrückten aussieht :D

  • @monostripeexplosiveexplora2374
    @monostripeexplosiveexplora2374 5 วันที่ผ่านมา

    Hochwähli für korrekte VERKLICKER benutzung.

    • @byteslider
      @byteslider  5 วันที่ผ่านมา

      Hölle ja, meine Zuhausis

  • @tomweiland
    @tomweiland 7 หลายเดือนก่อน

    I tackled this with my own project a few months ago and also went with a physics-based approach. I eventually got it working relatively well, but there are still certain situations where the boat starts moving backwards or where the forces start growing and don't stop so the boat just keeps accelerating...which is not ideal :P
    I need to revisit the whole thing at some point and hopefully solve that 😅
    It seems like you did a good job avoiding that kind of unintentional behavior, good luck with the game!

    • @byteslider
      @byteslider  7 หลายเดือนก่อน

      Hey Tom, you wouldn't believe where I got the groundwork for the buoyancy from :D
      The acceleration problem I fixed by clamping the acceleration force to the ships max speed before applying it to the rigidbody.
      Also, most of the weird behaviour was fixed by giving the rigidbody a mass of around 100, so maybe this helps you, too :D

    • @tomweiland
      @tomweiland 7 หลายเดือนก่อน

      Haha well I'm glad my videos were of use :P
      I considered I might have to clamp some things-did you find a basis for that in how the real life physics work or was that something you added to stop crazy acceleration? Maybe I missed something when looking at the IRL sailing force calculations...
      If I remember correctly my boat has a mass of 500 so I don't think the issue is there 🤔

    • @byteslider
      @byteslider  7 หลายเดือนก่อน

      Yes, there is this thing called hull speed, which is considered to be the max speed a ship can go, but in reality it's the point of diminishing return, where you need to put a lot more energy in the forward momentum of the ship to get a little bit of a speed boost, so most designers stop there.
      I'm not quite sure anymore what is the cause of the hull speed, but I think it had something to do with the water that you're trying to displace in front of the ship. Then again, that's going to vary with different hull shapes and imperfections the craftsman caused. In the end I just researched the speed a similar ship to mine was able to reach and then calculated the acceleration per frame from that.
      So if a ship could go 15 knots and hour, I would calculate the speed in meters per second from that and multiply by delta time, to get the speed in meters per frame and clamp the overall acceleration before applying it to the rigidbody, just in case.
      tldr: research and math :D
      But there is a bit of wonky movement, when the ship is going fast and at the same time emerges from the water, then it starts to bounce around. I guess it's "physically accurate"; the only way I found to stop this is for the player to lower the velocity. Maybe this could be automated to avoid this behaviour

    • @tomweiland
      @tomweiland 7 หลายเดือนก่อน

      _"I'm not quite sure anymore what is the cause of the hull speed"_
      I'd imagine it has something to do with the drag force the water exerts on the hull as the boat moves. I _do_ apply drag, but perhaps it's not enough, or maybe drag is only a part of what determines the hull speed 🤔
      It could also be that when the boat gets some speed and "launches" off a wave crest, it leaves the water enough that the drag almost disappears and then 💩 just hits the fan :P
      Thanks for the detailed response, I definitely have to revisit this. I'll probably end up clamping something to be safe like you said even if there is a "real" way to get everything moving properly.

    • @TheVino3
      @TheVino3 3 หลายเดือนก่อน

      ​@tomweiland the hull speed, or wave speed, is caused by the bow wave the ship creates as it moves through the water. Once the wavelength is just over 1 boat length, it means that the boat is now trying to sail "uphill", up the backside of the crest caused by the front of the ship.

  • @j.o.t.u.n.n
    @j.o.t.u.n.n 11 หลายเดือนก่อน +1

    Sailing! I follow alot of dev's. the only one i get excited for is this one. SAILING!!!!!

    • @byteslider
      @byteslider  11 หลายเดือนก่อน

      SAILING!! YEAH! also your comment made my day already :D

  • @Daeniak57
    @Daeniak57 11 หลายเดือนก่อน

    Love it !

    • @byteslider
      @byteslider  11 หลายเดือนก่อน +1

      🥰

    • @Daeniak57
      @Daeniak57 11 หลายเดือนก่อน

      @@byteslider I know my comment is short, but I'm being serious I just don't know what to say, your work is insanely good !

    • @byteslider
      @byteslider  11 หลายเดือนก่อน +1

      Don't worry, I get you ^^

  • @tacioataliba2946
    @tacioataliba2946 11 หลายเดือนก่อน

    Amazing devlog, thonks for the efford.
    Do you have any degree in programing to do all of that? Would it be possible to do that without a degree?

    • @byteslider
      @byteslider  11 หลายเดือนก่อน +1

      You're wolcome :D I have a degree in art and animation and the rest is just years and years of experiences. So yeah, it absolutely possible, you "just" have to commit to it

  • @jono56667
    @jono56667 11 หลายเดือนก่อน

    This might change too much of the game you have so far but if you move the camera to make it isometric and add a tilt shift effect I think your miniature style will really come out and look even more awesome thn it already does

    • @byteslider
      @byteslider  11 หลายเดือนก่อน

      That sounds awesome for a photo mode. Or cinematic camera mode like in rdr2. But I would make it in a birds eye view fashion, instead of truly isometric ^^

  • @superrocketguy7742
    @superrocketguy7742 11 หลายเดือนก่อน +1

    10/10 Can't wait!

  • @ringo2715
    @ringo2715 11 หลายเดือนก่อน

    A very interesting idea. One thing I wonder is, if the sailing has these three settings will the game be essentially three different games? I would say having a balance of these three different sailing controls would be nice. It's your game though these are just my thoughts.

    • @gigabit6226
      @gigabit6226 11 หลายเดือนก่อน

      I was thinking the same thing. For me, having too many different settings, especially when so drastic, makes a game feel less "whole." It also takes away from the feeling of having a organically challenging experience in my opinion. I don't doubt he could still manage to get the game to feel right, though, just hope he at least considers combining these modes as you said.

    • @byteslider
      @byteslider  11 หลายเดือนก่อน +2

      I know what you're saying, on paper all these modes are very different and could make for a vastly different experiences. In reality though, it plays more like one gameplay mechanic with three different difficulty settings, easy, medium and hard. So you still need to sail, but the choice how much you want to focus on it is up to you ^^

    • @ringo2715
      @ringo2715 11 หลายเดือนก่อน

      @@byteslider Very cool, I think the simulated boat controls look great and I am excited to see more of the game's development.

  • @shakespeare5215
    @shakespeare5215 11 หลายเดือนก่อน

    This looks very cool! I don't know if I can help at all but if you have any more sailing questions I'd be happy to have a look, I am a Yachtmaster and worked in a sailing school for a few years though I never became a sailing instructor myself, I was a Powerboat instructor (RIB's, speedboats that sort of thing) just let me know how you'd like to communicate :)

    • @byteslider
      @byteslider  11 หลายเดือนก่อน +1

      Oh wow, that's great :D I still got some of the ships behavior to figure out, so I would just dm you on here in the future, if you don't mind. And then we can go from there

    • @shakespeare5215
      @shakespeare5215 11 หลายเดือนก่อน

      @@byteslider Yeah, sounds good 🙂

  • @Bishiba92
    @Bishiba92 26 วันที่ผ่านมา

    May I ask how far along you are with the finished product? Additionally, I have a couple of questions that you might have addressed in a previous video, which I may have forgotten about.
    First, will your ships include cannon combat? If so, have you considered how the AI will handle this? I've been thinking a lot about AI for normal sailing, and I believe I have a good approach, though I haven't started on it yet. However, I'm at a loss when it comes to combat AI due to my limited experience in AI programming.
    If you've put any thought into this, I'd love to hear your ideas. Perhaps we could discuss it further on Discord, or maybe you could make a video about it?

    • @byteslider
      @byteslider  25 วันที่ผ่านมา

      Currently the game is getting ported away from unity, cause of that whole runtime fee shot show. I'm currently working on a progress video for that.
      As for canons, combat and Ai: There aren't any concrete designs yet, for both gameplay or technical design. That's for after the port is done. At which point I'm more than happy to discuss that topic :D But it has to wait a while longer

    • @Bishiba92
      @Bishiba92 21 วันที่ผ่านมา

      @@byteslider understandable, I just spent the weekend setting up procedural delivery systems and how to interact with them. Still haven't implement the "complete delivery" feature, but shouldn't take more than an hour. But would be nice to discuss our games as the vision seems very similar

    • @Bishiba92
      @Bishiba92 2 วันที่ผ่านมา

      @@byteslider wanted to mention that the new Unity changes doesn’t apply to games made in Unity versions earlier than Unity 6, released -24.

    • @byteslider
      @byteslider  วันที่ผ่านมา

      @@Bishiba92 thanks for telling. Still porting tho

  • @koenmortier485
    @koenmortier485 หลายเดือนก่อน +1

    I think you should actually play Sailwind some more. That game does everything you are trying to do... and then some. Labelling it as "Lite, a more stylish arcade mode" when it comes to the sailing mechanics is just wrong. Sailwind is impressively accurate and a lot more complex than what I can make up from your project. Especially with all of the ship customisation and sail plans you can create as a player.
    Other than that, your project looks interesting!

    • @DrugConsumer
      @DrugConsumer หลายเดือนก่อน

      the sail wind graphics make you feel like you’re playing a sailing cartoon

    • @byteslider
      @byteslider  หลายเดือนก่อน

      Sail Wind as a more stylish arcade mode :D tbf with the video editing, this is a valid interpretation. But not done intentionally. As far as my game is concerned: I'm trying to make a fun mechanic first, although inspired by the real world. Sailing is part of the game, but it's not the whole game. There is a shared spotlight with other mechanics as well

  • @jackkorovev5217
    @jackkorovev5217 6 หลายเดือนก่อน

    Apart for Hydrofoil Generation, eSail and Sailaway, other sailing games/simulators sucks simply because devs don´t know the physics of sailing (and drifting, inertia, waves simulation braking vectors, ect). It is a complex matter and could be simpler and faster just asking some advice from a naval engineer.

    • @byteslider
      @byteslider  6 หลายเดือนก่อน +1

      Plus you have to make sure it's fun to play as well. At least in this game. So for that reason a couple of things like drifting or cargo weight aren't really part of the simulation. But I agree, you can go way deeper with a sailing sim

  • @michaeldowning7220
    @michaeldowning7220 11 หลายเดือนก่อน

    based

    • @byteslider
      @byteslider  11 หลายเดือนก่อน

      👍