NVidia Cg Shader Cuestion

Started by
-1 comments, last by leoptimus 18 years, 4 months ago
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.
"Technocracy Rules With Supremacy" visit: http://gimpact.sourceforge.net

This topic is closed to new replies.

Advertisement