From: Duvan Cope (dcope++at++ist.ucf.edu)
Date: 06/28/2004 08:40:29
Hello,
I am having trouble using pfGeoArray's generic attributes. I have looked
at all the documentation I can find and yet cannot get it to work. I am
trying to pass in some additional data per vertex for a vertex program to
use. I would like to see some functional sample code or anything else
that may help me. What I have that does not work...
boneAttr = pfGeoArray::addGenericAttrType("bones", 7);
// Allocate and initialize the boneList....
performerGeoarray->addAttr(boneAttr, 4, GL_FLOAT, 0, boneList);
In the shader program all I appear to get is 0 vectors for all of
vertex.attrib[7]'s entries. Am I specifying the attribute
location properly (the 7)? Is there some additional calls I need to make
to pass the data to the shader? Do the generic attributes even work?
Thanks in advance
This archive was generated by hypermail 2b29 : Mon Jun 28 2004 - 08:41:52 PDT