| Re: Speed up movie in object graphics. [message #19548 is a reply to message #19543] |
Wed, 05 April 2000 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Erik Hummel (erik.hummel@philips.com) writes:
> On WNT and with IDL5.3 I'll have an application with movie functionality
> of images (say 256x256 byte array). The application is based on Object
> Graphics. The movie is very slow (lower than 10 images/s).
> The CW_Animate application of IDL is much faster, but with structured
> graphics.
> My question is how to speed up the movie. To me seems an option using
> the Read (or GetProperty, Image_Data) method of IDLgrWindow and redraw
> these screen dumps. Has someone experience with this
> and is this indeed the way?
I don't have any experience animating object graphics
images. Mostly, I think, because it would never occur
to me to use object graphic images for this purpose.
I can imagine it would be slow. And the READ or
GET_PROPERTY, IMAGE_DATA is not going to help much,
since reading from the window *still* results in
an image object.
I think what I would do is pull each 2D image out
of its image object using the GET_PROPERTY, DATA
method and load those images into XINTERANIMATE
(or CW_ANIMATE, I guess). This won't cause a problem
unless you are running on an 8-bit display, in which
case your colors will go a little crazy in the rest of
your application while the movie is running. But it will
work perfectly on a 24-bit display, which--if you are
writing object graphics applications in the first place--
I'm sure you have. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
|