About Store Forum Documentation Contact



Post Reply 
Server Side collision using physx doable?
Author Message
alkirah Offline
Member

Post: #1
Server Side collision using physx doable?
Hi, I'd like to know if anyone did this.

World will be somewhat big (10km x 10km).

a 2km x 1km world take ~500mb ram when fully textured + meshed, etc. (Using WORLD_FULL flag to load entire world)
PHP Code:
// create the world from tutorial : 03 - World with Character.cpp
   
Game::World.init(Game::WORLD_FULL)
              .
setObjType(StaticsOBJ_STATIC)
              .
setObjType(PlayersOBJ_PLAYER// please note that here we'll use 'Players' memory container for 'OBJ_PLAYER' objects
              
.setObjType(Items  OBJ_ITEM  )
              .New(
"world/world.world"); 

Is there a way to tell the engine on the server not to load any mesh and no textures but to load only terrain (heightmap untextured) + .phys files from the world, then check every player (that are moving or !onGround) for collision/falls during update()?

Any info here would be great to have smile
(This post was last modified: 09-09-2011 08:13 PM by alkirah.)
09-09-2011 08:11 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Server Side collision using physx doable?
you can manually delete from memory the area mesh
09-10-2011 11:23 AM
Find all posts by this user Quote this message in a reply
Post Reply