💬

Community answer

Collected from the ACE community Discord archive around 2023-11-25. It may be informal or outdated — anyone can edit this page to improve it. Original discussion

Turning an in-game model into a mesh for rendertargets

🖼️ RenderingUpdated 2 days ago•0 views
Use mesh.getModelMeshes() to extract MeshVertex data, but mesh.createFromTable needs the 'triangles' subtable (not 'vertices') and you must clear the 'weights' …

How to render a mesh of an in-game model inside a rendertarget

Use mesh.getModelMeshes() to extract MeshVertex data, but mesh.createFromTable needs the 'triangles' subtable (not 'vertices') and you must clear the 'weights' keys since it doesn't handle unknown fields. See the model-meshes.lua example on codeberg.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.