>
> What exactly should I do to update image on Raster ?
>
> 1) Should I set it's ImageComponent2D to null and back to same IC after
> update ?
> 2) Should I reuse same ImageComponent2D, use two (kind of double buffer)
> or create new one every time ?

Both methods work. But, in the first case, you will have some frames rendered
with null ImageComponent2D. With double buffering, you can get continous
updates.


> 3) In case of byref image, can I update it on just after detaching or do
> I have to set something to null on image first ? Do I have to call
> set(BufferedImage) on ImageComponent2D after making updates to
> BufferedImage to perform an update ?

You can change the by-ref image right after detaching and Yes, you need to call
set() for the changes to be reflected.


> 4) If I want to change Raster image size, do I have to detach it from
> world, or can I just disable it and change both pixel size and
> ImageComponent ? In what order ?
>
No, you don't have to detach to change the image or the size. You will have to
set the capability bits to change the image(ALLOW_IMAGE_WRITE) or the
size(ALLOW_SIZE_WRITE). if you want both changes to be reflected in the same
frame then you need to do it from a behavior

-Uma
Java3D Team



> Currently I'm detaching BranchGroup containing Raster from world to
> perform an update - I think that it is a bit overkill.
>

===========================================================================
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