From: Jason Daly (jdaly++at++ist.ucf.edu)
Date: 05/12/2005 08:35:56
Jimi Hong wrote:
>Dear Performers
>
>I'm trying to program in GLSL.
>Performer has a method for binding uniform value.
>(ShaderProgram->addUniform)
>But I can't find a method for binding an attribute.
>setAttr method of geoset has only COORD, NORMAL, COLOR and TEXCCOORD.
>And I need a GENERIC type of attribute.
>
>I've red that in Performer Newsletter "Add attribute using a method at
>GeoArray".
>But If I use geoarray, I should convert geode model to geoarray model,
>shouldn't I?
>I haven't try this way, because I think geode must have some other way.
>
>
You have to use GeoArrays. GeoSet has no support for generic
attributes. There is a function to convert GeoSets to GeoArrays
(pfdConvertNodeGeoSetsToGeoArrays), so it's not really hard to do.
>Please let me know.
>How to use the method - glBindAttribLocationARB(myProgram, 1, "AAA") -
>in Performer?
>
>
I'm not sure about this one.
--"J"
This archive was generated by hypermail 2b29 : Thu May 12 2005 - 08:36:07 PDT