?
Solved

Animation with D3

Posted on 1998-08-04
3
Medium Priority
?
497 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 400 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month9 days, 11 hours left to enroll

762 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