Jump to content
  • Advertisement
Sign in to follow this  

OpenGL NVidia Cg Shader Cuestion

This topic is 4614 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
	UINT m_vertexindex;
	UINT 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 the model vertex array. 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.

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!