> The byref is only slower if you are not updating it every frame. We are > using float[] by ref. That means you can update the floats right in the > array and then the floats are streamed over every frame. There is no > additional copies made. Think of it this way, when you set the attributes > to allow you to update the geometry, Java3d will not use a display list, so > its sendnig the data every frame anyway. If you use anything other than > byref float[] then Java3d keeps its own internal copy, so every time you > make an update it has to move stuff around. By using byref float[] you can > basically work right with the data.
Hmmm, but surely this requires more processing? With a single setTextureCoords (or whatever) call you supply the whole array of texture points. With the byref mechanism, it has to look all of these up to produce a final array doesn't it, or does all common hardware support byref too so it just sends the refs array and also the points array? Yours, in ignorance. ==========================================================================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".
