PDA

View Full Version : Direct3d lessons/tutorials



hammer
25-05-2004, 06:47 AM
i've started learning the basics of d3d but i cant find any good lesson for delphi everything is c or vc :(
please if someone knows good lessons for d3d in delphi post a message :)

TheLion
25-05-2004, 07:59 AM
Most of the DirectX code is identically in C++ and in Delphi, however some things can be rather a pain to convert! ;)

Clooties page has a few examples that might help you:
http://clootie.narod.ru/delphi/download_dx90.html
http://clootie.narod.ru/delphi/download_custom.html

hammer
26-05-2004, 08:24 AM
i know about clootie, i've downloaded the converted dx headers, but i am looking for some lessons with explanation how and why its done this way :)

TheLion
27-05-2004, 02:10 PM
Well if you combine the Direct3D code from Clooties tutorials with the C++ tutorials that are spread all over the web you should be able to figure it out I guess, that's about how I learned Direct3D! :)

I learned most from this tutorial, however it uses C++ sample code:
http://www.riaz.de/tutorials/d3d.html

However Delphi and C++ are not THAT different when it comes to DirectX/3D, the calls itselfs are almost identically, only differences are some type naming, for example something like:
LPDIRECT3D9 is called something like IDirect3D9 in Clooties headers, which most of the time is the biggest difference. And sometimes certain functions take a pointer in C++ where you can now simply sent a variable to. :) If you want to use Delphi for game development you'll have to jump back to reading C++ code quite a lot unfortunately, not many tutorials are out there... :-/

If you speak/read German then I can find you a few great Direct3D tutorials, since googling on Direct3D and Delphi came up with a lot of german website hits! :)


P.S. The DirectX SDK is also a great help sometimes to explain what certain functions do! ;)

hammer
30-05-2004, 11:20 AM
unfortunately i dont read/speak germa :(
yes i've found myself a lot of c++ d3d tutorials but i dont quite get the c++ syntax :(

but if there are no other alternatives i guess i have no other chance
anyway thanks for the help :)

Harry Hunt
30-05-2004, 02:09 PM
the site is english

TheLion
30-05-2004, 08:18 PM
the site is english

hehe, yeah he responded to my line where I told him that googling for Direct3D and Delphi would turn up a lot of hits, but almost exclusively in the German language! :)

Harry Hunt
30-05-2004, 10:42 PM
Oops, my bad :D

WILL
31-05-2004, 02:25 AM
googling for Direct3D and Delphi would turn up a lot of hits, but almost exclusively in the German language! :)

Try babelfish (http://babelfish.alravista.com/) on Altavista.com. You can translate URLs with it. It'll be a little broken, but I'm sure some of it wil make some kind of sense.