2008 05 28A 2D Bevel Technique
How do you generate a 2D bevel out of a shape ? Maybe start by computing a heightfield, then light it just like Photoshop does … but then, how do you try that out ? Go push individual pixels in C ? Bwwwwarg.
Luckily after browsing the Core Image Reference, we can see that everything we need to do a bevel is there : CIHeightFieldFromMask
and CIShadedMaterial
.
Once there, varying the radius on CIHeightFieldFromMask
will vary the bevel depth.
Sample QTZ
Quartz Composer
- Core Image Alpha Boost
- Lanczos Scaling seems to handle Gamma well
- A 2D Bevel Technique
Browsing the logs I've seen someone from netblock-68-/-/-/.dslextreme.com trying to leave a comment here. I was doing some work on the admin side and your comment didn't make it through. Sorry ! Please repost if you come back.