[padawan]getting started... (solved)

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

[padawan]getting started... (solved)

Postby noals » Tue Sep 11, 2012 7:22 pm

hi,

basicaly, i encounter another error adding this code from another tuto.
Code: Select all
//set up default material for newton
   int nDefaultMaterialID=NewtonMaterialGetDefaultGroupID(nWorld);
   NewtonMaterialSetDefaultFriction   (nWorld,nDefaultMaterialID,nDefaultMaterialID,0.8f,0.4f);
   NewtonMaterialSetDefaultElasticity   (nWorld,nDefaultMaterialID,nDefaultMaterialID,0.3f);
   NewtonMaterialSetDefaultSoftness   (nWorld,nDefaultMaterialID,nDefaultMaterialID,0.05f);
   NewtonMaterialSetCollisionCallback   (nWorld,nDefaultMaterialID,nDefaultMaterialID,NULL,NULL,NULL);

adding that give me this result when lauching the .exe
http://hpics.li/3524107
in english it mean something like "the procedure entry point GetThreadID isnt found in the DLL KERNEL32.dll"
im using windows XP pro SP3 and i try to use newton core 300.

and i would like to know if there are some little tuto about using core 300.
i will tell you what im doing so i think you can give me better advices or direction.

here is my starting point :
http://www.fileden.com/files/2006/6/21/ ... _start.zip
its just a terrain and a little ninja, you control the camera with the mouse and move the ninja with ZSQD (or WSAD since im french), made with irrlicht 1.7.3. the windows caption give fps and a little debug window give the number of triangle of the ninja and the terrrain. (the main.cpp is included in the zip)
what i would like to do now is some animated and textured ragdoll to get collision response directly from the ragdoll poly and try to use those collision response in a client-server executable using raknet. (having my terrain as ground of course)

i found this little engine on the net that i found very interesting
http://www.rowlhouse.co.uk/jiggle/
but im too much of beginner to implement it in my project so i try to use newton.
newton seem cool to me and from what i read on the forum, the dev is working on puting IK in the engine and it interested me as well.

my problem is that each time i try a tuto, it never use the same way to do things so i kinda get confused from tuto to tuto and dont understand anything at all in the end...

could someone tell me the requierement in newton for what i want to do ?
i mean, im using visual c++ express 2010, all core 300 .lib seem to have compiled without problems wiht the help of included project files. i understood that NewtonWorld* nWorld=NewtonCreate(); initialize my pointer for the newton environment but after this step, i never got anything to work and my last try is actualy the beginning of the post...

so i kinda give up on all those tutos i basicaly would like to know the fonction i will need and the stuff that are essential to have newton working. i think that from that i could understand fonctions dependancies with the wiki API or ask help here as well if i dont understand something anyway...

can someone help me ?
Last edited by noals on Mon Sep 17, 2012 3:41 pm, edited 1 time in total.
noals
 
Posts: 32
Joined: Mon Sep 03, 2012 7:59 am

Re: [padawan]getting started...

Postby Sweenie » Wed Sep 12, 2012 1:50 am

adding that give me this result when lauching the .exe
http://hpics.li/3524107
in english it mean something like "the procedure entry point GetThreadID isnt found in the DLL KERNEL32.dll"
im using windows XP pro SP3 and i try to use newton core 300.


Had that problem before but should be fixed a while ago. Make sure you checkout the code from SVN instead of downloading the archive from the downloads page.
Sweenie
 
Posts: 503
Joined: Mon Jan 24, 2005 7:59 am
Location: Sweden

Re: [padawan]getting started...

Postby noals » Wed Sep 12, 2012 10:14 am

this one right ?
http://newton-dynamics.googlecode.com/s ... brary_300/

thx i will try to compile that instead.
noals
 
Posts: 32
Joined: Mon Sep 03, 2012 7:59 am

Re: [padawan]getting started...

Postby noals » Wed Sep 12, 2012 11:36 am

it seem there is no pthread.h where i tryed to download the updated code so i cant compile.
+ i got problems with windows installer, usualy working i think but since tortoise or subversin for windows .msi wasnt working, i tryed to update it but without success so i just download the source from the above link with "HTTrack Website Copier".

could you tell me where is this "pthread.h" file ?
noals
 
Posts: 32
Joined: Mon Sep 03, 2012 7:59 am

Re: [padawan]getting started...

Postby noals » Wed Sep 12, 2012 12:57 pm

found that doing a search in the forum but that dont olve the problem
Oh I see, Netwon core 300 uses pThread, Unfortunally pthread is impelmnet with inline macros.
I have no figuire out how to hide the PTW32_STATIC_LIB when using it as a static libraryy.
in your project you need to do in visual studio project explore select the project library that include prthread source code and do this:

options->preprocessor->Preprocessor definitions
and add these two defines

PTW32_BUILD
PTW32_STATIC_LIB

PTW32_STATIC_LIB was already set, i just added PTW32_BUILD, same result anyway.


i will try with that :
http://ftp.cs.pu.edu.tw/Linux/sourcewar ... /pthread.h

well dunno how to add it, same result adding it as an include in directories.

http://ftp.cs.pu.edu.tw/Linux/sourcewar ... lease/lib/
should i try those ? which one ?


edit got the link on a forum, it is outdated i think checking the site but the question is same kinda :
which one ?
http://ftp.cs.pu.edu.tw/Linux/sourcewar ... ads-win32/
noals
 
Posts: 32
Joined: Mon Sep 03, 2012 7:59 am

Re: [padawan]getting started...

Postby noals » Mon Sep 17, 2012 3:41 pm

Julio uploaded a pack core 300 alpha 3.01 with working and compiled .lib and .dll (in the vs2008 dir) so it kinda fixed the problem for me.
i will open others topics for more specifics questions.
noals
 
Posts: 32
Joined: Mon Sep 03, 2012 7:59 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

cron