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
6:36 ImGui::BeginPopupContextWindow(0, 1 | ImGuiPopupFlags_NoOpenOverItems)
You're a saint.
thanks a lot man!😚
Thanks a lot man, I have been digging through imgui for an overload of that function😂
woooooow thanks so much you're a G
I love you !!!
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.
that fixed my problem, just added a simple if check that returns if the index count == 0, thanks bro
12:32 "oh we have an error that's good"...
Keep it up my man. Amazing work!
I am having an issue in deleting the last sprite component. It is not being deleted from the screen. Still debugging :[
Two years later I am seeing the same issue. Any ideas how to fix this?
Awesome ❤
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?
thanks!!
Day 2 keep going more power to you😁
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)
How come when I check out the repo there's no .sln files? also get a make error for vulkan library
It's premake generated: Scripts/win-gen.bat
Have you thought of implementing lua on your game engine?
He was talking about it a while ago. Also, think he implemented C# in the dev version.
@@brandonkirincich8181 Amazing!
I think the current plan is C# as scripting, and C++ for native scripting
have you thought of implementing another programming language in your game engine
He said he is going to have c# scripting at some point
How much the new changes in C++ like going more into functional way, it's good or bad for writing engines or computer games?
Need an undo for that delete!
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?
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.
@@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.
I think unity engine use imgui
@@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.
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??
If you are using windows you can do a driver update
HI ! Does anybody knows what happened to the Offset Engine ??I mean does it have any incarnation after Intel killed it ?
Can I cry in hello world?
SIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
Cherno pls make a C++ Video on File IO
C++17 Filesystem. learn from that !
The cerno project....
(The cerno)
{No one notice yet?}
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