Scott,
I remember reading posts from people who had tried this some time ago and
they reported that Java quickly ran out of memory as the textures are not
cleaned up properly. Maybe the problem has been fixed in 1.2?
I don't expect this to become really viable (in terms of performance) until
1.2 is released which should have the ability to draw straight into a
texture image without copying it.
Best,
Daniel Selman
[EMAIL PROTECTED]
http://www.tornadolabs.com
-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of Decker, Scott D
Sent: 11 January 2000 11:16
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] movie texture
This question came up before. There were only a few answers to it in the
archive. Currently Java3d can not do animated textures, or movie types of
textures. This does not mean that it can not be done though.
You can easily import the quicktime libraries, or hmm..I guess you could
also
use the JMF from java(the java media framework)
Now, you will have to do some weird rendering. Like perhaps you would have
to
have your own graphics object created and just play the movie inside of that
graphics object.
Then, you set up a java3d behavior to run, say every 1000 milliseconds/ or 1
second and advance your movie, take a snapshot, retexture your object.
Yes, this would be slow. You could spawn a thread that would parse your avi
into gifs for you, and also creates the texture objects as well. Then, when
your
behavior wakesup then it is just a matter of applying the texture to the
object.
Again, I have not tried to change the textures quickly like this, so I have
no
idea how fast it would be. Maybe someone on the java3d team could estimate?
Or,
maybe someone has tried doing animated textures or the like and has some
time
information?
Scott
Scott Decker
Research Scientist
Pacific Northwest National Labs
[EMAIL PROTECTED]
please feed the squirrels
===========================================================================
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".