Page 1 of 1

Quick noob question

Posted: Mon Sep 07, 2009 3:24 am
by Lollerskates
I was reading a forum debate about whose method to implement head bobbing into the camera movement was better, and each gave examples of code that I'd like to try out. But I don't know how to go about recompiling the source code for Irrlicht after editing it, and google's not turning up much. Can somebody point me in the right direction or give me a quick explanation?

Posted: Mon Sep 07, 2009 7:32 am
by FuzzYspo0N
why would you need to rebuild the source for the head bobbing? You can make the camera move (even the FPS camera) without rebuilding it. Ie : setPosition() and updateAbsolutePosition() kinda stuff.

To rebuild the engine, open the project file in a good ide (there are a few supported) and click build. Thats all it should take (unless you have no dirextXSDK and it wants one, etc).

Look in irrlichtCompileConfig.h

Posted: Mon Sep 07, 2009 6:28 pm
by Lollerskates
I opened the project "Irrlicht 9.0" in Visual C++, tried rebuilding it, and got a bunch of errors about some headers like:

"Cannot open include file: 'd3dx9shader.h': No such file or directory"

Is this the directx problem you were talking about?

Oh, and I don't seem to have a file called irrlichtCompileConfig.h, where can i find it?

Posted: Mon Sep 07, 2009 6:34 pm
by Sylence
The file is called IrrCompileConfig.h and is located in the include folder.

The DirectX errors are because you don't have the DirectX SDK installed. You can download it from the Microsoft Website.

Or, like FuzzYspo0N said, you can edit the IrrCompileConfig.h to disable support for DirectX. Then you don't need the SDK.