Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

GENTS

Collision working well?!

This topic is 5295 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

Hi to everybody!!! I''ve developed something with DirectX (something as the "Tiny" model walking in the screen near other objects) but now I want to check collision, but things is making very hard!!! You can find an example of where I want to check collision here: http://www.gents.it/lavoro/Working_Set.zip Can anybody help me?! THANKS!!!

Share this post


Link to post
Share on other sites
Advertisement
Sorry, but saying something like "now I want to check collision, but things is making very hard!!!" won''t get you many responses because there is really no specific question.

Collision detection is a large topic and can be accomplished in a variety of ways. Do a search through the forum archives and you''ll see dozens of threads that deal with the issue.

As a basic overview, in real-time applications collision detection is generally done by computing some kind of bounding volume around your objects. For example, you could create a box that completely surronds a character in your game. If you create bounding volumes (a box in this case) around all of the objects in your world, then collision detection becomes a problem of detecting when two boxes have collided.

There are many optimizations to this but the basic idea is to avoid checking for the intersection of specific triangles in models and instead use some kind of bounding volume around your models (or even parts of your models to get more accurate collisions) and use them to check for collisions.

Please do a search in the forum archives and using Google to find out more info. If you have specific questions, post them here on the board and we''ll try to help.

neneboricua

Share this post


Link to post
Share on other sites
Ok...
I see that I''m wrong!!!

I''ve just seen some examples... but I only need an explenation...

HOW CAN I MAKE A BOX AROUND MY MODEL AN MAKE IT INVISIBLE?!

How can I show my model and not the box around it?!

THANKS FOR ALL!!!

Share this post


Link to post
Share on other sites
D3DXComputeBoundingBox() will find the bounding box of a set of vertices. Do a search of this forum to find implementation details if you need help with it.

Here are some sites that have info on collision detection:
Here
Here
Here
Here

Also, please knock it off with the caps and exclamation points. It''s not getting you anywhere. Learning to search efficiently will help you a lot, since this has been discussed about a billion times


Dustin Franklin
Mircrosoft DirectX MVP

Share this post


Link to post
Share on other sites

  • 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!