Newton .NET wrapper

Share with us how are you using the powerrrr of the force

Moderator: Alain

Postby jj, » Mon Nov 21, 2005 9:33 pm

well, now I guess it doesn't work :?

why Newton.Create returns int not NewtonWorld etc.???
jj,
 
Posts: 8
Joined: Mon Nov 21, 2005 9:10 pm

Postby jj, » Tue Nov 22, 2005 6:33 am

I’ve downloaded project from csv and done everything like in the Release Notes.txt but I got linkin errors. I use VS2003

Code: Select all
Compiling...
NewtonWrapper.cpp
d:\!CoDiNg\Newton\NewtonWrapper\NewtonWrapper\NW_force_and_torque_callback.h(9) : warning C4303: C-style cast from 'NewtonWrapper::Newton::ApplyForceAndTorque __gc *' to 'System::Object __gc *' is deprecated, use static_cast, __try_cast or dynamic_cast
d:\!CoDiNg\Newton\NewtonWrapper\NewtonWrapper\NW_transform_callback.h(9) : warning C4303: C-style cast from 'NewtonWrapper::Newton::SetTransform __gc *' to 'System::Object __gc *' is deprecated, use static_cast, __try_cast or dynamic_cast
d:\!CoDiNg\Newton\NewtonWrapper\NewtonWrapper\NW_materials.h(67) : warning C4303: C-style cast from 'NewtonWrapper::Newton::ContactBegin __gc *' to 'System::Object __gc *' is deprecated, use static_cast, __try_cast or dynamic_cast
d:\!CoDiNg\Newton\NewtonWrapper\NewtonWrapper\NW_materials.h(72) : warning C4303: C-style cast from 'NewtonWrapper::Newton::ContactProcess __gc *' to 'System::Object __gc *' is deprecated, use static_cast, __try_cast or dynamic_cast
d:\!CoDiNg\Newton\NewtonWrapper\NewtonWrapper\NW_materials.h(77) : warning C4303: C-style cast from 'NewtonWrapper::Newton::ContactEnd __gc *' to 'System::Object __gc *' is deprecated, use static_cast, __try_cast or dynamic_cast
d:\!CoDiNg\Newton\NewtonWrapper\NewtonWrapper\NW_user_mesh_collision.h(9) : warning C4303: C-style cast from 'NewtonWrapper::Newton::UserMeshCollisionCollideCallback __gc *' to 'System::Object __gc *' is deprecated, use static_cast, __try_cast or dynamic_cast
d:\!CoDiNg\Newton\NewtonWrapper\NewtonWrapper\NW_user_mesh_collision.h(38) : warning C4303: C-style cast from 'NewtonWrapper::Newton::UserMeshCollisionRayHitCallback __gc *' to 'System::Object __gc *' is deprecated, use static_cast, __try_cast or dynamic_cast
Linking...
NewtonWrapper.obj : error LNK2001: unresolved external symbol "void * __cdecl NewtonMaterialGetContactUserData(struct NewtonMaterial const *)" (?NewtonMaterialGetContactUserData@@$$J0YAPAXPBUNewtonMaterial@@@Z)
NewtonWrapper.obj : error LNK2001: unresolved external symbol "float __cdecl NewtonBodyRayIntersect(struct NewtonBody const *,float const *,float const *,float *)" (?NewtonBodyRayIntersect@@$$J0YAMPBUNewtonBody@@PBM1PAM@Z)
D:\!CoDiNg\Newton\NewtonWrapper\NewtonWrapper\Debug\NewtonWrapper.dll : fatal error LNK1120: 2 unresolved externals

Build log was saved at "file://d:\!CoDiNg\Newton\NewtonWrapper\NewtonWrapper\Debug\BuildLog.htm"
NewtonWrapper - 3 error(s), 7 warning(s)
jj,
 
Posts: 8
Joined: Mon Nov 21, 2005 9:10 pm

Postby Chromatic » Tue Nov 22, 2005 7:22 pm

Great work with the wrapper. I am curious - has anyone tried recompiling Newton with the /clr flag in .NET to create a managed DLL?
Last edited by Chromatic on Wed Nov 23, 2005 7:22 am, edited 1 time in total.
Chromatic
 
Posts: 1
Joined: Tue Nov 22, 2005 7:18 pm

Postby jj, » Tue Nov 22, 2005 9:09 pm

OK! Now I'm sure it works! I've remade tutorial 01 example and it rocks!
http://max.iem.pw.edu.pl:9666/newton/NewtonTest01.zip
Screenshot:
Image


I've also made a NToolsDot.dll with Newton tools:
http://max.iem.pw.edu.pl:9666/newton/Newton_tools/
- dVector 100%
- dMatrix 40%
- BoxPrimitive 10% (Rendering)
- dSceneNode 5%

Known bugs in Newton .NET wrapper:
- Newton.BodySetMatrix - if matrix array length is different then 16 it halts a program (w/o any message/error)
- Newton.BodySetOmega \
- Newton.BodySetVelocity - if matrix array length is different then 3 it halts a program (w/o any message/error)


PS. I'll try to help improving Newton .NET wrapper 8)
jj,
 
Posts: 8
Joined: Mon Nov 21, 2005 9:10 pm

Postby Quimbly » Wed Nov 23, 2005 12:11 pm

jj, wrote:OK! Now I'm sure it works! I've remade tutorial 01 example and it rocks!
http://max.iem.pw.edu.pl:9666/newton/NewtonTest01.zip
Screenshot:
Image


I've also made a NToolsDot.dll with Newton tools:
http://max.iem.pw.edu.pl:9666/newton/Newton_tools/


Your links are broken, dude.
Quimbly
 
Posts: 35
Joined: Wed Nov 03, 2004 6:45 pm

Postby jj, » Wed Nov 23, 2005 12:25 pm

works fine for me!

However I've copied it to an other place for U 8)

trynow:
http://max.iem.pw.edu.pl/~malinowj/newton/
jj,
 
Posts: 8
Joined: Mon Nov 21, 2005 9:10 pm

Postby Quimbly » Wed Nov 23, 2005 5:29 pm

jj, wrote:works fine for me!

However I've copied it to an other place for U 8)

trynow:
http://max.iem.pw.edu.pl/~malinowj/newton/


Probably a blocked a port is all... Anyway, thanks, those links work.
Quimbly
 
Posts: 35
Joined: Wed Nov 03, 2004 6:45 pm

Postby jj, » Wed Nov 23, 2005 8:52 pm

I've remade tutorial02! And it rocks even better then 01 :]
http://max.iem.pw.edu.pl/~malinowj/newton/
Image

the source is q&d (quick and dirty) so I'll give it when it's more stable
jj,
 
Posts: 8
Joined: Mon Nov 21, 2005 9:10 pm

Postby jj, » Wed Nov 23, 2005 9:45 pm

An idea:

I could make a forum for Newton dotNet which could be linked with http://sourceforge.net/projects/newton-dotnet/.
Obviously I'll set admin to _vlad and unProfessional

What do you think?
jj,
 
Posts: 8
Joined: Mon Nov 21, 2005 9:10 pm

Postby jj, » Wed Nov 23, 2005 11:16 pm

I just couldn't wait and I've made this forum :]

http://newton.malinow.org/
jj,
 
Posts: 8
Joined: Mon Nov 21, 2005 9:10 pm

.Net Wrapper for version 1.5

Postby Flylio » Fri Jan 13, 2006 11:12 pm

Hello,

i've just finished a C# wrapper for Newton 1.5, for all methods, delegates, structures...

It's using DllImport, and .......... C#. lol

If it could help you, you can download it here:

http://perso.wanadoo.fr/flylio/Programm ... namics.zip

@PLUS2006!

Flylio.
Flylio
 
Posts: 2
Joined: Fri Oct 15, 2004 5:57 pm

Re: .Net Wrapper for version 1.5

Postby Quimbly » Mon Jan 16, 2006 1:04 pm

Flylio wrote:Hello,

i've just finished a C# wrapper for Newton 1.5, for all methods, delegates, structures...

It's using DllImport, and .......... C#. lol

If it could help you, you can download it here:

http://perso.wanadoo.fr/flylio/Programm ... namics.zip

@PLUS2006!

Flylio.


This link doesn't work..
Can you fix it?
Quimbly
 
Posts: 35
Joined: Wed Nov 03, 2004 6:45 pm

Postby Sury » Mon Jan 16, 2006 1:42 pm

User avatar
Sury
 
Posts: 193
Joined: Sat Aug 14, 2004 5:32 am
Location: Bulgaria

Postby Utgarda » Mon Feb 27, 2006 11:50 am

Why didn't I look through this forum earlier? It's been a week already since I started writing a .NET wrapper for Newton ! I learned lots of stuff on Microsoft's C++ extentions that I hate so much.. Gonna try tonight what I've found here =]
Utgarda
 
Posts: 1
Joined: Mon Feb 27, 2006 11:42 am

Sorry, i've change the file.

Postby Flylio » Sun May 07, 2006 8:06 pm

Hello,

Now the wrapper is here, with some samples:

http://perso.wanadoo.fr/flylio/Programmation/PROGRAMMATION_DIRECTX.rar

I've posted a little explaintion here:

http://newtondynamics.com/forum/viewtopic.php?t=2111&postdays=0&postorder=asc&start=15

@PLUS2006!

Flylio.
Flylio
 
Posts: 2
Joined: Fri Oct 15, 2004 5:57 pm

PreviousNext

Return to User Gallery

Who is online

Users browsing this forum: No registered users and 14 guests

cron