Hi all, I'm having some problems with the language in the spec describing the accessor tag. Probably the best way to say it is with examples... can someone explain how to write accessors for the following situations?
say you have an array of positions like this: [x1 y1 z1 x2 y2 z2 ... xn yn zn]. i assume that a stride of 3 and one param tag for each of x and y will give you only the x and y elements of each position, but how to access only the x and z elements? would this need two accessors? which brings up the question of whether vector-valued semantics in the common profile can resolve to multiple accessors..
now say you have the same array in a different format: [x1 x2...xn y1 y2..yn z1 z2...zn]. again, how to grab only the x and z elements?
also, there seems to be an implicit binding between the order in which child param tags come and the order of data in the array... guess I'd feel better if this were explicitly documented.
and another question: the spec says that "the stride attribute indicates the number of values that comprise each access." does this imply that the stride is equal to the number of param elements? seems unlikely since it would be quite restrictive.
i suppose these are nit-picky, but i'm trying to write generally useful code in the hopes of collada's success and of saving myself some work later on.