Adding/Removing Entities and Components UI | Game Engine series

Поділитися
Вставка
  • Опубліковано 30 тра 2024
  • Patreon ► / thecherno
    Instagram ► / thecherno
    Live Stream ► / thecherno
    Road Map ► hazelengine.com/roadmap
    Twitter ► / thecherno
    Discord ► thecherno.com/discord
    Series Playlist ► thecherno.com/engine
    #Hazel

КОМЕНТАРІ • 42

  • @helgi7888
    @helgi7888 Рік тому +21

    6:36 ImGui::BeginPopupContextWindow(0, 1 | ImGuiPopupFlags_NoOpenOverItems)

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

      You're a saint.

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

      thanks a lot man!😚

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

      Thanks a lot man, I have been digging through imgui for an overload of that function😂

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

      woooooow thanks so much you're a G

    • @user-yg5jj8fl4b
      @user-yg5jj8fl4b 9 місяців тому

      I love you !!!

  • @teksatan4699
    @teksatan4699 Рік тому +10

    I have thought of a possible bug in Renderer2D. You pass s_Data.QuadIndexCount to drawIndexed() in Renderer2d::flush(), but inside drawIndexed() you check if (indexcount == 0) and use IndexBuffer()->getCount() if it is 0. Meaning if you don't draw any quads during a frame(indexcount==0) drawIndexed will quarry the stored index buffer values and pull that index count(IndexBuffer()->getCount())(which is still valid in memory) as well as the previous stored vertex data as it's already been buffered to the gpu, causing the last stored "frame" to be re-rendered.

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

      that fixed my problem, just added a simple if check that returns if the index count == 0, thanks bro

  • @mohammadhoseingh4610
    @mohammadhoseingh4610 3 роки тому +23

    12:32 "oh we have an error that's good"...

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

    Keep it up my man. Amazing work!

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

    I am having an issue in deleting the last sprite component. It is not being deleted from the screen. Still debugging :[

    • @binitrogunath9850
      @binitrogunath9850 6 місяців тому

      Two years later I am seeing the same issue. Any ideas how to fix this?

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

    Awesome ❤

  • @user-py5ew1hl2x
    @user-py5ew1hl2x 3 роки тому +4

    i think that trick with templates doesn't work - you have default template definition inside sorce file, so it won't create its instances (aactually i tried do the same, and program crashed - static_assert was ignored during compilation). isn't it better to define default template and delcare specific templates in header, but define them in the source file?

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

    thanks!!

  • @VineetNairhero
    @VineetNairhero 3 роки тому +5

    Day 2 keep going more power to you😁

  • @gavincampbell1061
    @gavincampbell1061 3 роки тому +4

    Regarding deleting the cameras, should it not be that the editor itself has a camera that can never be deleted (otherwise how could you view anything)? I thought that that was the purpose of the scene camera. There should be a camera attached to the viewport that is not shown in the scene hierarchy, just like in Unity and UE.
    Edit: Never mind, he does cover that distinction between the editor camera and the runtime camera towards the end of the video (33:07)

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

    How come when I check out the repo there's no .sln files? also get a make error for vulkan library

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

      It's premake generated: Scripts/win-gen.bat

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

    Have you thought of implementing lua on your game engine?

    • @brandonkirincich8181
      @brandonkirincich8181 3 роки тому +5

      He was talking about it a while ago. Also, think he implemented C# in the dev version.

    • @2k7u
      @2k7u 3 роки тому

      @@brandonkirincich8181 Amazing!

    • @NefKamerzon
      @NefKamerzon 3 роки тому +3

      I think the current plan is C# as scripting, and C++ for native scripting

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

    have you thought of implementing another programming language in your game engine

    • @keljrackdevs5295
      @keljrackdevs5295 3 роки тому +3

      He said he is going to have c# scripting at some point

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

    How much the new changes in C++ like going more into functional way, it's good or bad for writing engines or computer games?

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

    Need an undo for that delete!

  • @CreativeProgrammingProjects
    @CreativeProgrammingProjects 3 роки тому +7

    What were the reasons to choose ImGui for this "editor" project, instead of Qt for example? I'm curious mainly about how the Ui is going to scale as the project is getting bigger. For the in game ui i see the advantages of ImGui, but for the editor, i would have chosen something else (cough qt), or the reason is just because you wanted to get more practice with the ImGui library?

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

      Qt is komplex and would require own Tuturials. His goal is the educational value, but nothing stops the people to use Qt instead. I like his aprouch, if you do it right you can build a nice full featured editor with Dear ImGui.

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

      ​@@Larioteo Qt is more complex, but not a lot more. Anyway my concern is related to the code complexity (and readability) as the project grows.

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

      I think unity engine use imgui

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

      @@zooidiotgaming5784 Not familiar with Unity and it's been years since i last written C# code (so i might be wrong), but at a quick glance at unity cs code the ImGui references from the editor code seem to be related to the in game gui rendering.

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

    Well , I cloned your project but it's telling that it requires at least opengl 4.5 but in my machine I have opengl 4.4. Any idea how to upgrade my opengl version??

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

      If you are using windows you can do a driver update

  • @JB-rh1ir
    @JB-rh1ir 3 роки тому

    HI ! Does anybody knows what happened to the Offset Engine ??I mean does it have any incarnation after Intel killed it ?

  • @ugochanneltv5600
    @ugochanneltv5600 3 роки тому +3

    Can I cry in hello world?

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

    SIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII

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

    Cherno pls make a C++ Video on File IO

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

    The cerno project....
    (The cerno)
    {No one notice yet?}

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

    he should add a way to "restart" the application, where instead of having to close it and run it again from the beginning, it will end the current application but open another one and initialize it and everything so we don't have to open and close the application to start from the beginning every time