Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


Keeping transform matrices in video memory buffers?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 Prune   Members   -  Reputation: 218

Like
0Likes
Like

Posted 26 September 2013 - 06:01 PM

How significant is the impact of uploading new transform matrices per mesh?

What about, instead, storing all the transform matrices in a uniform or texture buffer? Wouldn't this be the way to go in scenes where many objects are not constantly animating? A downside, though, is that the camera transform cannot be then premultiplied and would have to be multiplied in the vertex shader. Another thing is that I'm not sure how to efficiently specify the index into the buffer for each draw call, even if the mesh sequence is fixed (the trivial way, setting an integer uniform, defeats the point).

 

Thanks


"But who prays for Satan? Who, in eighteen centuries, has had the common humanity to pray for the one sinner that needed it most?" --Mark Twain

~~~~~~~~~~~~~~~Looking for a high-performance, easy to use, and lightweight math library? http://www.cmldev.net/ (note: I'm not associated with that project; just a user)

Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS