Jump to content

  • Log In with Google      Sign In   
  • Create Account

uwi2k2

Member Since 13 Aug 2011
Offline Last Active Dec 26 2014 02:25 AM

#5043758 ideas about collission detect in game level

Posted by uwi2k2 on 16 March 2013 - 02:31 PM

hi,

i just wanne know how you would solve the collision detection in a game like counterstrike ? thinkmabout the buildings eg. so there are walls with doors - caves , and so on....
so i had 2 ideas beside coll detect with every triangle.

one is to have a invisible geometry that encapsulates every space you cant access ( walls, ... ) and use isInside() function to check every frame ( in octree of course )

second is to draw boxes above every solid element using its normals and test for pointInside() this triangle boxes - again of course with octree preselect.

i have these ideas but bevor i start implement it , imwanne hear how you do it... maybe i just did not thought of a more simple idea..

thanx
uwi2k2


#4965429 Draw objects in real time

Posted by uwi2k2 on 02 August 2012 - 01:26 AM

hi,

first of all make sure you are not reciving data by TCP/IP... as this may be to slow for real time Game.
Use UDP instead.
But the basic setting is right. the Network Thread should write to a Object or what ever is your data container.
And than inside your glutDisplayFunc() you just draw as you would always do ...
You may track how many times per second you update the data from network .... as this needs to be close to your framerate .

cu
uwi2k2


PARTNERS