Jump to content
  • Advertisement
Sign in to follow this  
Obah

Skinning on the GPU

This topic is 4911 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there, I'm working on a school project which is to create a game, I have successfully implemented smooth skinned animation (with the max of 4 bones/joints) I now want to off load some computations to the GPU, my question however is in regards to the best way to send data to the GPU. Right now I was testing using attribute variables but I have a very limited amount of those available (16). Is it bad to send uniform variables over constantly? My new idea was to send all of the bones/joints for each character (~300 matrices) then index them in the vertex shader. Is that too much to be sending over? I guess I'm just looking for a little insight, any help would be appreciated. Thanks!

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Is it bad to send uniform variables over constantly?
yes for peformance its ok to set them once for a whole model but if youre gonna change them every vertice then itll kill framerate,
u need attributes or the built in ones normals/texcoords etc

Share this post


Link to post
Share on other sites
On the issue of uniform variables (specifically textures) with GLSL assuming the source code for a shader stays the same, will the indexes for the textures stay the same? and same for attributes, is it safe to only GetAttribLocation() or wahtever it was once in a program? what about once for the same shader? (as in each time the shader is compiled do the attrib locations change?)

thanks
-Dan

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!