How to load the Physics data on the server side

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
cloudxunuo
Gnoblar
Posts: 8
Joined: Sun Jan 05, 2014 4:30 am

How to load the Physics data on the server side

Post by cloudxunuo »

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 :D
User avatar
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

Post by tod »

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.
User avatar
c6burns
Beholder
Posts: 1512
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines
x 138

Re: How to load the Physics data on the server side

Post by c6burns »

cloudxunuo
Gnoblar
Posts: 8
Joined: Sun Jan 05, 2014 4:30 am

Re: How to load the Physics data on the server side

Post by cloudxunuo »

thanks very much, that is what i need exactly.
Post Reply