TTP: Godot 4 got occlusion culling!! Let's try it out..

Поділитися
Вставка
  • Опубліковано 9 січ 2025

КОМЕНТАРІ • 17

  • @aknakos5448
    @aknakos5448  3 роки тому +8

    There is a proposal to include CSG nodes in the occlusion baking!! github.com/godotengine/godot-proposals/issues/2910

  • @godev1563
    @godev1563 3 роки тому +22

    Damn , was really hoping it would work on CSG objects too. Just recently found out baked lightmapping also doesnt work with CSG objects. Most people wont mind/care as they both work with meshes generated with external modeling applications but the main feature of the project im working on is that it is made(so far) entirely within the godot editor(model's, materials,sound effects etc) which is possible and great that i can do that but if i want to optimise the performance(for really low end devices) then im outta luck. Hopefully that changes in the future like you said.

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

      Yeah, I was very hopeful at first that csg would work, but alas.. hopefully some PR in the future adds the functionality :) one strange thing is that a regular mesh does actually occlude a csg (i should have shown this..too late now), but not the other way around (which was the example i showed in the video)

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

      @@aknakos5448 hmm interesting , yeah that wouldve been a good mention but im just happy you went into CSG at all. Cant help but think what the limitation is though , to both baked lightmapping(even CSG Meshes dont work,even though they take an external mesh resource) and occlusion culling with CSG. Anyway thanks for the vid/insight.

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

      On a separate note, I don’t know if it helps in your workflow, but there will be a way to export csg into gltf from within godot, and then I’d imagine you could just reimport it as regular meshes (gamefromscratch.com/export-from-godot-4-using-gltf-exporter/), but if you create csg on runtime, then I don’t know if this exporter works.. I’d need to try it out to know, but.. maybe? :)

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

      @@aknakos5448 Yeah you can already export csg to obj in 3.2 via an addon which i have thought about doing already but one concern is the file size will be driven up unnecessarily which is a problem if exporting to html. I use gotm.io and currently the .pck for my game is 66kb(although it is only a basic level + vehicle at the moment,let me know if youd like to try it) which allows me to upload and test things at a very quick pace. I know lightmaps generate extra files so im not so worried about not having baked lightmaps, although it wouldve been nice to be able to test(file size vs performance benefits etc).

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

      gotm.io is great! Best of luck for your game dev journey!! Whenever you have something interesting, let me know what kind of feedback you wish and I’m happy to try it out :)

  • @BrannoDev
    @BrannoDev 2 роки тому +2

    Thanks for the tutorial. I've been trying this out in alpha 4 i feel like i'm going to have to upgrade my projects to godot 4.0 at some point. The amount of frames I save is incredible.
    If all rays hit i get a 17% frame reduction when i stare into a wall with nothing behind it. Definitely worth taking the hit on your max potential framerate to reducing the 1500-200 frame range i get in my current project.

  • @lukifah4900
    @lukifah4900 2 роки тому +2

    if you have a door that opens this just breaks lol

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

    can please give me the download link for godot 4

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

      I suggest you using this one: hugo.pro/projects/godot-builds/

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

    The gadot 4 has released or is still in beta?

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

      It hasn’t been released yet. Maybe you can consider it pre-alpha?

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

      @@aknakos5448 okay

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

    What are CSG objects?

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

      Hey! CSG objects is a type of node (or nodes, since there are many) in godot that allows for quick prototyping of geometry shapes. It is usually used for level design or quick modeling. Here are some nice resources about it: docs.godotengine.org/en/stable/classes/class_csgshape.html docs.godotengine.org/en/stable/tutorials/3d/csg_tools.html There are videos about it too. This godot node is quite helpful :)