Solved

Animation with D3

Posted on 1998-08-04
3
487 Views
Last Modified: 2010-04-04
Hi all.  I dont know if this can be done or not, but heres what I want to do.  I have a 24bit image as a background.  I want to move upto four images horizontally on this background transparently.  We have achieved the basics using the TImage component, but as you can imagine, this is as jerky as hell.

Is there anyway we can do this without using something like FastGraph (which we have, but it seems overly complicated and we have problems leaving native Delphi controls on the form as FG seems to erase everything we put on the form).

Any help would be appreciated!

Stuart.
0
Comment
Question by:SJohnson
3 Comments
 

Expert Comment

by:nileq
ID: 1359724
Instead of using TImage you should use TBitmap, TGraphic or TIcon
to initioate your graphics, and to draw them on the canvas with Canvas.Draw(X,Y : Integer; Graphic : TGraphic); This will probably speed things up for you.

Or you could build a delphi compatible animation (AVI) to use with TAnimate

Let me know if it works.

0
 
LVL 3

Accepted Solution

by:
Matvey earned 100 total points
ID: 1359725
I don't sugest to use any Delphi routines or classes to make animation - flickering is guaranteed. If you want to draw the animation by yourself use some API calls like BitBlt etc.
There are however lots of components for animation:

http://bes.trendline.co.il/torry/vcl/graphics/transit.zip
"The TTransitionEffect Component lets you make animated bitmap transitions like stretchs, zoom, slides, etc."

http://bes.trendline.co.il/torry/vcl/graphics/animimag.zip
"TAnimImage is a class that modifiy the TImage class to provide Animation Effect."

http://bes.trendline.co.il/torry/vcl/graphics/ffpbox.zip
"A simple replacement of TPaintBox which provide flickerless redrawing. Very useful when you need to draw complex image with animation effects."

http://bes.trendline.co.il/torry/vcl/mmedia/sprites1.zip
"TSpriteBox and TSprite are a pair of components for easy sprite animation. TSpriteBox is a drawing surface for TSprite. It also displays background images and/or a colored and/or a gradient background. TSprite accepts 2 images an AND and an OR image. These images combine to produce the sprite."

http://bes.trendline.co.il/torry/vcl/packs/graphic.zip
A package including animation object.

http://bes.trendline.co.il/torry/vcl/misceff/animat32.zip
"The TAnimated Component allows the easy programing of simple animations such as exploding text, books being paged through, etc. Animations are drawn as bitmaps consisting of two or more frames arranged in filmstrip form."

http://bes.trendline.co.il/torry/vcl/misceff/autoplay.zip
"This component can help you to design like helper of Microsoft Office97 very easy. You also design like of top right corner of animated of Netscape (IE). The component can show animated by thread, it can also rewind (BackPlay), play section of DIB or BMP (PlaySection), too. Uses DIB method to show."

http://bes.trendline.co.il/torry/vcl/shared/panoptic.zip
"Component that displays lines of text and/or bitmap images. It has a built-in timer and methods that, among other things, facilitate scrolling, animation, fading and morphing."

http://bes.trendline.co.il/torry/vcl/graphics/manimbmp.zip
http://bes.trendline.co.il/torry/vcl/graphics/jlanibmp.zip
http://bes.trendline.co.il/torry/vcl/misceff/panneau.exe

That should be all the freeware I found. Finding cool shareware isn't a problem at all...

c u, Matvey
0
 
LVL 1

Author Comment

by:SJohnson
ID: 1359726
Hi Matevy.

Thanks for you long and detailed answer!  I actually figured out how to do it last night, but I am going to go through those components you mentioned and see if any of them do any better.

I'll award the points regardless.

Thanks for you help.

Stuart.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question