Sign in to follow this  

OpenGL NVidia Cg Shader Cuestion

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this