Jump to content
  • Advertisement
Sign in to follow this  
lucky6969b

Building a hierarchical map based on a small bounding box

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

I am currently building a hierarchical map based on a pretty small bounding box.

The extent of the zone is 300x300 meters,

each small bounding box to test walkability is only 2x2 meters.

So the test takes quite a bit of time.

My approach is just throw a bounding box at various spots and throw a ray upwards to see if it hits something

Is that natural?

Thanks

Jack

Edited by lucky6969b

Share this post


Link to post
Share on other sites
Advertisement
Without more details it is not really possible to tell what is wrong. Are you using a quadtree to reduce the number of queries? Are you merging adjacent boxes into larger zones?

Also, moving this to a more appropriate area of the site.

Share this post


Link to post
Share on other sites

Hello,

the library I am using is called argortha, which is not downloadable anymore, perhaps the author don't allow.

I see in the library, it first generates about 40K to 50K bounding boxes, then do raycasting around the "actor"

like casting NORTH, SOUTH, EAST and WEST, when it is able to stand, it cast upwards again, until everything is done,

it starts merging the cells... but very slow indeed...

Thanks

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!