views:

389

answers:

3

What is the easiest way to do accelerated 3D graphics inside a TForm in Delphi?

+3  A: 

Use a library such as Asphyre (http://afterwarp.net/), which supports both DirectX and OpenGL.

Svein Bringsli
+2  A: 

You can use GLScene (http://www.glscene.org) for that. GLScene is component-based, has a Viewer-Component (similar than a TPanel) which shows the rendered scene on a form.

I recommend to use the CVS Version, because the latest snapshot is quite old. GLScene works also with Freepascal / Lazarus on several platforms and has many demos.

knight_killer
+1  A: 

In Delphi 2010, if running on Windows 7, you can use Direct2D natively.

Marco Cantù
Now that's really interesting - I guess we'll make an upgrade soon :-)
Lars D