Hi David, I am probably preaching to an expert here... But since I have been doing something similar I would like to know if my understanding is correct with regard to the following...
Yes, GeometryArray can be shared as Michael already mentioned. But the "catch" in your multiple textures case I think would be that you will be accessing the different textures under different Appearances using the same set of TextureCoordinates. The Appearance class does provide you with an additional handle thru' TextureTransform, but the base TextureCoordinates will still be the same. However, this may not be actually a limitation depending upon the application. Something I found, which may or may not be legal, but which does really work, is that you could share a geometry with texturecoordinates under 2 Shape3Ds and specify Texture2D for only one of the Shape3D Appearances. I've been putting this "feature" to good use in my app. in the context of OrderedGroups. If you specify ByRef (someone can correct me here), displaylists are actually *not* built - *even* if you do not have any intention to change the GeometryArray. The reason why I say this is because there is actually a command-line flag called "optimizeForSpace" which by setting to false you coud get Java3D to do otherwise. Am I making sense here ??? Just my 2 cents Raj >On Wed, 14 Aug 2002 07:39:36 -0400, David Yazel <[EMAIL PROTECTED]> wrote: >Is there any legal way to use the the same GeometryArray in multi-pass >rendering (ala decal group)? Is it legal to assign the same GeometryArray >to multiple shapes? Even with by-ref geometry my fear would be that Java3d >would have seperate display lists for each geometry array, even though it is >identical. > >So to restate, how do you use the same geometry, but different textures, in >a decal group. > >DaveYazel > =========================================================================== 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".
