> Date: Wed, 28 Mar 2001 18:00:38 -0800 (PST)
> From: Nader Wasfy Zaki <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> cc: Charmaine Lee <[EMAIL PROTECTED]>
> Subject: Re: Re: Re: changing textures on the fly problem (fwd)
> MIME-Version: 1.0
>
> Ok, let me also ask this: when i modify the imagebuffer which i got from
> one image component and then assign to anothe imagecomponent, isn't memory
> allocated for the imagebuffer?

        Yes.

> if so, then it is pointless for me to
> implement this "double buffering" which i was hoping to use to relieve the
> need of allocating memory for every texture change. Isn't there a way to
> change a texture and not allocate more memory, where i only need to change
> one pixel or two pixels in the texture image?

        You can specify the image data in the ImageComponent as byReference.
        Then image data will be accessed directly from the
        RenderedImage/BufferedImage object, no extra copy will be made.
        However, this depends on the yUp flag, the format of the
        ImageComponent, and the format of the RenderedImage. For more
        details on what formats need to be used to avoid the extra copy,
        please refer to  http://www.j3d.org/faq/textures.html


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".

Reply via email to