implementing newton

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

implementing newton

Postby yourself » Sat Nov 29, 2008 8:21 am


I want to implement the newton sdk in my own 3d game engine (using DirectX)
I'm using 2008 and use C++ .
now my question is : what files do I need to include in the project to get started ?
I add to the VS directories this :
*inlcudes : the sdk folder
*libraries : sdk/dll/
and then wrote this :
Code: Select all
#include "Newton.h
#pragma comment(lib, "Newton.lib")

it's compiling, but when i execute it , it says it can't find newton.dll and the app gets closed...

I also can't built and run the tutorials , always I gets an linker error saying 'GLAUX.LIB can't be opened...

Can somebody help me ?

Posts: 1
Joined: Sat Nov 29, 2008 7:49 am

Re: implementing newton

Postby agi_shi » Sat Nov 29, 2008 12:52 pm

Along with the lib you'll find a Newton.dll, you need to put that alongside your .exe.

As for compiling the demos, you'll need to link to glaux.lib, apparently.
Posts: 263
Joined: Fri Aug 17, 2007 6:54 pm

Re: implementing newton

Postby armokal » Sat Nov 29, 2008 11:53 pm

Actually, the SDK isn't using glaux even if it tries to link with glaux.lib
You need to go into the project properties and remove it from the list of lib files.
In OpenGLUtil.cpp
there is

// Loads the texture from the specified file and stores it in iTexture. Note
// that we're using the GLAUX library here, which is generally discouraged,
// but in this case spares us having to write a bitmap loading routine.
void LoadTexture(const char *filename, GLuint &texture)

but again, IT DOESN'T USE GLAUX. They are using a custom TGA loader.
Posts: 22
Joined: Fri Oct 27, 2006 10:03 pm
Location: Canada

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest