Jump to content
  • Advertisement
Sign in to follow this  
Finalspace

Tilemap contour tracing library (final_tiletrace)

Recommended Posts

I released my tilemap tracing algorythmn for generating chain segments, which i had written a few years ago. Now its fully ported to standard C++ and works great.

This thing is used to produce actual connected line segments from a solid tilemap, so you can create proper physical shapes out of that for improving physics stability and performance.

 

The algorythm as its core is a contour tracing implementation which is normally used to automatic fill in pixel colors or detect contours but i extended it a lot to fit my needs.

 

You can find it in my game tech github repository (final_tiletrace.hpp), including a demo for seeing the tracing algoryhtm in action.

 

TODO:

  • Fix the documentations!
  • Move to a more C++ ish api

 

https://github.com/f1nalspace/final_game_tech

Edited by Finalspace

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
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!