Re: [info-performer] Add Generic Attribute

Date view Thread view Subject view Author view

From: Jason Daly (jdaly++at++ist.ucf.edu)
Date: 05/18/2005 14:09:03


Hi, Jimi,

Jimi Hong wrote:

> pfVertexAttr *vAttr =
>geoa->addAttrType(PFGA_GENERIC_ARRAY,"tangent", 3);
> geoArray->addAttr(vAttr, 3, GL_FLOAT, 0, tangentlist);
>
>
>
Try replacing the above with

geoa->setMultiAttr(PFGA_GENERIC_ARRAY, 6, 3, GL_FLOAT, sizeof(float)*3,
tangentlist);

It's not in the documentation, but it's there.

One problem you may be having is if you're also assigning normals.
Generic attribute 3 will conflict with the normal array (see the docs
for ARB_vertex_program).

-- 

--"J"

"I'm a castaway stranded in a desolate land, I can see the footprints in the virtual sand." --Neil Peart


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed May 18 2005 - 14:09:08 PDT