Solved

3D Simulation Programming

Posted on 1999-01-12
4
201 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
Comment Utility
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
Comment Utility
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
Comment Utility
Check my DOOM like sample program (full source)
http://www.multimania.com/tothpaul/usdelphi.htm
0
 

Author Comment

by:mrbird
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now