That's what I thought but I could not find an explanation :)
chris
Brad Christiansen wrote:
Hi CHris, A texCoordSet is a set of textuer coordinates for the geometry. When you do multi texturing you can specify several sets fo texture coords, and then you can specify which set of texture coords to use with each texture unit. To specify which set of tex coords to use with each tex unit you must pass an array into your geometries constructor (the texUnitMap). This array has one entry for each texture unit you will apply to the geom. Each entry specifies which set of textrue coords to use for each tex unit.eg. I have 2 textures I wish to apply to a geom, each using a different set of textrue coords. I want the first tex unit to use the first set of texCoords and the secound to use the secound. When I create the geometry I use a texUnitMap = new int[] {0,1} in the constructor. I set the texture coords using: geomArray.setTextureCoordinates(0, 0, texCoords); for the first set of texCoords and: geomArray.setTextureCoordinates(1, 0, texCoords2); foor the secound. Now when I apply a texure with two texture units then the first will be applied to the geom. using texCoords and the secound using texCoords2. I hope this makes sense. Cheers, Brad chris Thorne wrote:Can someone please explain the meaning and use of texture coordinate set (texCoordSet) for geometry arrays (in particular a triangular strip array)? The java doc does not explain it. thanks, chris =========================================================================== 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".---------------------------------------------------------------------------- This Email may contain confidential and/or privileged information and is intended solely for the addressee(s) named. If you have received this information in error, or are advised that you have been posted this Email by accident, please notify the sender by return Email, do not redistribute it, delete the Email and keep no copies. ---------------------------------------------------------------------------- =========================================================================== 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".
