(06-26-2017, 01:51 PM)metulburr Wrote: Thank you guys for the insight. I forgot to mention that all corners would be rounded. I kind of didnt portray that well in my example. As well as all corners would have to be custom modified AKA manually inserted. For example the turns are where the game really intensifies, and makes the game. I think i would have to manually insert each and every corner to determine the "toughness" of the corner based on the previous corner. So in theory all i would have to do automatically is the lane lines and/or lane lines and spaces. Just like this
However there are at times there are slight bends that dont constitute a corner at all.
Before anyone answered last night, i came up with a formula for the lanes.
- follow track path with path tool making all corners bend
- stroke path solid color line with new layer each for the following... (color, pixel width)
- white 63
- black 57
- grey 51
- black 21
- grey 15
So the pattern method works assuming the track is straight, however, if the pattern bends and snakes back and forth, the patterns in its 90 degree turn looks odd.
http://imgur.com/a/sav2H
Quote:Back to Gimp & looking at your screenshot, it is a closed circuit, so no end path to break.Im having trouble figuring out the plugin process. Never done it before. I added the python source to the directory /usr/lib/gimp/2.0/plug.ins/ and restarted GIMP. But not sure how to implement a layer to the selected path as you have shown you done in your last screenshot? I think this method would work the best as the corners would be customized afterwords of laying the straight areas out.
Stroke path / selection -> to path produces two 'linked' paths 'Selection in the screenshot, and a good tool to separate these is Ofnuts plug-in ofn-path-edits from https://sourceforge.net/projects/gimp-pa...s/scripts/ to give an inside and outside.
A possibility, and only a possibility is another plug-in arakne-follow-path5 http://www.arakne.es/en/dessign/gimp-plu...oordinate/ find a zip download in there somewhere.
Make a small layer and paint in a pattern, apply the plugin something like this
Code:
metulburr@ubuntu:/usr/lib/gimp/2.0/plug-ins$ ls | grep fu
gimpfu3.py
script-fu
metulburr@ubuntu:/usr/lib/gimp/2.0/plug-ins$ ls | grep path
follow-path5.py
ofn-path-edits.py
selection-to-path
metulburr@ubuntu:/usr/lib/gimp/2.0/plug-ins$
To install a plugin (.py), add it to "~/.gimp-2.8/plug-ins. Check that it is marked executable (the plugins you get packaged in a ZIP should already be). You have to restart Gimp to see them. If everything went well the should be listed in the file "~/.gimp-2.8/pluginrc". This may also tell you where they hide in the menu structure, not all of them are in the menus of the main image window.
For your corners you will have to be a bit more explicit about the curvature by adding more control points. By default on straight corners Gimp aims for the smallest curvature radius.