Hi all. I have a couple of questions regarding indexed geometry. 1. There seesm to be no way to define the indices and by-ref. Is that correct? So the only way to set the indices is either to pass in an array using setCoordinateIndices(int index, int[]) or to set each one at a time with setCoordinateIndices(int index, int)
2. SetValidVertexCount() is disabled for for indexed geometry. The problem is that my by-ref arrays are larger than the valid amount of information. I have always relied on this function to dynamically adjust the number of valid items in the arrays. Should I assume that all the coordinate, color, normal and texcoord information will be sent to the card in indexed mode? So if you have enough room in your arrays for 300 vertices of information, but only have 50 relevent vertices ti would still send 300 vertices of information? 3. Basically my problem is that we have a variable number of valid vertices stored in a larger set of by-ref arrays. In addition the number of indexed vertices is also variable, so in one frame I might have 300 indexed vertices mapping to 50 unique coordinates and then in the next frame I might have 100 indexed vertices mappiong to 60 unique coordinates. The only think I can think of is to use the setInitialCoordinateIndex.. But to do that I would need to store all my indexes backward so that the ones I want are at the end of the array. Also.. the documentation is a but confusing because the word "index" is used in two compeltely different contexts...If I am reading it right, setInitialCoordinateIndex has nothing to do with indexed geometry, but rather is a way of constraining which range of coordinates are to be used. So it seems that the only solution to problems 1 and 2 is to use the setInitialXXX functions to contrain the arrays. This is sort of nasty because I have to fill in the arrays in chunks of 3 or 4 backwards. Dave Dave =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
