Solved

3D Simulation Programming

Posted on 1999-01-12
4
209 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
[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
  • 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

Independent Software Vendors: 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

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

710 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