How can I create an "inner bevel" effect on text? #1579
-
I'm trying to create the following effect with some text: Here's a method I wrote to create the text so far:
And here is the method call:
Can this bevel effect be done with ImageSharp at all? Any help would be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@rambouillet There's no built in methods to do this I'm afraid. I've done a little bit of research though into how this would be achieved. Bevel effects can be achieved by the application of Bump or Normal Maps to a 2D image. You'd need an emboss convolution filter that can be generated and rotated by an arbitrary angle that is used to populate the map. This library which is based on an old version of ImageSharp contains code to generate maps. It shouldn't be too hard to port that using an improved emboss filter. I'm not 100% sure how the map is then applied to the image though to alter the brightness but this link seems to contain further information. P.S. Love that book! |
Beta Was this translation helpful? Give feedback.
@rambouillet There's no built in methods to do this I'm afraid.
I've done a little bit of research though into how this would be achieved.
Bevel effects can be achieved by the application of Bump or Normal Maps to a 2D image. You'd need an emboss convolution filter that can be generated and rotated by an arbitrary angle that is used to populate the map.
This library which is based on an old version of ImageSharp contains code to generate maps. It shouldn't be too hard to port that using an improved emboss filter.
I'm not 100% sure how the map is then applied to the image though to alter the brightness but this link seems to contain further information.
http://www.inf.ed.ac.uk/teaching/cou…