Easy Install for Physics Engine

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Oster200
Posts: 60
Joined: Sun May 06, 2012 6:13 pm

Easy Install for Physics Engine

Post by Oster200 »

I used irrBullet before but you have to do so much for it to work correctly and right now i don't have time for that.
What is a good physics wrapper for irrlicht. I was thinking the IPhysics but i suck at installing things.
I need pretty good instructions because for IPhysics-1.2 what do i do with the include, lib, and source folder?

Really what I'm asking is that i need a physics wrapper for irrlicht that is easy to install, not slow, basics, and good/great instructions for installation for VC++ 2008
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Re: Easy Install for Physics Engine

Post by serengeor »

Oster200 wrote:I used irrBullet before but you have to do so much for it to work correctly and right now i don't have time for that.
It takes 10~30 minutes to set them up in IDE environment including download times. And that's probably the same for every library you will ever use.
Learn how to set up any library properly and you will have no such problems in the future 8)

P.S. using a wrapper for physics library is not really required in order to use it with irrlicht. What every wrapper I've seen so far does is that it adds some helpers for type conversions and creates bunch of unnecessary classes :)
Working on game: Marrbles (Currently stopped).
Oster200
Posts: 60
Joined: Sun May 06, 2012 6:13 pm

Re: Easy Install for Physics Engine

Post by Oster200 »

Well that is my problem setting it up correctly. I have VC++ 2008 lets say IPhysics or another aslong as it is not ode. i really just need to learn how to set up correctly

EDIT: okay my past post i asked how to install irrbullet and i got it too work but with 95% of luck. I ried again to see if i could get it too work and i couldn't like i said it was mainly luck. It would be helpful if someone could take some of their time and make a detailed description on how to install with VC++ 2008, Or a video. Im sure...I know that this would help many people in the future.
chronologicaldot
Competition winner
Posts: 687
Joined: Mon Sep 10, 2012 8:51 am

Re: Easy Install for Physics Engine

Post by chronologicaldot »

I use VC++ 2008. I'm not quite sure what you're setup issue is. Do you know how to include the files in your project? If not, here's how:

1) On your main menu, click "Tools".

2) Click "Options" from the drop-down menu. You should now have a window popup labelled "Options". On the left side will be a list of categories. By default, "Environment" is open, but we don't want that.

3) From the list, open the sub-list of "Projects and Solutions" by clicking the arrow next to it.

4) From the sub-list, click on "VC++ Directories". This should now change what's on the right side of the window. There are a couple of dropdown menus at the top. The one on the right is the one of interest. It says "Show directories for:" and by default, it is set to "Executable files".

5) Change the "Show Directories for" to "Include Files". Below the dropdown menu are a few buttons. One of the buttons is a folder with a star.

6) Click the folder with a star. What should appear is a new, blank line with a cursor. Here you can type in the path of the directory/folder of the header files you wish you incorporate into your project (such as the physics library header files). Rather than typing in the directory yourself (which can be tedious)...

7) Click on the button with the triple dots at the right end of the new blank line. This should bring up an Open Folder dialog box. Use it to go to the folder with the header files. Once you reach the folder, hit "Select Folder".

8) Repeat the process for the "Show directories for:" options "Source files" (for .cpp files) and "Library Files" (for .lib files) and possibly for "Reference files".

Now that all of your folders are set up, Visual Studio will check those folders when trying to compile. You should now be able to use them in programming.

When including the files in your documents, but sure to use "<" and ">" instead of quotations. For example:

Code: Select all

 
#include <myReferenceFile.h>
 
If you don't know how to use header files, see my tutorial:
http://steamcentral.wordpress.com/2011/ ... p-library/
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Re: Easy Install for Physics Engine

Post by serengeor »

Libraries must also be in correct order. Otherwise linker errors will occur. For gcc: http://www.network-theory.co.uk/docs/gc ... ro_18.html

You should really learn this general stuff, so you wouldn't have to wonder how to set up every different library. :wink:
Working on game: Marrbles (Currently stopped).
chronologicaldot
Competition winner
Posts: 687
Joined: Mon Sep 10, 2012 8:51 am

Re: Easy Install for Physics Engine

Post by chronologicaldot »

That link is for gcc. He's using VC++ 2008 which doesn't need gcc... or did I miss something?
(Thanks for the link though. - I'll use it XD )

@Oster200: Are you using Windows or Linux?
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Re: Easy Install for Physics Engine

Post by serengeor »

chronologicaldot wrote:That link is for gcc. He's using VC++ 2008 which doesn't need gcc... or did I miss something?
(Thanks for the link though. - I'll use it XD )

@Oster200: Are you using Windows or Linux?
Well I think that order also applies to VC++, though I'm not sure as I haven't used it for quite a while :)
Working on game: Marrbles (Currently stopped).
Oster200
Posts: 60
Joined: Sun May 06, 2012 6:13 pm

Re: Easy Install for Physics Engine

Post by Oster200 »

Im Not at home right now but i will do what you said chronologicaldot

Im using windows
Oster200
Posts: 60
Joined: Sun May 06, 2012 6:13 pm

Re: Easy Install for Physics Engine

Post by Oster200 »

Repeat the process for the "Show directories for:" options "Source files" (for .cpp files) and "Library Files" (for .lib files) and possibly for "Reference files".
Wouldnt .lib go under library files not source files?

BTW when i try to get IPhysics to work i get this error

Code: Select all

1>c:\users\Andrew\documents\irrlicht stuff\iphysics\iphysics-1.2\include\physicsglobal.h(12) : fatal error C1083: Cannot open include file: 'Newton.h': No such file or directory
I dont have a Newton.h and

Code: Select all

#pragma comment(lib, "Newton.lib")
i dont have a Newton.lib
Is Newton.lib in IPhysics.lib because i cant find a Newton.lib
chronologicaldot
Competition winner
Posts: 687
Joined: Mon Sep 10, 2012 8:51 am

Re: Easy Install for Physics Engine

Post by chronologicaldot »

1) Yeah, I meant library files. I thought that was implied. Sorry. XD

2) IPhysics is just a wrapper for Newton Physics to bring it into irrlicht. You'll need to download Newton Physics.
http://newtondynamics.com/forum/downloads.php

For other questions, you might have a look at this old thread that deals with IPhysics and Newton:
http://irrlicht.sourceforge.net/forum/v ... &start=330
Tedi
Posts: 18
Joined: Sun Nov 27, 2011 3:42 pm
Contact:

Re: Easy Install for Physics Engine

Post by Tedi »

Look my project. I used Havok. http://tedigame.blogspot.gr/
Post Reply