Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Updating buffer data frame by frame
Qt 6.11 is out! See what's new in the release blog

Updating buffer data frame by frame

Scheduled Pinned Locked Moved Unsolved Game Development
1 Posts 1 Posters 766 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • njbrownN Offline
    njbrownN Offline
    njbrown
    wrote on last edited by
    #1

    I know i can generate custom geometry data in qt3d using QBufferDataGenerator. Is it feasible to do this on a frame-by-frame basis?

    Whenever i call do something like this:

    vertexBuffer->setDataGenerator(QSharedPointer<LineListVertexBufferFunctor>::create(*lines));
    

    the data is only updated the first time it is called. Is there any way to invalidate the current vertex buffer data so it updates itself with the new data?

    I want to make a particle system (CPU) which would require the vertex buffer data be updated each frame. How would I implement something like that?

    1 Reply Last reply
    1

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved