Intro to EnTT (ECS) | Game Engine series

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ก.ย. 2024
  • Patreon ► / thecherno
    Instagram ► / thecherno
    EnTT ► github.com/sky...
    Twitter ► / thecherno
    Discord ► thecherno.com/...
    Series Playlist ► thecherno.com/...

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

  • @herrdingenz6295
    @herrdingenz6295 4 ปีที่แล้ว +160

    28:08 ENTT - really powerful
    28:09 ENTT - really fast
    28:12 ENTT - really good

    • @PflanzenChirurg
      @PflanzenChirurg 4 ปีที่แล้ว +5

      MEME

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

      That's what she said.

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

      28:06 ENTT - really simple
      28:08 ENTT - really powerful
      28:09 ENTT - really fast
      28:12 ENTT - really good

  • @magictrickdev
    @magictrickdev 4 ปีที่แล้ว +44

    "When I write code, I do it in American." - Yan, 2020

  • @Martinnn
    @Martinnn 4 ปีที่แล้ว +110

    Would love to see a standalone series on making an ECS!

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

      I too, would love to see a pure ECS from scratch.

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

      Me too, would be great

    • @МаксимКузьмин-м6з
      @МаксимКузьмин-м6з 4 ปีที่แล้ว

      yeyeyeye, but probably not a very deep dive cause people have done a entt thing and going too deep would probably be less eficient then using smth like entt

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

      @@МаксимКузьмин-м6з That being said, entt is actually really well documented by the author.. And he even has some blog poster about different decisions he made while making entt.. So wouldn't be too difficult for Cherno to recreate entt and show us how he did it.. also pretty sure the author would appreciate the coverage :)

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

      Well i took a look at the ECS source...it's probably more lines of code than the game engine it's self. So good look with that.

  • @AgentM124
    @AgentM124 4 ปีที่แล้ว +58

    Title: EnTT
    Means: Entity
    My brain: EnTEETEE

    • @supersquare
      @supersquare 4 ปีที่แล้ว +10

      big TT goth ecs

  • @beaucooper5602
    @beaucooper5602 4 ปีที่แล้ว +15

    I really like how you split this topic into theory on a whiteboard in the first video and then actually looking at and implementing it in practice in the 2nd video. Made it much easier to understand! Thanks! Keep up the great videos, I'm loving this series! :)

  • @VineetNairhero
    @VineetNairhero 4 ปีที่แล้ว +12

    Ahh finally after a looooong time....♥️

  • @goshisanniichi
    @goshisanniichi 4 ปีที่แล้ว +8

    I think a series about writing an ECS would be cool, but I'd also be okay with you just taking an episode or two to dive into EnTT and discuss how it works and possibly why it does things the way it does them.

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

    1. if someone made C2676 error, replace 0 with entt::null
    2. now .has for entt::registry no more support, replace with all_of or any_of

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

      thx a lot!

  • @241lolololol
    @241lolololol 4 ปีที่แล้ว

    Hey Cherno just wanted to really thank you for all the effort you put in your videos to help us become better developers. I've been working on a 3D physics engine for the past 2 months and this whole concept of ECS was foreign to me until I stumbled across your video and it opened up so many possibilities.
    Thanks man

  • @dhkatz_
    @dhkatz_ 4 ปีที่แล้ว +10

    I'm actually so glad you've decided to opt for a third-party library like EnTT. I think it really shows that' you're serious because you're not trying to tackle literally everything on your own. You would never get a performant engine if you tried to do it all yourself. Love the videos though, keep it up!

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

    Finally after waiting for almost a week for a new video. I was starting to get worried. Thank you sooo much.

  • @mdfalexis
    @mdfalexis 4 ปีที่แล้ว +5

    All I want is a keyboard pov camera.. god damn this man is flighing through the keys!
    As always, nice video keep the great work

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

      I'd like that as well, to pick up a few shortcuts he uses

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

    Nice! The engine is getting to a really nice place. Nice work Cherno!

  • @Shack263
    @Shack263 11 หลายเดือนก่อน +3

    I think pronouncing Entt as "en-two-T" is a good idea. It's common to replace repeated letters in acronyms with numbers, it sounds closer to the intent of whoever named Entt, and it's also not confused with entity!

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

    Yeah, good job! I'm really interested in, huge thank you!

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

    I cannot live without this when working with c++

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

    Man, your videos are extremely useful. Thanks a ton

  • @herrdingenz6295
    @herrdingenz6295 4 ปีที่แล้ว +9

    27:00 .. let's just hit F5 and see what happens :D

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

    Hey Cherno! Can you make a video talking a little more about the legal side of things? Like saving the license and how that is the right way to go about it and why. I am very ignorant to that whole side of coding, especially with noise algorithms lol

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

    Hey bro you are doing great work keep it up👍👍

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

    Very good one chernito

  • @МаксимКузьмин-м6з
    @МаксимКузьмин-м6з 4 ปีที่แล้ว +1

    Okay so now i gotta know where this man learned c++ so well. Cause 5 years of uni doesnt seem like the time i have rn - i need to make a game and this man just did a few things that i would do a lot worse.

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

      Its been 3 years, how far along have u been in c++ :)

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

    The video I didn't know I was waiting for. huh.

  • @GhostEmblem
    @GhostEmblem 4 ปีที่แล้ว +7

    Personally I think "N.T.T." is much more intuitive missed opportunity.

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

      Plus, it's only one typo away from TNT, which I view as a positive thing.

  • @rendoirs
    @rendoirs 4 ปีที่แล้ว +5

    On your next ECS video can you talk about entity hierarchy in Entt?

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

    Yayy, another video! XD

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

    you don't need to provide any constructors (default or not) if the class or struct can be aggregate initialized, you're just adding more code at that point.

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

    Hey dude, I would like if you upload more c++ but videos, they help me alot and are really interesting

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

    I use Cereal, and couldn't figure out how to hook up EnTT to Cereal for serialization either. I asked Skypjack but the answer he gave was a bit over my head

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

    thanks!

  • @PrinceGupta-jo8lo
    @PrinceGupta-jo8lo 4 ปีที่แล้ว +1

    A week is a long time.

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

    As I good understand the ECS, we should not put into components any pointers. Because if we put a pointer into component then we need to access the data from ram, but that is slower than accessing it from cache. Am I right?

  • @TiagoRodrigues-zp7ux
    @TiagoRodrigues-zp7ux 4 ปีที่แล้ว +1

    Hi Cherno. Just a quick suggestion.
    Use higher zoom in your browser and file system. It's a bit hard to read at 1080p.
    Cheers, mate.

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

    yesss ! ! !!!

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

    Writing your own (good) ECS would require also writing a memory management system. Allocators are fun to learn about though

  • @代码君
    @代码君 4 ปีที่แล้ว +1

    终于等到了

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

    Even visual studio struggles to load the code scrollbar thing on the right of the scree

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

    If your running into the error where "has" doesn't exist it has been renamed to "all_of"

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

      I read in the deprecated comment that you should use "contains" .. I think they changed even that. It is just so bad.

  • @winterSweet-k4m
    @winterSweet-k4m 4 ปีที่แล้ว +1

    will you provide an api (through jni/jna maybe?) for java developers to be able to use hazel?

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

      W4rd3nclyffe yeah JNI I also thought about that this would be awesome :)

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

    2:48 EnTT Intro

  • @whythosenames
    @whythosenames 4 ปีที่แล้ว +5

    Have you planned to do public non-patreon livestreams on this channel at some point? You could be more productive since you had more time and would have a chat where we could get involved

    • @TheCherno
      @TheCherno  4 ปีที่แล้ว +10

      Yes! Planning to do some soon...

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

      @@TheCherno Yayy :D

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

    19:30 I remember Cherno also did this previously in timestep class and I wonder if its same as a function object. Because a function object would be like a normal operator overloading where you write the return type and then operator() and then another () for parameters but that seems strange to me. Could anyone please explain?

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

      That is an user-defined conversion function. Quite exoteric!

  • @faridbencherif4055
    @faridbencherif4055 4 ปีที่แล้ว +7

    Hi Cherno, can you please upload more videos on C++ series, it has been a while :)

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

    why don't you use cmake?

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

    Could you make a video about different kinds of ECS?
    Like with event driven and such.

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

    You should do a reaction to the unreal engine next gen games unreal fest online 2020 video. It goes further in depth with the tech behind the unreal engine 5 tech demo.

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

    If we're talking about something that's used so much in the program as an entity system, doesn't our custom wrapper make this a lot slower though?

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

      Depending on how thin of a wrapper it is, there might even be zero overhead, but let's say there was, chances are the rest of the logic going on during the execution of a game (physics, rendering & lighting, etc) will completely overshadow any overhead the wrapper could have to the point of it being zero

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

    Is it something applicable for geospatial data ?
    3d point cloud, vectors (linestring, polygons,...), multi-band images/rasters, terrain models, ....

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

      Hello from France! An ECS is just a way to separate data from code, you're not constrained to use it in the context of game dev. As an example, ArcGIS runtime SDK uses EnTT internally for its rendering engine.
      That being said, and although I'm not by any means an expert in your field, I'd say that an efficient representation of spatial data will make use of spatial partitioning in one form or another which is a completely orthogonal topic, not covered by the EnTT lib. Maybe have a look at quadtree / octree / k-D-tree implementations, I'd guess that's what you're after?

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

    should something like Entt be in boost, or be nominated for inclusion into boost?

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

    is that operator at 19:30 called a 'user defined conversion function'?

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

      I call them casting operators.

  • @herrdingenz6295
    @herrdingenz6295 4 ปีที่แล้ว +9

    18:15 I am german so no worries about me going to sue you about using proper english ;)

  • @TriNity-GER
    @TriNity-GER 4 ปีที่แล้ว +2

    Cherno, please, please do a custom ECS!

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

    how the hell do I include this single header file in my project without getting 200 errors????

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

    Are you planning to make scripting language or use scripting language like lua? or use c++ hot reloading? I'm more intrigued how are you gonna add the component through what script language.

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

      What he told in prior videos, he's planning for C# scripting unless I'm mistaken.

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

      Ya i just see his latest video and he uses c# for scripting in physics. I am really looking forward how he implemented that and if he can add more.

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

    Ah, finally. :D

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

    hello there

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

    Maths is actually more correct . Also this is what functors are for...

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

    Am I first?

  • @Red-di7zb
    @Red-di7zb 4 ปีที่แล้ว +1

    Первый? Вроде третий

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

    Haha titie

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

    come on Yan .. isn't that kinda contradicting your words about the "event system" (you said: i first want to have this done before we move on) and now you are like: who cares about an ECS - i just want to do graphics?!
    you know you will need an ECS to handle scene data and render it ;)

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

      @M. de k. oh wow .. you know Cherno better than he knows himself ... you must be some kind of mind reader :P

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

      @@herrdingenz6295 😂😂😂

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

    A prime illustration of the ‘not invented here’ syndrome .... ‘i read docs for 10 minutes, could not understand it... wrote my own” ... sorry dude, that makes u a bad programmer in my book.. and a dangerous one at that, because you can write a lot of ‘damn that doc, lets write my own’ code.... ;-)