[info-performer] Set and get attributes

Date view Thread view Subject view Author view

From: Jimi Hong (jimi++at++imrc.kist.re.kr)
Date: 06/29/2005 19:23:21


I made tangent list per vertex then insert into 3rd TextureCoordinate place like follows code.

----------------------------------------------------------------------------
pfVec3 *TANGENT = (pfVec3 *) pfMalloc(pfGetSize(vertexlist), pfGetSharedArena());

... ...(make tangent list ...)

geoArray->setMultiAttr(PFGA_TEX_ARRAY, 3, 3, GL_FLOAT, 0, TANGENT);
----------------------------------------------------------------------------

When I ran my GLSL vertex program, the gl_MultiTexCoord3 didn't work well.
So, I'd like to test whether the tangent attribute work well.
I add code :
 geoArray->getMultiAttrLists(PFGS_TEXCOORD3, 3, (void**) &TLIST, &blist);

I thought TLIST's size is same with the size of TANGENT array.
But TLIST's size is zero.
I think that's why gl_MultiTexCoord3 is not working.

How to get the tangent list to confirm the attribute.
Where should I change the code? Or What I have to add in the code?


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Jun 29 2005 - 19:23:17 PDT