The Newton engine is now Open source with a zlib license.

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Re: The Newton engine is now Open source with a zlib license

Postby martinsm » Fri Mar 11, 2011 4:20 pm

Those were single builds. But yeah, I also see the crash. I examined more and found out that Newton together with GCC -O3 optimization doesn't get well along.. So I lowered optimization flags a bit, and now everything works. At least what I've tested - tutorial samples provided with Newton.

Try these dll's. First the normal one, and if it doesn't work so well, then try one in alternative directory: http://www.box.net/shared/h4qvhiefix
martinsm
 
Posts: 86
Joined: Mon Dec 19, 2005 3:15 pm
Location: Latvia

Re: The Newton engine is now Open source with a zlib license

Postby JernejL » Sat Mar 12, 2011 2:49 am

i get exact same issue with these two dlls, i can send you test build of the game so you can experiment if you need to debug it.
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1578
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: The Newton engine is now Open source with a zlib license

Postby thedmd » Sat Mar 12, 2011 8:59 am

Delphi you may try this one:
http://77.55.66.239/thedmd/files/newton-2.31.7z
This is single precision build I made recently.
"God started from scratch too"
User avatar
thedmd
 
Posts: 149
Joined: Fri Jun 26, 2009 11:52 pm

Re: The Newton engine is now Open source with a zlib license

Postby JernejL » Sat Mar 12, 2011 10:46 am

i get same problem - crash in NewtonSetWorldSize..
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1578
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: The Newton engine is now Open source with a zlib license

Postby Julio Jerez » Sat Mar 12, 2011 3:49 pm

Guys here is a previews of the new feacture comming in line now


This is all checked in, in the latest SVN, I still have a few problems here and there but nothing really big and I think I can have it prefected some time this weekend.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: The Newton engine is now Open source with a zlib license

Postby thedmd » Mon Mar 14, 2011 3:43 am

Julio, what switches did you used to compile Newton with GCC on Widnows? I'm trying to build drop-in replacement for VS build using latest MinGW, but without much luck.
"God started from scratch too"
User avatar
thedmd
 
Posts: 149
Joined: Fri Jun 26, 2009 11:52 pm

Re: The Newton engine is now Open source with a zlib license

Postby JernejL » Mon Mar 14, 2011 4:42 am

To my knowledge Julio never got GCC to build newton on windows properly so you are the first to actually generate the .dll - but yours still crashes.
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1578
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: The Newton engine is now Open source with a zlib license

Postby martinsm » Mon Mar 14, 2011 6:02 am

Delfi wrote:i get exact same issue with these two dlls, i can send you test build of the game so you can experiment if you need to debug it.

That's really strange. I tested this dll + Newton tutorial demos on three different PC's (Phenom II, Core i3, Core i5), and it was working fine. On what CPU are you running it?
If you can, you can send your test build, but I have strong feeling it will run fine on my PC :)
martinsm
 
Posts: 86
Joined: Mon Dec 19, 2005 3:15 pm
Location: Latvia

Re: The Newton engine is now Open source with a zlib license

Postby thedmd » Mon Mar 14, 2011 8:46 am

I hate GDB, but it looks like I will need to use this (in)famous tool.

I had problems with SSE code on GCC, so I forced single precision, after replacing newton build made by VS to one made by GCC I got nice fresh crash. That may be due to run-time libraries. OK. I need to compile everything is GCC, then I will be able to debug.

I will come back to this problem in my spare time.
"God started from scratch too"
User avatar
thedmd
 
Posts: 149
Joined: Fri Jun 26, 2009 11:52 pm

Re: The Newton engine is now Open source with a zlib license

Postby JernejL » Mon Mar 14, 2011 11:52 am

martinsm wrote:
Delfi wrote:i get exact same issue with these two dlls, i can send you test build of the game so you can experiment if you need to debug it.

That's really strange. I tested this dll + Newton tutorial demos on three different PC's (Phenom II, Core i3, Core i5), and it was working fine. On what CPU are you running it?
If you can, you can send your test build, but I have strong feeling it will run fine on my PC :)


It would crash in newtonsetworldsize. i was running it on a core 2 quad q8400 x4 cores or something like that (i don't know exact model).

Send me the latest single build then.
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1578
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: The Newton engine is now Open source with a zlib license

Postby martinsm » Tue Mar 15, 2011 7:21 am

You can take it from my last link above: http://www.box.net/shared/h4qvhiefix
I've changed nothing there - it runs fine with me.
martinsm
 
Posts: 86
Joined: Mon Dec 19, 2005 3:15 pm
Location: Latvia

Re: The Newton engine is now Open source with a zlib license

Postby JernejL » Tue Mar 15, 2011 3:05 pm

This time i got it to run and figured out what breaks it:

Before newtoncreate do this:

NewtonSetPlatformArchitecture(nworld, 3); // use any extensions
NewtonSetSolverModel(nworld, 10); // prefer performance

Then it'll crash in NewtonSetWorldSize() call.
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1578
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: The Newton engine is now Open source with a zlib license

Postby martinsm » Wed Mar 16, 2011 1:45 pm

How can you call it before NewtonCreate? Those two functions require NewtonWorld pointer as first argument. If you don't create NewtonWorld, what are you passing to them?
martinsm
 
Posts: 86
Joined: Mon Dec 19, 2005 3:15 pm
Location: Latvia

Re: The Newton engine is now Open source with a zlib license

Postby JernejL » Wed Mar 16, 2011 4:24 pm

Sorry: a typo, ofcourse i meant - AFTER :S
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1578
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: The Newton engine is now Open source with a zlib license

Postby PJani » Tue Mar 22, 2011 5:51 am

Where is contact multi sampling on road map?
| i7-5930k@4.2Ghz, EVGA 980Ti FTW, 32GB RAM@3000 |
| Dell XPS 13 9370, i7-8550U, 16GB RAM |
| Ogre 1.7.4 | VC++ 9 | custom OgreNewt, Newton 300 |
| C/C++, C# |
User avatar
PJani
 
Posts: 448
Joined: Mon Feb 02, 2009 7:18 pm
Location: Slovenia

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 16 guests