From: Jimi Hong (jimi++at++imrc.kist.re.kr)
Date: 05/18/2005 00:13:20
Hi, Performers.
I'm working on GLSL.
I want to add "tangent" attribute.
So, I defined pfuTraverser prefunction like below
for ( cnt = 0; cnt < pGeode->getNumGSets(); cnt++ )
{
Gset = pGeode->getGSet(cnt);
geoa = pfdConvertGeoSetToGeoArray(Gset, 0);
if(geoa)
{
Float *tangetlist = (float *)pfMalloc( sizeof( float ) * 3 *
numVertices, pfGetSharedArena() ) ;
pfVertexAttr *vAttr =
geoa->addAttrType(PFGA_GENERIC_ARRAY,"tangent", 3);
geoArray->addAttr(vAttr, 3, GL_FLOAT, 0, tangentlist);
pGeode->replaceGSet(gset, geoa);
pfDelete(gset);
}
}
I called pfuTraverse() in the postConfig() in my module but it doesn't
work.
After running postconfig routine, this program is stop.
I checked the Call stack, the stop line is libpfdu-util.dll!0049f3e2().
It happened after doing traverse.
I don't know How to do.
Is there anyone who can help me.
Please help!!
This archive was generated by hypermail 2b29 : Wed May 18 2005 - 00:13:27 PDT