Judging by the lack of response, either my question was unclear or no one
knows how to quickly edit the image used by a Texture2D.
Dear Sun programmers,
I need to paint dynamically on the surface of a sphere to create animation
effects. This operation is fairly fundamental to my project. Conceptually, I
would like to twiddle with some of the pixels stored in the image without
having to go through the time consuming process of creating an entirely new
ImageComponent2D and sticking it back into the Texture2D. My only other
alternative has been to create Shape3D's that tightly hug the surface of the
sphere thereby simulating (to an extent) the painting I would like to do.
This is ridiculously expensive in terms of the computer's memory and runtime
speed not to mention my own programming time. In short, it's not an
acceptable alternative either.
Does anyone have any solutions? If so, please help me out; if not, is this a
limitation of openGL? or Java3D? are there plans to implement something like
this?
Thanks,
Raffi
-----Original Message-----
From: Kasparian, Raffi J. [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 02, 2000 11:17 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Graphic operations on texture images
I would like to dynamically and quickly edit the image in a texture that is
applied to an object. The only way I figured out to do this is very slow. (4
seconds on my machine)
Here's what I'm doing:
draw what I want into a BufferedImage;//this is quick
//the following instructions are slow
ImageComponent2d.set( BufferedImage );
Texture2D.setImage( ImageComponent2d );
Appearance.setTexture( Texture2D );
It seems that there should be a way more efficient way to edit the image
since all I want is to change the color of some pixels. Does anyone know of
a better method?
Thanks,
Raffi
===========================================================================
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".
===========================================================================
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".