All right, I think I've nailed the algorithms now. I think they're the best they can be for now, short of actually writing a "real" bevel plugin with a "real" programming language... that's still a goal that I'll look into some day, but for now, my knowledge of C is not quite enough to tackle that goal.
Anyway, the updated version is available at the registry, I don't have an account on GIMP scripts so I probably can't update it there... maybe someone will do it for me again
http://registry.gimp.org/node/25199The main improvements are the shape curves and gloss. They're totally rewritten, now the shape curves should produce more natural and better results. A thing to note - the shape curve adjustment is now on a smaller scale, from -64 to 64 (used to be -128 to 128), so take that in account if you have some standard values you've memorized and use.
Gloss no longer darkens the "non-beveled" parts of the bevel, it's tweaked so that it should keep areas that are #808080 at #808080. It should also provide somewhat nicer looking results.
Finally, the default values are slightly changed - the default depth is now at 10, instead of 20 - I figured a lower setting helps with making the shape contours more as they should be. It's still adjustable of course. Also default post-blur is now at 1.0 instead of 3.0. This produces sharper results - since the other parts of the algorithm are improved, there's no longer need to cover up errors/artifacts with blurs
Anyway, enjoy
![Smile :)](./images/smilies/icon_smile.gif)
Attachment:
bev23c.png [ 553.67 KiB | Viewed 1403 times ]
Again all feedback is welcome, if you find out any corner cases or bugs where things don't work, don't hesitate to let me know!