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
Servers for Qt installer are currently down

Updating buffer data frame by frame

Scheduled Pinned Locked Moved Unsolved Game Development
1 Posts 1 Posters 568 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.
  • N Offline
    N Offline
    njbrown
    wrote on 19 Aug 2016, 06:09 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

    1/1

    19 Aug 2016, 06:09

    • Login

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