Solved

3D Simulation Programming

Posted on 1999-01-12
4
205 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Best Firemonkey component pack 1 116
Simple Delphi Question 9 96
Delphi: barcode reading on android platform 1 51
Twebbrowser add css to the header 3 27
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…
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

809 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