Jump to content
  • Advertisement
Sign in to follow this  
MangaTigerBoy

Points along a black and White image

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

Advertisement
You'll want to use edge detection algorithms to generate a single pixel border around the contained volume. Treat the pixels as a loop of line segements. Then interpolate along your line loop placing those nodes at what ever interval/criteria you choose.

Share this post


Link to post
Share on other sites
What do you *really* want? Would it work to pick the dot positions first and then draw the curved path through them? Because that's a hell of a lot easier. :)

Share this post


Link to post
Share on other sites
And do you have to generate a path from scratch? Why not have some kind of data file with a bunch of (r, theta) pairs? You would find the next point by storing the current point position and angle, and for each pair in the data file, update the angle with theta, and move forward r pixels in the new direction.

Does the path need to be a closed loop? Do you need to tweak dot positions so they're evenly spaced around the curve? (If so, does "evenly spaced" refer to straight-line distance, distance following the curve, or something else?) About how many points per curve are we talking about?

And perhaps most important: what do these points and curves actually mean? What is their significance?

Share this post


Link to post
Share on other sites
Quote:
Original post by MangaTigerBoy
and sorry, bzroom, the LAST thing I need at this point is a bunch of nonspecific "commands".


I dont know what you mean by that.

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!