View unanswered posts | View active topics It is currently Sat Sep 11, 2010 2:03 am



Reply to topic  [ 6 posts ] 
Scythe Mod Version - Support Bullet Physics 
Author Message

Joined: Tue Nov 24, 2009 5:32 am
Posts: 6
Post Scythe Mod Version - Support Bullet Physics
binary donwload:
http://cid-89dea03610c07a34.skydrive.live.com/self.aspx/.Public/scythe/ReleaseDist-20091217-1648.7z


source:
http://cid-89dea03610c07a34.skydrive.live.com/self.aspx/.Public/scythe/scythe-20091218-0055.7z

bullet softbody:
http://www.youtube.com/watch?v=eKb1zxZbs7g&feature=player_embedded
http://www.youtube.com/watch?v=qm3QlxQg3_Y&feature=player_embedded

New feature is stored with new xml/phx file format only.

If you get error, try install this.

vs2008sp1 c++ runtime dll:
http://cid-89dea03610c07a34.skydrive.live.com/self.aspx/.Public/common/vc9sp1dll.zip


.net framework 2.0:
http://www.microsoft.com/downloads/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en

nvidia physx system software 2.8.1:
http://www.nvidia.com/object/physx_9.09.1112.html


* require to build

- vs2008 c++/c#

- http://www.boost.org/, use boost serialization (1.40)
- http://www.ogre3d.org/, 1.7 last svn version
- http://www.bulletphysics.com/, last svn version

- http://developer.nvidia.com/object/physx_downloads.html 2.8.1 (optional)
- http://newtondynamics.com, old 1.53 (optoinal)


* build

0. install required libraries
1. open scythe/scythe/scythe.sln
2. setup library directory
3. build on release or releasedist


Last edited by harkon on Wed Dec 30, 2009 3:21 pm, edited 1 time in total.



Fri Dec 18, 2009 1:49 pm
Profile
Site Admin
User avatar

Joined: Thu Jul 03, 2008 12:04 pm
Posts: 372
Location: UK
Post Re: Scythe Mod Version - Support Bullet Physics
Wow! You the man!

It crashes for me though, may be the net framework because I tried to install that and it failed, but that should mean I have anewer version.

I'd like to make this the main version on sourceforge, no sense in wasting the improvements.

So you have changed the file format? Is it still compatible with the old format?


Sat Dec 19, 2009 4:11 pm
Profile WWW

Joined: Tue Nov 24, 2009 5:32 am
Posts: 6
Post Re: Scythe Mod Version - Support Bullet Physics
Chris_The_Great wrote:
Wow! You the man!
It crashes for me though, may be the net framework because I tried to install that and it failed, but that should mean I have anewer version.


Thanks.

.net framework can't install, if it is already installed.
if previous 1.15 is work, you don't need install .net framework 2.0.

Try install vc++ runtime & run.

Quote:
I'd like to make this the main version on sourceforge, no sense in wasting the improvements.


I'm glad. But, Source code structure was changed many & new feature is work only with bullet physics. You need review before commit.


Quote:
So you have changed the file format? Is it still compatible with the old format?


Yes, Old .phy format can read/write, but new features(softbody mesh info/flags, collision mask, etc) should not saved by old format.
Saved old format can read previous Scythe 1.15. It will be used data convertnig & test.

New format(.xml, .phx) can easly read/write. You don't need link any library from scythe, but only one header file physLoadSave.h. See below code.
if you don't like boost library, you can write own xml parser. it is not difficult.

Code:
//example load code

#include "physLoadSave.h"

...

bool loadPhysicsEntity(const String &file, scythe::data::PhysicsEntity &physicsEntity)
{
   using namespace boost;
   using namespace scythe;
   using namespace scythe::data;

   try {

      bool bin = !strEnd(file, ".xml");

      if (bin) {
         std::ifstream ifs(file.c_str(), std::ios::binary);
         if (ifs.bad()) return false;

         archive::binary_iarchive ia(ifs);

         ia >> BOOST_SERIALIZATION_NVP(physicsEntity);


      } else {

         DataStreamPtr stream = openDataStream(file, "scythe");
         if (stream.isNull())
            throw std::exception("file can't found.");

         std::stringstream ifs(stream->getAsString(), std::ios_base::in);

         //std::wifstream ifs(file.c_str());
         //if (ifs.bad()) return false;

         archive::xml_iarchive ia(ifs);

         ia >> BOOST_SERIALIZATION_NVP(physicsEntity);

      }

      return true;

   } catch (std::exception &e) {
      LOG("[STAGE] Error - load physics file: '%s' %s", file.c_str(), e.what());
      return false;
   }
}



Sat Dec 19, 2009 11:02 pm
Profile

Joined: Tue Nov 24, 2009 5:32 am
Posts: 6
Post Re: Scythe Mod Version - Support Bullet Physics
If program is crash, try install this.
Maybe my system vc9 dll is different. someone is report that.

http://cid-89dea03610c07a34.skydrive.live.com/self.aspx/.Public/common/vc9sp1dll.zip


Wed Dec 30, 2009 1:11 pm
Profile
Site Admin
User avatar

Joined: Thu Jul 03, 2008 12:04 pm
Posts: 372
Location: UK
Post Re: Scythe Mod Version - Support Bullet Physics
No, it still crashes for me strangely


Thu Dec 31, 2009 12:58 am
Profile WWW

Joined: Tue Nov 24, 2009 5:32 am
Posts: 6
Post Re: Scythe Mod Version - Support Bullet Physics
Binary was build on Microsoft DirectX SDK (August 2009).
so, This program is use the d3dx9_42.dll.

Maybe, that is problem. Check out your directx runtime version.


Sun Jan 10, 2010 12:51 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.