>From: Nader Zaki <[EMAIL PROTECTED]>
>Subject: Re: changing textures on the fly problem
>To: [EMAIL PROTECTED], Charmaine Lee <[EMAIL PROTECTED]>
> after changing the pixels, i set the texture of the appearance with the
texture of whose pixels i have retrieved; this does NOT change the appearance
texture though (as I have noticed and as you pointed out); however, if i clone
the texture (after i have modified the pixels) and set the clone as the texture
of the appearance, the textures do get updated; this seems contradictory to what
is supposed to be happening.
The difference between the two is when you clone
an ImageComponent object while cloning a texture, the
image data from the associated BufferedImage object will be
retrieved again and copied into the "cloned" ImageComponent object.
Since the buffered image data is already modified, the modified
pixel values are reflected in the cloned version.
Charmaine Lee
Java3D Engineering Team
===========================================================================
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".