Skip to content
Discussion options

You must be logged in to vote

Hello,

Not currently, but you can definitely add it if you want.

  • You can start from the Renderable component, since every entity that needs to be rendered has a Renderable:
    https://github.com/PanosK92/SpartanEngine/blob/master/runtime/World/Components/Renderable.h
  • The Renderable holds a Mesh pointer.
  • The Mesh uses an RHI_Buffer* for its vertex buffer, this is a good place to start.
  • For dynamic meshes, you can create this buffer with usage flags like VK_BUFFER_USAGE_VERTEX_BUFFER_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT and memory properties suitable for frequent updates (HOST_VISIBLE for direct writes or a staging buffer for performance).
  • You update the vertex data by writing into the buff…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by MountainLabz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants