Half year progress: C++ with SFML

แชร์
ฝัง

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

  • @belov_dev
    @belov_dev 3 ปีที่แล้ว +103

    Oh... my... god... You destroyed me with your last project. This is really fantastic... I've want to repeat most of these projects. Wow you are really cool !

    • @ddln785
      @ddln785 3 ปีที่แล้ว +1

      И как? Удалось что-то того же уровня? Просто интересуюсь, никаких претензий

    • @arsIsv
      @arsIsv 2 ปีที่แล้ว

      @@ddln785 ну, с лабиринтом все очень просто

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

      @@arsIsv Класс, все отвечают спустя год (да, я тоже)

  • @anon_y_mousse
    @anon_y_mousse 2 ปีที่แล้ว +5

    Is it just me or does anyone else find sorting algorithm visualizations to be beautiful? Especially bubble sort, even though it's the slowest, I think its visualization was the most beautiful.

  • @dandymcgee
    @dandymcgee 4 ปีที่แล้ว +78

    That traffic sim is so fking cool! Nice work dude. Sub'd.

    • @lutrarutra4439
      @lutrarutra4439  4 ปีที่แล้ว

      Thank you! :)

    • @battosaijenkins946
      @battosaijenkins946 3 ปีที่แล้ว +1

      @@lutrarutra4439 Just curious, where are you at now after about 2 years since??

  • @darkcisum3384
    @darkcisum3384 4 ปีที่แล้ว +43

    That's really great work! Some of these things are still on my list to write one day as well...

  • @daggawagga
    @daggawagga 4 ปีที่แล้ว +18

    This progress is inspiring. The traffic sim looks very polished! Will definitely use it as a reference when I try to create another kind of simulator

    • @lutrarutra4439
      @lutrarutra4439  4 ปีที่แล้ว +2

      Thanks, I am so happy that my project inspired you :) I am currently writing new similar traffic simulator but 3d version. It takes a lot of time because I am new to 3d graphics programmimg.

    • @Rakesh-yu1pb
      @Rakesh-yu1pb 4 ปีที่แล้ว +3

      @@lutrarutra4439 Hey dude this is all super impressive. I'd like to make this much progress in the same span of time aswell. My question to you is how did you figure out how to do everything?? For example I get stuck just researching how to do one thing and it will take me hours to find the solution. Do you often have the same problem? How in the world did you progress?

    • @lutrarutra4439
      @lutrarutra4439  4 ปีที่แล้ว +2

      @@Rakesh-yu1pb Well, I already had some programming experience in other languages, so it wasnt from 0. Smfl has a great documentation and it was pretty easy to learn it. Start from something small and progress from there with small steps. That way you wont get stuck on huge problems that will take months to learn.

    • @Rakesh-yu1pb
      @Rakesh-yu1pb 4 ปีที่แล้ว +2

      @@lutrarutra4439 That's all I need, thanks for uploading and replying.

  • @paullipczyk5216
    @paullipczyk5216 2 ปีที่แล้ว +5

    I didn't even imagine doing so much amazing things in such a short time period

  • @guilhermecampos8313
    @guilhermecampos8313 ปีที่แล้ว +1

    This is the kind you video that keeps me motivated at studying C++

  • @abrorabyyu6221
    @abrorabyyu6221 2 ปีที่แล้ว +1

    double pendulum is so fascinating

  • @jakecomay9138
    @jakecomay9138 2 ปีที่แล้ว +1

    Casual Euler's identity in the background

  • @fabolazao
    @fabolazao 3 ปีที่แล้ว +3

    Oh my, the Traffic Sim is so cool! Now I also want to do something like this!!

    • @lutrarutra4439
      @lutrarutra4439  3 ปีที่แล้ว

      Thanks :) Traffic sim is really simpler than you think it is if you limit yourself to rectangular grid system and 2d world. Go for it!

  • @RA-eg8tw
    @RA-eg8tw 4 ปีที่แล้ว +7

    The 2D traffic simulator looks amazing! I'm definitely going to have a go at it. Wish me luck

    • @lutrarutra4439
      @lutrarutra4439  4 ปีที่แล้ว

      Good luck :)

    • @mychemicalmods5412
      @mychemicalmods5412 2 ปีที่แล้ว +1

      how did it go?

    • @RA-eg8tw
      @RA-eg8tw ปีที่แล้ว +2

      @@mychemicalmods5412 got depressed, never started and gave up on game dev :(
      I recently got back into game dev

  • @ogprograma
    @ogprograma 2 ปีที่แล้ว +1

    Your projects are so cool man, keep up with the great job. This last one is awesome.

  • @afelar3818
    @afelar3818 3 ปีที่แล้ว +7

    I am beggining now with SFML (started 2 days ago and already made a space invaders look a like) and was like, damm nice projects, not that hard but cool stuff. And then you hit me with that traffic sim wtf. Very cool programm. Congrats

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

    One video uploaded 4 years ago. But it was great and still😊

  • @yashchoudhari1613
    @yashchoudhari1613 3 ปีที่แล้ว +2

    Traffic simulator is so cool, great work

  • @shivankchopra8552
    @shivankchopra8552 2 ปีที่แล้ว +1

    Amazing work! Love the creativity in each of the projects!

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

    2D Traffic Simulator - WOW :-)

  • @DevinAvery-nt2yb
    @DevinAvery-nt2yb 5 หลายเดือนก่อน

    Traffic sim was so impressive

  • @JohnSmith-es2fh
    @JohnSmith-es2fh 3 ปีที่แล้ว +12

    your custom map builder is so cool, id wish to find some tutorials about coding something like this

    • @thepurplepanda4
      @thepurplepanda4 3 ปีที่แล้ว +1

      Honestly, most of the best work you can do is gotten from finding a paper, or looking on wiki, or reading books about the subject.

    • @filiplizak4870
      @filiplizak4870 3 ปีที่แล้ว

      @@thepurplepanda4 or reading other peoples code who made one

  • @chrochetfan7274
    @chrochetfan7274 2 ปีที่แล้ว +1

    That’s super cool!

  • @KAUSHALDOKANIA
    @KAUSHALDOKANIA 3 ปีที่แล้ว +2

    Amazing

  • @nalayak862
    @nalayak862 ปีที่แล้ว

    2:59 2D traffic simulator - custom map builder

  • @phantuananh2163
    @phantuananh2163 3 ปีที่แล้ว +2

    Great work mate

  • @marinm3869
    @marinm3869 3 ปีที่แล้ว +1

    wow I really enjoyed this video

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

    very cool in algorithms

  • @8hng
    @8hng 2 ปีที่แล้ว

    Simply fantastic... JOB very well DONE...

  • @saeidsaati4021
    @saeidsaati4021 4 ปีที่แล้ว +2

    Nice, thank you so much for sharing these :)

  • @lookcsify
    @lookcsify 3 ปีที่แล้ว +2

    Is it only video on TH-cam that doesn’t have any dislike?

  • @s.a.h.i1261
    @s.a.h.i1261 4 ปีที่แล้ว +3

    It's very interesting and cool )

  • @isbeb507
    @isbeb507 3 ปีที่แล้ว +1

    very cool!

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

    keep going you are talented

  • @seb_SGH
    @seb_SGH 3 ปีที่แล้ว

    looks litt!

  • @KristOFF-T
    @KristOFF-T ปีที่แล้ว

    0:10 I also watch blackpenredpen!

  • @rafa_br34
    @rafa_br34 3 ปีที่แล้ว

    awesome bro, keep that good work

  • @sherlock_channel
    @sherlock_channel ปีที่แล้ว

    Good work!

  • @rukna3775
    @rukna3775 3 ปีที่แล้ว

    i think all the projects apart from traffic sim is inspired from the coding train

  • @yadav-r
    @yadav-r 3 ปีที่แล้ว

    awesome

  • @justasydefix6251
    @justasydefix6251 4 ปีที่แล้ว +1

    what about showing more, your video is *visually* satisfying :)

    • @lutrarutra4439
      @lutrarutra4439  4 ปีที่แล้ว

      Thanks :) What do you want to see more?

    • @justasydefix6251
      @justasydefix6251 4 ปีที่แล้ว

      @@lutrarutra4439 I like these type of Video, not a complex game yet more useful!
      something like
      wire world (just like the traffic simulator But simpler),
      water physics ( like water stream But 2D)
      stacked graph bars which shows the animation of increasing and decreasing over time/unit
      I think thats all in my mind for now, i will try to suggest more later.
      between i couldnt share your Channel more But i playlist your Video 😅.

  • @tanura5830
    @tanura5830 23 วันที่ผ่านมา

    wow

  • @muhammedyasinhanyasar539
    @muhammedyasinhanyasar539 4 ปีที่แล้ว +2

    I saw these projects from coding train. Exept last one and first one. But I think you are good at this. I think you wrote algorithms, Coding train gives you an idea?

    • @lutrarutra4439
      @lutrarutra4439  4 ปีที่แล้ว +1

      Yes! Some of the ideas are from coding train :) The last project was for University C++ course.

  • @HussainAhmad-kh3eo
    @HussainAhmad-kh3eo 3 ปีที่แล้ว

    Where are u upload some more ☺️

  • @skanslovakia553
    @skanslovakia553 4 ปีที่แล้ว +2

    This so impressive, You learned sfml all by yourself (with documentation and tutorials)?

    • @justasydefix6251
      @justasydefix6251 4 ปีที่แล้ว +1

      SFML is easy to learn, because SFML team themselves provide good materials

    • @lutrarutra4439
      @lutrarutra4439  4 ปีที่แล้ว

      Pretty much by myself yeah! :) The documentation is great and also they have a helpful discord community.

    • @dhivakaran2753
      @dhivakaran2753 4 ปีที่แล้ว

      @@lutrarutra4439 hey may I join the discord community

    • @dhivakaran2753
      @dhivakaran2753 4 ปีที่แล้ว

      @@lutrarutra4439 hey may i join the discord community

    • @dhivakaran2753
      @dhivakaran2753 4 ปีที่แล้ว

      @@lutrarutra4439 hey may i join the discord community

  • @nayanagarwal8432
    @nayanagarwal8432 4 ปีที่แล้ว +2

    Great Work!! . Do you watch coding train videos?

    • @lutrarutra4439
      @lutrarutra4439  4 ปีที่แล้ว +1

      Yes! Some of the ideas are from there :)

  • @mohammedbenkaddour-x2y
    @mohammedbenkaddour-x2y 5 หลายเดือนก่อน +1

    what the resources you learn from them :)

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

      For C++, I watched Cherno on TH-cam. He has amazing in depth C++ series. For SFML I used their documentation as well as their public discord to ask questions.

    • @mohammedbenkaddour-x2y
      @mohammedbenkaddour-x2y 5 หลายเดือนก่อน

      ​@@lutrarutra4439
      Have you used any TH-cam videos? They are very few and because of that I will move to QT ,Do you advise me to do that?

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

      @@mohammedbenkaddour-x2y Yes, Cherno's C++ is really good. th-cam.com/play/PLlrATfBNZ98dudnM48yfGUldqGD0S4FFb.html&si=jnsNZyjKIjeoWn_a

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

    hello may you reply i am facing some issue in traffic simultion program

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

      what's the problem you are facing? :)

  • @absentchronicler9063
    @absentchronicler9063 2 ปีที่แล้ว

    very inspiring, im trying to pickup sfml by making my own sorting algorithm showcase program as my first program, got any tips or tutorials you could share?

    • @lutrarutra4439
      @lutrarutra4439  2 ปีที่แล้ว

      You can find the pseudo code for all of the algorithms in wikipedia and it's easy to write in it Python. The hardest part of this kind of project is to visualise the updates (moving the bars), especially for recursive algoritms. Some of the recursive sorting algorithms can be turned into iterative algoritmhs though which are easier to visualise.

    • @absentchronicler9063
      @absentchronicler9063 2 ปีที่แล้ว

      @@lutrarutra4439 aye, thanks for the reply. i have already finished that project and implemented two sorting algorithms (bubble and quicksort). it runs good enough for me and it was a great way to get into SFML and making my own classes and stuff
      i'm thinking about making a tic-tac-toe game with a twist next

  • @PM-gy1yy
    @PM-gy1yy ปีที่แล้ว

    and here i cant even get it setuip

  • @milkybrain7809
    @milkybrain7809 2 ปีที่แล้ว

    Could anyone explain to me the traveling salesman thing?

    • @lutrarutra4439
      @lutrarutra4439  2 ปีที่แล้ว

      You can imagine the nodes (dots) as cities. A traveling salesman needs to visit every city but he also wants to save fuel and therefore needs to plan his route to be as short as possible. Finding the shortest possible path is the "Traveling salesman problem". If you increase the number of nodes (cities), finding the shortest path becomes very heavy problem. :)

    • @milkybrain7809
      @milkybrain7809 2 ปีที่แล้ว

      @@lutrarutra4439 Yes but isn't it possible to just instantly show the shortest route? Or does it program have to do that? And, would you be able to determine the shortest route visually? I'm just wonder.. hehe. thanks

    • @milkybrain7809
      @milkybrain7809 2 ปีที่แล้ว

      @@lutrarutra4439 Yes but isn't it possible to just instantly show the shortest route? Or does it program have to do that? And, would you be able to determine the shortest route visually? I'm just wonder.. hehe. thanks

    • @milkybrain7809
      @milkybrain7809 2 ปีที่แล้ว

      @@lutrarutra4439 Yes but isn't it possible to just instantly show the shortest route? Or does it program have to do that? And, would you be able to determine the shortest route visually? I'm just wonder.. hehe. thanks

    • @milkybrain7809
      @milkybrain7809 2 ปีที่แล้ว

      Like visually, without using the program. Just by looking at it yourself. I'm just wondering if u could identify that as well

  • @АрменГашишев
    @АрменГашишев 3 ปีที่แล้ว

    Hi!. How did you make GUI of traffic Simulator? Is it only SFML/C++?

    • @lutrarutra4439
      @lutrarutra4439  3 ปีที่แล้ว +1

      It's ImGui C library, pretty cool!

  • @prog4925
    @prog4925 ปีที่แล้ว

    Just someone who is struggling intergating deariampui in my codebase, where should i start I have no pervious knowledge of integration of other lib in my codebase, what do you suggest me? I'm intermediate in c++ sfml by source integration is ok with me but deariamgui nope I think I need more exp to do handle that, any tutorials/blogs you recommend me to get started?

    • @lutrarutra4439
      @lutrarutra4439  ปีที่แล้ว

      Hi, I have a template project for this. I am not sure how up to date it is but you can try it: github.com/lutrarutra/SFML-Project-Template

  • @AlexandrBorschchev
    @AlexandrBorschchev 2 ปีที่แล้ว

    did you learn sfml by yourself, e.g. using books, documentations, tutorials?

    • @lutrarutra4439
      @lutrarutra4439  2 ปีที่แล้ว

      Learned SFML mostly by reading documentation, but also couple videos to get going. SFML discord was also helpful!

    • @sauravsingh471
      @sauravsingh471 ปีที่แล้ว

      @@lutrarutra4439 i wish to get started with sfml ? Any tips from where to start and how to start

  • @Finti-g
    @Finti-g 3 ปีที่แล้ว

    Turning left on roundabout?

    • @lutrarutra4439
      @lutrarutra4439  3 ปีที่แล้ว

      Yep, you can flip all roads and pretend you are in the UK :)

  • @rajatmond
    @rajatmond 3 ปีที่แล้ว

    How did you do the double pendulum? Does it have a real time integrator? I've been trying to do just that for a long time and don't really know how to manage the buffers. Could you make a tut on that please?

    • @lutrarutra4439
      @lutrarutra4439  3 ปีที่แล้ว

      Hi, it's been a long time so I can't remember specific steps but you need to derive angluar velocity from forces. Maybe this page can help: www.myphysicslab.com/pendulum/double-pendulum-en.html

    • @rajatmond
      @rajatmond 3 ปีที่แล้ว

      @@lutrarutra4439 I know the math, I've been doing physics and maths for such a long time. What I can't do is the programming.
      Specifically how to code the frame buffers and how to update the buffers in real time. I could calculate the trajectories and store it in a file(what I am used to doing a lot) and then animate it, but I want to code it real-time, as the calculation is going on. Any idea on how to do that?

    • @luigikart222
      @luigikart222 3 ปีที่แล้ว

      @@rajatmond Hey, sorry if its kind of late. I don't know if this could achieve the effect you're looking for, but it may be useful.
      Between each frame, most graphic libraries that i know of calculate and then store a deltaTime variable. You could use it to scale the forces accordingly to the time span between each two frames. That way the calculations show accurate results independently of framerate.

  • @shanewalsh1573
    @shanewalsh1573 3 ปีที่แล้ว

    I see many ideas are from coding train. Do you think its a good idea to watch how daniel codes something and do the same but on c++ to learn coding?

    • @shanewalsh1573
      @shanewalsh1573 3 ปีที่แล้ว

      I mean i want to do the same. I think its a really good idea

    • @lutrarutra4439
      @lutrarutra4439  3 ปีที่แล้ว

      Yes, they are! I personally prefer to learn coding with soing something visual and I think that it's really an interesting way to learn about different algorithms.

    • @shanewalsh1573
      @shanewalsh1573 3 ปีที่แล้ว

      @@lutrarutra4439 k thanks

  • @puppergump4117
    @puppergump4117 2 ปีที่แล้ว

    You think that's something? I make a tic tac toe game, beat that.

  • @sugiono2801
    @sugiono2801 3 ปีที่แล้ว +1

    wtf

  • @_DarkKnight2301_
    @_DarkKnight2301_ 3 ปีที่แล้ว +1

    Most written in one evening. Weird flex, but okay

    • @lutrarutra4439
      @lutrarutra4439  3 ปีที่แล้ว +1

      Haha, not flexing xd You can see that the code is poorly commented and pretty ugly and it's fun challenge to see what you can do in a night. These programs are only like 100-200 lines too.

    • @_DarkKnight2301_
      @_DarkKnight2301_ 3 ปีที่แล้ว

      @@lutrarutra4439 It is amazing what can be accomplished in what feels like a small program. 100-200 lines feels like to me something couldn't be super complex, yet it can/ does/ and is. I'm currently in an intro to AI class and we recently covered A*. It's fascinating how it works in what feels like not many lines.
      The thing I'm excited to do is make a chess game with an AI that can hopefully beat the average player. It'll take time to get it going well, but it will be a fun challenge.
      Keep up the good work. Once I understand SFML a bit better, I'll have to try some of these or similar ones. A physics simulator is always cool to see.

    • @lutrarutra4439
      @lutrarutra4439  3 ปีที่แล้ว +1

      @@_DarkKnight2301_ thanks :) I have been getting into chess lately and have thinked about chess bots too. I recon that easiest way to go here would be teach neural network all legal moves and then just let it train against itself. I think, it shouldn't be too hard to beat an average player. Good luck!

    • @_DarkKnight2301_
      @_DarkKnight2301_ 3 ปีที่แล้ว

      @@lutrarutra4439 @lutrarutra Thanks! A neural network was one I was thinking about attempting. However, I'm going to try for miniMax with alpha beta pruning along with some other tricks to speed it up. Though once I get the base game down, I could always try a neural network another time when I understand the concept a bit better. Good luck in your future coding adventures. May the code you write do what you want it to do on the first try lol

  • @BananoBrett
    @BananoBrett 3 ปีที่แล้ว

    Omg. What are of science is this? Computer science? Game development????

    • @lutrarutra4439
      @lutrarutra4439  3 ปีที่แล้ว

      It's a bit of both; writing algorithms and visualising them is CS, but it's part of game development too!