Jump to content
  • Advertisement
Sign in to follow this  

OpenGL NVidia Cg Shader Cuestion

This topic is 5097 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 developers! Do you know how to pass an uniform array variable with Vertex Buffers? I'm using Cg library with OpenGL ARB Vertex Program Profile (arbvp1). A tentative is to use cgGLGetParameterArray function, for pass an array of values. But it carries bandwidth problems, because we have to copy large amount of data to Graphics card for every model. The goal is to implement a Vertex Skinning program, which must receive an array of vertex-to-bone assignment like this: struct VERTEXBONE_ASSIGNMENT { REAL m_vertexindex; REAL m_boneindex; REAL m_boneweight; }; The problem is that this element cannot be attached to each vertex; each vertex-to-bone element has independecy of vertices. Also, the vertex bone array info has more elements that model vertex array. There is needed to treat vertex-to-bone array as an alternative stream source. Have any suggestion? thanks.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!