Jump to content
  • Advertisement
Sign in to follow this  
luasitdown

collision detection and phyics and other update

This topic is 4828 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

out of view,you can not render mesh.but you must detect every object in scene. but if object is far from other,It seem no relation between them. so what method provided to speed collision detection and phyics etc? Every frame update all object in scene is not good way especially in big scene.

Share this post


Link to post
Share on other sites
Advertisement
It sounds like you could benefit from 'spatial partitioning'. There are different types of spatital partitioning algorithms and they are often best suited to slightly different tasks so pick one that suits best.

Some common methods are:
Quad-trees
Oc-trees
BSP
KDtrees
ABTs

I suggest you research some/all of these using [google] and pick the one that best suits your application.
BSPs are getting a bit old but well documented,whilst ABTs are (in comparison) brand new but much less help is availble (in fact 90% of all infos on ABTs are here at GDnet!)
Good general purpose methods are Quad-trees(good for terrain) and Oc-trees(Oc-trees are an extension to Quad-trees so it might be easier to learn Quad_trees first) and they are fairly simple to implement.

Now being more specific to you question: You could use for example a quad-tree to partition your (3D) world and then only those portions of the world in direct sight need to be rendered (boost performance lots!) and those sections of the world close-by, whether in-view or out-view, can be updated for physics & collision detection but those sections far away (or far away AND out of view maybe) may not require any/as much process because you can assume that any affect of physics will not be noticed from the players current position (again, boosts processing).

Hope that was some help [smile]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!