Box2D Forums

It is currently Thu May 23, 2013 11:02 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: The 2.0 Patch Thread
PostPosted: Tue Mar 11, 2008 11:42 pm 
Offline
Site Admin

Joined: Thu Sep 06, 2007 12:34 am
Posts: 2931
Frank,

That's a clever idea. It works well for vertical stacks. The default pyramid test doesn't do as well. Perhaps you need to extend deferral to the position correction.

Ideally we would have a block solver that would solve the two contact points simultaneously. This would provide a symmetric result with no net torque and not be too strong. I scheduled a block solver awhile ago for 2.4.

Someone (Dirk) already implement a block solver in Box2D_Lite. If someone would like to implement this in 2.0, send me PM for the code.


Top
 Profile  
 
 Post subject: Re: The 2.0 Patch Thread
PostPosted: Sun Mar 16, 2008 2:09 am 
Offline

Joined: Wed Jan 02, 2008 3:19 am
Posts: 67
I have the next installment of the fixed point implementation patch to include in the SVN code. The patch applies to Rev 132. Some of the fixes between 131 and 132 really helped the fixed point stuff!

At this point all of the joints work in the testbed. In fact, all of the demos work and react in pretty much the same way in the testbed as in the floating point code except that the pyramid takes about 30 seconds to settle versus a couple of seconds for the floating point and the shape editing demo still has an overflow due to the large mass of the shape. Pretty much all other overflows are gone. A few patches (provided) are required in the Testbed to handle fixed point stuff correctly.

I also fixed/updated the Makefiles.

At this point I am pretty happy with the performance, at least on my Linux box and my DS.


Attachments:
box2d_fixed_r132.patch.zip [6.68 KiB]
Downloaded 97 times
Top
 Profile  
 
 Post subject: Re: The 2.0 Patch Thread
PostPosted: Fri Apr 04, 2008 6:07 am 
Offline

Joined: Fri Apr 04, 2008 4:21 am
Posts: 4
Building shared libraries and installing headers on linux. I use the attached patch to make Box2D trunk build and install to /usr/local on a debian machine.

The patch is against revision 139

A more complete autotooled build environment as well as installing a pkg-config file would probably be a better way to make it easy for distributions to package and include box2d. But this patch works for development prototyping purposes for now.


Attachments:
File comment: patch to install headers and shared object to /usr/local on linux.
box2d-build-and-install-shared.patch [2.57 KiB]
Downloaded 87 times
Top
 Profile  
 
PostPosted: Thu Apr 17, 2008 4:26 am 
Offline

Joined: Sat Feb 09, 2008 4:00 pm
Posts: 75
Somebody knows what compiler options to set in the actual box2d <Release> configuration in Microsoft Visual C++ 2005 ?
Code:
LIBCMT.lib(stdexcpt.obj) : error LNK2005: "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ) already defined in TestEntries.obj


Thx, nimodo


Top
 Profile  
 
 Post subject: Re: The 2.0 Patch Thread
PostPosted: Thu Apr 17, 2008 10:04 am 
Offline
Site Admin

Joined: Thu Sep 06, 2007 12:34 am
Posts: 2931
The 2.0.1 project file should have C++ exceptions disabled.


Top
 Profile  
 
 Post subject: Re: The 2.0 Patch Thread
PostPosted: Thu Apr 17, 2008 12:39 pm 
Offline

Joined: Sat Feb 09, 2008 4:00 pm
Posts: 75
Yes, this is correct, i checked twice, in all 5 projects, Enable C++ exceptions are set to no.
(I did not touch anything in the 2.0.1 download)
So this error must come from another external used MS library ? Maybe a graphics lib (opengl32,...) because HelloWorld links, and TestBed shows above error.
Is the problem only on my computer, did i miss maybe a compiler update ? Did others test the TestBed Release config ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2, 3

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group