From: Jason Daly (jdaly++at++ist.ucf.edu)
Date: 01/29/2005 22:00:50
Devrim Erdem wrote:
>Hello,
>
>Is there a class or a method in Performer which would allow me to pass
>per vertex data to pfVertexProgram ? I would prefer not to use the
>texcoords for this purpose.
>
>
>
pfGeoArrays should support generic vertex attributes (a la
glVertexAttribPointerARB in OpenGL). I tried to use them in Performer
3.1 with little success, but they've supposedly gotten better in 3.2,
though I haven't had a chance to try them myself. Look at the
pfGeoArray and the glVertexAttribPointerARB man pages for more details.
Also, if you have the patience, I learned a lot by reading the
specification for ARB_vertex_program at:
http://oss.sgi.com/projects/ogl-sample/registry/ARB/vertex_program.txt
It explains how everything fits together pretty well.
HTH,
--"J"
This archive was generated by hypermail 2b29 : Sat Jan 29 2005 - 22:00:54 PST