Solved

3D Simulation Programming

Posted on 1999-01-12
4
203 Views
Last Modified: 2010-04-06
How to program 3D simulation? Draw directly to canvas or else, please suggest me, if possible please give me a sample code.
0
Comment
Question by:mrbird
  • 2
4 Comments
 
LVL 10

Expert Comment

by:Lischke
ID: 1356230
Hi mrbird,

if you really want you can do all the calculation yourself and draw directly to a canvas, but I don't recommend this since this is a real hard job to do and there are already made libraries available for free. One is the so often cited DirectX (in particular the Direct3D part of it) and another one is OpenGL.

The former deals heavily with COM objects and is hard to understand while the latter is a procedural API and quite easy to learn. OpenGL has very good references (do you know the movies "Independence day", "Terminator 2" or "Jurassic Park"? I'm sure you know at least one of them. The special effects shown in these movies all where made with OpenGL.

To get started with OpenGL (if you prefer it over DX) point your browser to one of the major Delphi sites (DSP, Deli, Torry's) and search for GLScene. There's a D2 version with source code (version 0.3.2 beta) and a D3 version (0.4.3 beta) without sources. A D4 version is under work.

Ciao, Mike
0
 
LVL 10

Expert Comment

by:Lischke
ID: 1356231
Ooops, I forgot to mention the GLScene home page (http://www.mind-link.com/glscene/). There you'll find the D3 version.

Ciao, Mike
0
 

Accepted Solution

by:
tothpaul earned 100 total points
ID: 1356232
Check my DOOM like sample program (full source)
http://www.multimania.com/tothpaul/usdelphi.htm
0
 

Author Comment

by:mrbird
ID: 1356233
Thank you for your answer tothpaul. Since I have a little time to finish this project, it difficult to make understand your source code but it is very good to see it, I can study something from it.

And also thanks to Lischke for your suggestion, the component is very interesting and it look easier to code by myself. But I could not install the component (I already ask by email). I hope this will help me a lot.

bird
ps.  Lischke, if you want some points please tell me.. :-)
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

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…
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

777 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