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..
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 .