How do you programmatically create meshes?

I’d like to make a game with relatively simple geometry and am having trouble finding how to create meshes through code.

[EDIT:] I’ve found DynamicMeshBuilder, but it includes a comment about how it’s meant to be easy to use, not efficient. I’m going to use this to get started, but I’d still love an answer to this question, as I’ll convert the mesh code over to the proper implementation immediately.

I’ve done such buffer-filling and graphics code before, and have been programming editor features in UE4 for over a year now. I’m good to go on a lot of Unreal concepts and just need a little prodding in the right direction on where to find the buffers I need to fill and any corresponding functions I need to call to make sure the right levers have been pulled.

I believe this should get you started :

In addition to the above, also check out my fluid surface plugin, which involves creating and rendering a custom mesh. Also check out the CustomMeshComponent plugin that comes with the engine. And you can also look at my Metaballs plugin example.

https://github.com/Ehamloptiran/UnrealEngine/releases

Make sure your logged into your github account and that is linked to your UE4 account before you click on the link, otherwise you will get a 404 error.

Thank you both! I spent way too much time trying to find that needle in a haystack on my own.

it’s 404 now, and I am logged in with my github account connected to UE4. Any chance to take a look at the plugins?

Hi Ehamloptiran, what happened to your repository for that project? Have you taken it down because you plan to sell it, or are there plans to officially integrate into Unreal? It’s a shame that it has disappeared…

I think this is it https://github.com/andyrst/ue4_metaballs

I think this is it https://github.com/andyrst/ue4_metaballs