Open Dynamics Engine (ODE) in English


1. Installing Visual C++ 2008 Express Edition

Visual C++ 2008 Express Edition is a free C++ developement sofeware. You can download from <http://www.microsoft.com/express/download/>. You can choose Web install or Offline install.

Web installEasier installation than Offline install. The total download size is approx. 300MB. I recommend this way.
Offline installYou will download a ISO file. The file size would be 1GB. In addition, you will need to burn to a DVD or install a virtual DVD software(e.g., Daemon tools).


2. Installing ODE Ver 0.10.1 (July 24, 2008)

A. download "ode-0.10.0.zip"

Go to <http://www.ode.org/download.html> and click "Binary releases for windows". Then, download "ode-0.10.1.zip" from Sourceforge.net. After you unzip the file, place the folder "ode-0.10.1" in the C drive (i.e., "c:\ode-0.10.1").


Contents in "ode-0.10.1.zip"

Part1.jpg

Copy contents in the zip file to "c:\ode-0.10.1"

Part2.jpg

B. make set-up files for VS2008

Start "Command Promt" (Start>All Programs>Accessories>Command Prompt)".Then, start premake.exe in the "c:\ode-0.10.1\build\".

1Type "cd.." then press the return key.
2Type "cd.." then press the return key.
3Type "cd ode-0.10.1" then press the return key.
4Type "cd build" then press the return key.
5Type "premake --makeall" then press the return key.

Starting Dos Prompt

Part3.jpg

Typing on the Dos Prompt window

Part4.jpg

C. Set up the development environment for ODE

Go to the folder C:\ode-0.10.1\build\vs2005. The folder "vs2005" contains set-up files for Visual C++ 2005 Express Edition (VS2005) and those files are compatible for VS2008. Then, open (double-click) "ode.sln" in the folder. After the VS2008 window is opened, choose "build>build solutions" in the tool bar. If your set up is succeeded, you will see "========== Build: 31 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========" in the output on the bottom of the window.

D. Demonstration programs

After you succeed the ODE setup, you can enjoy with the demonstration program. Go to "C:\ode-0.10.1\lib\DebugDoubleDLL" and you will see 29 demonstration programs. Especially, please try "demo_buggy.exe" because I will explain how to implementa ODE programs by using the "demo_buggy" program.

3. Implementing own ODE programs

A. Making a new folder and copy necessary files

For making your own project, (1)please make a folder (e.g., my_code) in "C:\ode-0.10.1\ode". Then, please copy the following 3 files to the folder.

The files that require for your own project:

FOLDERFILE
C:\ode-0.10.1\ode\demodemo_buggy.cpp
C:\ode-0.10.1\ode\demotexturepath.h
C:\ode-0.10.1\build\vs2005demo_buggy.vcproj

Your own project folder:

FOLDERFILE
C:\ode-0.10.1\ode\my_codedemo_buggy.cpp
C:\ode-0.10.1\ode\my_codetexturepath.h
C:\ode-0.10.1\ode\my_codedemo_buggy.vcproj

Removing Files

Part5.jpg

Adding Files

Part6.jpg

B. Modifying the files for your own project

Open "demo_buggy.cpp" in the folder "C:\ode-0.10.1\ode\my_code".

1Remove "ode>demo>demo_buggy.cpp" in the window "Solution Explore"
2Move the cursor on "demo_buggy" under the "Solution 'demo_buggy'(1 project)", and click the right button of the mouse. Then choose "Add">"Existing Items" > "demo_buggy.cpp" and "texturepath.h" in the folder "my_code".
3Click "demo_buggy.cpp" in the window "Solution Explore". The source code appears in the right window. For executing the code, choose "Debug>Start Debugging" in the tool bar.

C. How to use other sample codes.

Basically, you can use other sample codes by just replacing "demo_buggy.cpp" to a different code. The process is the same as the above (section B).


添付ファイル: filePart6.jpg 168件 [詳細] filePart5.jpg 156件 [詳細] filePart4.jpg 156件 [詳細] filePart3.jpg 144件 [詳細] filePart2.jpg 163件 [詳細] filePart1.jpg 175件 [詳細]

トップ   編集 凍結解除 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2008-09-02 (火) 22:47:41 (525d)