How can I read in all vertices of a mesh in a level?

Using Unreal 4.22 (C++) I’d like to be able to chuck all the vertices of a mesh into an array to work with. I’m interested in these different levels of complexity:

  • a static mesh
  • a mesh that is changing with simple T/R/S transformations
  • a mesh that is deforming with animation (not necessarily with bones)

Does anyone know what I should be looking into for these? Any answers to any of those 3 appreciated.

https://www.gamedev.net/uploads/emoticons/smile.png

Even if you put the vertices in an array there is currently no method to recreate the mesh at render time from the array or data. (Save maybe alembyc).

You would have to create a completely custom C++ implementation of a new kind of procedural mesh to do this and render it. Not impossible at all, it’s just that you would be better off downloading the engine source and working off that to achieve it.

Hey again and thanks for the reply. I’m not asking how to recreate a mesh though; only how to read vertices in from an existing one.

https://answers.unrealengine.com/que…a-bluepri.html

https://forums.unrealengine.com/deve…f-static-mesh=

https://forums.unrealengine.com/deve…-skeletal-mesh

Many thanks Dark, they look very helpful (and I admit I could have tried harder to find them myself!).

Just curious. What is the purpose behind getting them if you won’t be re-using them?
calculations, sure. Moving something else based on the points, sure. But is that really the best approach for overhead?

Yep, for moving something else around the mesh based on the points. There’s no concern about overhead; it’s O(1) at run time with few calculations. The inevitable drawback is that the approach is situational – it doesn’t do everything one might need when moving something around a surface – but in the situations where it helps it helps a lot, avoiding several geometry-based edge cases and providing precise results. I’ve implemented this long ago in Unity and it worked nicely, including with animated meshes.