Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Binary Greedy Voxel Meshing Algorithm (github.com/tantandev)
22 points by catapart on April 20, 2024 | hide | past | favorite | 7 comments


Just be careful with this if you build an actual game. Most of my comment will reference his video, https://www.youtube.com/watch?v=qnGoGq7DWMc.

He very arrogantly opens the video by basically saying "your mesher SUCKS compared to mine". What he doesn't tell is that he tested his mesher with 3 block types. His mesher requires separating each block type in the chunk and making copies of the chunk data with only that block type present. Of course, this scales horribly - if you have a reasonable 500 block types in your game, you would run out of memory on any computer which isn't a server with 128GB+ of RAM.

He also strongly implies that greedy meshers are just as fast as regular meshers - which is straight up false. He compares his optimised mesher to his really bad first naive mesher, which is just cheating. He also has zero clue about what he is doing - he is spending the first 22% of the function allocating the vec.... which he could trivially avoid by pre-allocating a vec (or a bunch of them if you want to do meshing in parallel) then just reusing them for every mesh.

He has zero clue about profiling and optimisation or even about how to make an actual game which is not a tech demo, yet he confidently spews bullshit to aspiring gamedevs who believe him because they don't know any better. This is truly sad and con artists like this should be shamed to the ground for misinforming new developers.


I think calling them a "con artist" is pretty over the top, no? To me, this seems like a clear case of a more junior game dev being very excited about a cool thing they built and optimized. Sure, it may not really be the holy grail they think it is, but they aren't doing any harm by being excited of it and proud of themself!


if they are a junior gamedev they shouldn't go around making an educational video about shittalking everyone about how theirs is the "world's best algorithm" (not my words) and how everyone else sucks. :)

the problem isn't with the excitement, the problem is being arrogant and being an asshole but not having the leet skillz to actually justify it....

edit: they are doing harm by creating unrealistic expectations towards new gamedevs and misleading them in what matters for performance. (spoiler alert the bit manipulation looks clever but that isn't the majority of performance optimisation now, this is not 1996)


I am not the project author.

Video explainer: https://www.youtube.com/watch?v=qnGoGq7DWMc


Does it can be used as marching cubes alternative?


It's to mesh the voxels themselves, like in Minecraft.


Not exactly, these meshes are cubes, while marching cubes generates non cube meshes.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: