Is it possible to specify a vertex list by indexing into a different
vertex list?  Sorry if that's confusing, I'll try to explain a bit more.

I've got some data that is organized in the following way:

- A primary vertex list that is the regular xyz values you'd expect.

- A secondary vertex list that is composed by indexing into the primary
vertex list.

- A texture coordinate list that has a value for each 'vertex' in the
secondary list.

- Lastly, a list of indices into the secondary vertex list to define
some primitives.

It looks like the data was set up this way so a vertex that exists in
multiple primitives can have a unique texture coordinate per primitive,
yet still only be transformed once.

My initial approach was just to construct the secondary list by
replacing the index with a copy of the vertex it was referencing.  This
works except for one thing, the primary vertex list is not static.  By
that, I mean the values of the vertices themselves, the list size itself
will not change.  So, the only approach I see is to basically
reconstruct the secondary vertex list every time the primary is updated.
This could be kind of rough, since I could potentially have many
secondary lists.  From what I've seen looking through OSG headers and
mailing list postings it doesn't seem possible to do this 'vertex list
by indexing another', but I thought I'd ask just in case.
Thanks.

- Ken.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to