Will anything replace Bitmap Bevel Effect? RRS feed

  • Question

  • I have a WPF project with some buttons that use the Bitmap Bevel Effect for a "sunken" look.  Unfortunately, this is one of the many Bitmap effects that is being phased out in the future.  Is there anything that I could do or use to produce a similar effect now? 
    Thursday, December 11, 2008 12:24 AM


  • There are no plans at this time to replace this effect, mostly due to a lack of customer interest.  If there are more requests for it then it is certainly something we would consider again, but it's a low priority feature at the moment.

    Unfortunately, there isn't really a good means to replace the effect yourself.  The natural way to do bevling using a pixel shader is to use bump-mapping, which would require more than one pass (one to create the bump-map, and another to combine the original texture and bump-map to produce the beveled output).  We don't support multi-pass effects at this time so there is no good solution for now.  If all you care about beveling are rectangles or rounded rectangles, than you could create your own ShaderEffect and a stock bump map that you could use to bevel those edges, but for arbitrary shapes you would need to generate the bump maps dynamically.
    Monday, December 15, 2008 10:15 PM