Solved

Animation with D3

Posted on 1998-08-04
3
492 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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

689 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