Hi,
I have read about animated textures and changing textures on the fly on
this list. However, I have tried the advice listed to no avail. The only
way I have found to update a texture is to clone it and assign the clone
to the appearance. I tried to implement a double buffer of textures so, i
would assign a different texture on each change but only be using two
textures, but that did not work.
In particular, I use the following to get access to the pixels to modify
them:
pixels =
((DataBufferInt)((ImageComponent2D)textureArrayCurrent[i][j].getImage(0))
.getImage().getRaster().getDataBuffer()).getBankData();
Again, the modification only works if i assign the appearance a clone of
the texture; in this case, i would clone textureArrayCurrent, after i have
modified its pixels.
nader
===========================================================================
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".