← LeaderboardThe Skill Leaderboard

render-eyewear-and-lens-distortion

Build and animate first-person spectacles, refractive glass and peripheral vision effects. Use when putting on glasses should visibly change the view through the lenses.

Published by MengTo ↗MengTo/Skills

Try your first task

A source-grounded starter task has not been verified for this skill yet.

SKILL.md

name: render-eyewear-and-lens-distortiondescription: Build and animate first-person spectacles, refractive glass and peripheral vision effects. Use when putting on glasses should visibly change the view through the lenses.

Render eyewear and lens distortion

Treat a pair of glasses as a held object with two apertures. Give the frame a bridge, hinges, thin rims, open temples and a lens on each side. Shape the front and back of the lens separately, join them at the edge and keep physical dimensions consistent with the wearer's hand. A reflection along one bevel can communicate more glass than a large global warp.

Put the glasses on

  1. Compose the starting pose so the right thumb and index already hold the near hinge and the viewer can read the bridge. Move the grip and frame together. For one quick take at 24 fps, hold for roughly two frames, then bring the right lens toward the eye over the next sixteen. Retune this timing to the performance.
  2. Keep the lens center close to the eye's eventual optical axis. As the distance closes, the bridge and rims enlarge and leave the image. The hand releases beside the head. To stage removal, reverse the ownership and visibility beats as well as the travel.
  3. Restrict refraction and any subtle red/blue separation to rays passing through the glass. Make a clean image and a through-lens image for a plate composite, or sample the lit scene behind the physical lens. In either case, foreground fingers and opaque rims must occlude what lies behind them. Use a small near plane or a dedicated close-up pass if a rim vanishes mid-travel.
  4. Tune against a straight mullion in the background. Start with a small bend near the outer rim and a quiet center. Let the bend settle as the lens seats. Keep the image bright enough to see the edge cross the view without creating a white flash. For rendering through two layers of glass, check what the renderer actually includes in its transmission buffer.

Review the approach

Inspect one frame with the background line half inside a lens. The line should shift at the crossing and stay registered elsewhere. Then play the first second at normal speed. If the frame appears to fly in by itself, fix the initial grip and the timing of release. If a second right arm still holds the background prop, clear that performance from the underlying plate or re-render the shot.