i am trying to develop a multi-player game.
i use Ogre for rendering stuff and Bullet for physics stuff. in my client, .secene and .mesh file creates the terrain. on the client side, i can add some code to the DotSceneLoader.hpp and create physics object while it is processing methods such as processEntity().
but i don't know how to get the physics data on my server side, because there is no need to load rendering stuff. the question is, when i only have the .secene and .mesh file, how can i create my physics object on the server side?
Please help meeeee
thanks everybody
Cloud
How to load the Physics data on the server side
-
- Gnoblar
- Posts: 8
- Joined: Sun Jan 05, 2014 4:30 am
- tod
- Troll
- Posts: 1394
- Joined: Wed Aug 02, 2006 9:41 am
- Location: Bucharest
- x 94
- Contact:
Re: How to load the Physics data on the server side
You could serialize the collisions once you load the mesh. Hopefully bullet support this. Then, once the game is done, you make a little program to load meshes and create collisions from them, and then save the collisions to files.
- c6burns
- Beholder
- Posts: 1512
- Joined: Fri Feb 22, 2013 4:44 am
- Location: Deep behind enemy lines
- x 138
-
- Gnoblar
- Posts: 8
- Joined: Sun Jan 05, 2014 4:30 am
Re: How to load the Physics data on the server side
thanks very much, that is what i need exactly.c6burns wrote:http://bulletphysics.org/mediawiki-1.5. ... ialization