Half year progress: C++ with SFML

Поділитися
Вставка
  • Опубліковано 21 гру 2019
  • Visualisation of my progress learning C++ with SFML. All projects (except for Traffic Simulator) were one-evening projects.
    - Black & White 0:05 github.com/lutrarutra/sfml_Bl...
    - Sorting Algorithms 0:29 github.com/lutrarutra/sfml_so...
    - Path Finder 1:18 github.com/lutrarutra/sfml_pa...
    - Double Pendulum 1:49 github.com/lutrarutra/sfml_pe...
    - Travelling Salesman 2:10 github.com/lutrarutra/sfml_sa...
    - Raycasting 2:38 github.com/lutrarutra/sfml_ra...
    - Traffic Simulator 2:58 github.com/lutrarutra/trafsim
    My other projects:
    Fix the Flow, informative tower defense game:
    Apple: apps.apple.com/us/app/fix-the...
    Android: play.google.com/store/apps/de...
    Speedgame for Android: play.google.com/store/apps/de...
    github.com/lutrarutra
    Libraries used:
    SFML: github.com/SFML/SFML
    ImGui: github.com/ocornut/imgui
    SFML bindigs for ImGui: github.com/eliasdaler/imgui-sfml
    Music:
    [No Copyright Music] Chill Lo-fi Hip-Hop Beats FREE (yes Free) Lofi Hip Hop Chillhop Music Mix
    • Video
  • Наука та технологія

КОМЕНТАРІ • 110

  • @belov_dev
    @belov_dev 3 роки тому +100

    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 2 роки тому

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

    • @arsunchik
      @arsunchik Рік тому

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

  • @dandymcgee
    @dandymcgee 4 роки тому +70

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

  • @darkcisum3384
    @darkcisum3384 4 роки тому +41

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

  • @shivankchopra8552
    @shivankchopra8552 2 роки тому +1

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

  • @felipepalermo6719
    @felipepalermo6719 2 роки тому +1

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

  • @anon_y_mousse
    @anon_y_mousse Рік тому +3

    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.

  • @paullipczyk5216
    @paullipczyk5216 2 роки тому +5

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

  • @8hng
    @8hng 2 роки тому

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

  • @daggawagga
    @daggawagga 4 роки тому +17

    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.

  • @yashchoudhari1613
    @yashchoudhari1613 3 роки тому +2

    Traffic simulator is so cool, great work

  • @saeidsaati4021
    @saeidsaati4021 3 роки тому +2

    Nice, thank you so much for sharing these :)

  • @tBane95
    @tBane95 11 днів тому +1

    2D Traffic Simulator - WOW :-)

  • @phantuananh2163
    @phantuananh2163 3 роки тому +2

    Great work mate

  • @afelar3818
    @afelar3818 2 роки тому +8

    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

    • @sauravsingh471
      @sauravsingh471 Рік тому

      Hey checking on you after 1 year ....how is your work going ?

  • @rafa_br34
    @rafa_br34 2 роки тому

    awesome bro, keep that good work

  • @marinm3869
    @marinm3869 3 роки тому +1

    wow I really enjoyed this video

  • @menachemlevi
    @menachemlevi 3 місяці тому

    keep going you are talented

  • @abrorabyyu6221
    @abrorabyyu6221 2 роки тому

    double pendulum is so fascinating

  • @guilhermecampos8313
    @guilhermecampos8313 10 місяців тому +1

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

  • @RA-eg8tw
    @RA-eg8tw 3 роки тому +7

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

    • @lutrarutra4439
      @lutrarutra4439  3 роки тому

      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

  • @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!

  • @chrochetfan7274
    @chrochetfan7274 Рік тому +1

    That’s super cool!

  • @KAUSHALDOKANIA
    @KAUSHALDOKANIA 3 роки тому +2

    Amazing

  • @sherlock_channel
    @sherlock_channel 11 місяців тому

    Good work!

  • @isbeb507
    @isbeb507 3 роки тому +1

    very cool!

  • @jakecomay9138
    @jakecomay9138 Рік тому +1

    Casual Euler's identity in the background

  • @anvarsaidov_sh
    @anvarsaidov_sh 4 місяці тому +1

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

  • @seb_SGH
    @seb_SGH 2 роки тому

    looks litt!

  • @s.a.h.i1261
    @s.a.h.i1261 4 роки тому +3

    It's very interesting and cool )

  • @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 2 роки тому

      @@thepurplepanda4 or reading other peoples code who made one

  • @lookcsify
    @lookcsify 3 роки тому +2

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

  • @yadav-r
    @yadav-r 2 роки тому

    awesome

  • @zeeshanqaswar1710
    @zeeshanqaswar1710 9 місяців тому

    learning material

  • @nalayak862
    @nalayak862 Рік тому

    2:59 2D traffic simulator - custom map builder

  • @muhammedyasinhanyasar539
    @muhammedyasinhanyasar539 3 роки тому +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  3 роки тому +1

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

  • @kristoff_t2013
    @kristoff_t2013 Рік тому

    0:10 I also watch blackpenredpen!

  • @HussainAhmad-kh3eo
    @HussainAhmad-kh3eo 2 роки тому

    Where are u upload some more ☺️

  • @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

  • @skanslovakia553
    @skanslovakia553 3 роки тому +2

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

    • @justasydefix6251
      @justasydefix6251 3 роки тому +1

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

    • @lutrarutra4439
      @lutrarutra4439  3 роки тому

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

    • @dhivakaran2753
      @dhivakaran2753 3 роки тому

      @@lutrarutra4439 hey may I join the discord community

    • @dhivakaran2753
      @dhivakaran2753 3 роки тому

      @@lutrarutra4439 hey may i join the discord community

    • @dhivakaran2753
      @dhivakaran2753 3 роки тому

      @@lutrarutra4439 hey may i join the discord community

  • @justasydefix6251
    @justasydefix6251 3 роки тому +1

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

    • @lutrarutra4439
      @lutrarutra4439  3 роки тому

      Thanks :) What do you want to see more?

    • @justasydefix6251
      @justasydefix6251 3 роки тому

      @@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 😅.

  • @prog4925
    @prog4925 8 місяців тому

    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  8 місяців тому

      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

  • @nayanagarwal8432
    @nayanagarwal8432 4 роки тому +2

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

    • @lutrarutra4439
      @lutrarutra4439  4 роки тому +1

      Yes! Some of the ideas are from there :)

  • @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?

    • @luigikart2225
      @luigikart2225 2 роки тому

      @@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.

  • @user-cj2wu2do5w
    @user-cj2wu2do5w 2 роки тому

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

  • @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

  • @rukna3775
    @rukna3775 3 роки тому

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

  • @lx4302
    @lx4302 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

  • @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

  • @TheDumbyy
    @TheDumbyy 3 роки тому

    Turning left on roundabout?

    • @lutrarutra4439
      @lutrarutra4439  3 роки тому

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

  • @PM-gy1yy
    @PM-gy1yy Рік тому

    and here i cant even get it setuip

  • @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

  • @InformanteTV
    @InformanteTV 2 роки тому

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

    • @lutrarutra4439
      @lutrarutra4439  2 роки тому

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

  • @fabmilhoty
    @fabmilhoty 2 роки тому

    i know better way to do salesman