DocsGRADEEffects

Anime Painted

7 min read

On this page

Anime Painted turns the frame into a hand-painted anime film background: soft cel shading with coloured shadows and warm light, visible brush strokes on grass, rocks and trees, clumped painted masses of foliage, a painted sky with the clouds kept, soft coloured outlines (a darker shade of the local colour, never black), aerial haze and a gentle glow. Season palettes recolour the foliage (Summer, Spring, Golden Field, Autumn, Sakura, Winter or your own three colours) while the sky, blues and white flowers keep their colours.

Studio categoryStylized (Add Effect > Stylized > Anime Painted)
Pipeline stagePost Colour, right after Painted World (display colour, after the colour nodes)
Works inLive views (viewports, PIE, games, Movie Render Queue) and Image mode; the scene depth adds features in live views
C++ / BlueprintFGradeLayer::Effects.AnimePaint (FGradeAnimePaint), paths Effects.AnimePaint.<Field>
ReferenceAnime Painted parameters

Quick start

  1. Open the Effects panel (key 6) and choose Add Effect > Stylized > Anime Painted, or apply one of the six Anime looks in the Stylized group of the Presets panel (they also set a light, shadow, sky and haze mood for their season).
  2. Click a season chip in the panel (each chip shows the season's shadow, main and light colours).
  3. Adjust Brush size (the size of the painted clumps) and Brush strokes; use Mix to blend with the original.

Season palettes

The foliage (a hue band around green and yellow-green) takes the season's three colours by brightness: shadow for leaves in shade, main for the body of the foliage, light for lit grass tips. The light / shadow order of the leaves is always kept, so the painting keeps its form.

SeasonLookBuilt-in look
Summer (default)Vivid summer greens with sunlit yellow-green grass tipsAnime Summer Meadow
SpringFresh, light spring greens and pale new leavesAnime Spring Breeze
Golden FieldRipe golden fields from olive shade to pale strawAnime Golden Field
AutumnRed-brown trees and orange to peach autumn grassAnime Autumn Hills
SakuraCherry blossom pinks on every tree and fieldAnime Sakura
WinterFrosted grey-greens fading to snow whiteAnime Winter Frost
CustomYour own three colours: Custom shadow, Custom main, Custom light-

In the panel. The season chips switch the palette at once (one undo step each); they change only the foliage colours, not the light or sky. Edit as Custom copies the colours shown now into the Custom palette and selects Custom, so you can start your own palette from any season. The colour pickers of the Custom palette show only while Custom is selected.

Which colours count as foliage (group Season Palette):

SettingDefaultMeaning
Palette strength100How much the foliage takes the season colours (0 = the scene's own greens, still painted)
Keep brightness350 = the palette decides how light the field is; 100 = only hue and saturation change
Foliage hue110 degCentre of the foliage hues (60 yellow, 90 yellow-green, 120 green, 150 blue-green leaves in shade)
Hue width100 degWidth of the band that is fully remapped (default 60..160): cyans (about 185) and sky blues (200..230) stay outside
Hue softness20 degSoft fade outside the band
Min saturation15 %Less saturated colours keep their colour: whites, greys, white flowers, rocks
Facing up only0Live views: limits the palette to surfaces facing up (grass, fields) using normals rebuilt from the depth; 0 = trees too. No effect in Image mode

If something that is not foliage changes colour (a green car, a teal wall), narrow Hue width, raise Min saturation or, in live views, raise Facing up only. To keep characters out entirely, use the cel-only stencil.

Changing the season from Blueprint

The GRADE Anime Painted Library (category GRADE > Anime Painted) changes seasons at runtime with a smooth blend:

NodeWhat it does
Set Anime Season (Season, Blend Seconds = 2, Volume) > SuccessBlends the foliage to a built-in season (or Custom = the layer's own three colours) over Blend Seconds (0 = at once)
Set Anime Season Colors (Shadow, Mid, Light, Blend Seconds = 2, Volume) > SuccessGives the foliage your own palette (linear colours) and selects Custom, blending over Blend Seconds
Get Anime Season (Volume) > Season, bBlendingSeason of the top-most enabled layer with Anime Painted on (Summer when there is none); bBlending is true while a change runs
Get Anime Season Palette (Season) > Shadow, Mid, LightThe three built-in colours of a season (Custom returns the Summer colours)

How they work:

  • Volume empty = the main volume (the enabled unbound volume with the highest priority). The top-most enabled layer with Anime Painted on is changed; when no layer has it, Anime Painted is switched on in the top layer. Success is false when no volume was found.
  • In a game or PIE, a volume that uses a preset gets its own copy of the layers first (the preset asset is never changed at runtime). In the editor the change is undoable.
  • The blend runs on world time (a paused game holds it) by animating Season blend from the palette on screen when the node was called, so calling it again during a blend continues smoothly from the colours shown. No Tick is needed.
  • In cinematics, the simplest season change is Preset Blend between two looks with different seasons: look blends (Preset Blend, Blend To Preset) between two Anime Painted looks blend the palettes colour by colour. Season blend (0 = the Blend from colours, 1 = the Season palette; Advanced group) can also be driven with Set Layer Parameter (Effects.AnimePaint.SeasonBlend) from a Blueprint float; the Blend from colours are written by the nodes. See In Sequencer.

Example (step list): a day / season cycle.

  1. On BeginPlay call Set Anime Season (Summer, Blend Seconds 0).
  2. When the story moves on, call Set Anime Season (Autumn, Blend Seconds 6): the trees turn over six seconds.
  3. For a stylised event, call Set Anime Season Colors with three colours of your own.

The painting

Group Painting (panel names; the reference has every range and default):

  • Brush size (px at 1080 lines): grass, leaves and rocks become flat masses of paint this big (anisotropic Kuwahara shaped along the image structure).
  • Brush strokes, Stroke length: paint smeared along the shapes, a slightly different value per stroke; from dabs to long strokes.
  • Grass strokes: on foliage the strokes turn into upward blades. With depth only surfaces that face up (meadows, lawns) get them; in Image mode every foliage colour gets a softer version.
  • Simplify colour, Saturation (100 = unchanged; painted backgrounds are a little richer than photographs).
  • Cel shading, Cel bands (2..5), Band softness: the large-scale light gathered into a few soft bands while the strokes keep their detail.
  • Shadow tint and Light tint: coloured shadows (blue by default) and warm sunlight; only hue and saturation count, the brightness is kept.
  • Gouache grain: paper tooth and paint relief under the strokes.

Group Outlines & Sky: Outlines, Outline width, Outline darken (how much darker than the local colour); Painted sky with Sky top / Sky horizon (the blue sky becomes a smooth painted gradient, clouds kept); Aerial haze, Haze colour, Haze distance (live views); Highlight glow and Glow threshold.

Almost every value is keyable (Interp), including the colours: animate them through Preset Blend between two looks or with Set Layer Parameter (see In Sequencer).

Cel-only characters and props (stencil)

Characters and props usually look better with clean cel shading than with brush strokes. With Cel-only stencil (Advanced group), primitives that render Custom Depth with the chosen stencil value get the cel shading and outlines only: no brush strokes, clumps or season colours.

Requirements (live views only):

  1. Project Settings > Rendering > Custom Depth-Stencil Pass = Enabled with Stencil (r.CustomDepth=3). Plain "Enabled" has no stencil and the option does nothing.
  2. On the character's or prop's mesh components: Render CustomDepth Pass on and CustomDepth Stencil Value set.
  3. Stencil value in the panel = that value (0 = any primitive rendering Custom Depth with a stencil).

See also Custom Depth setup.

Live views and Image mode

FeatureLive views with scene depthImage mode and stills
Aerial hazeBy distance (Haze distance)No
OutlinesColour edges plus depth silhouettesColour edges
Painted skyFound from the depth (far = sky)Bright blues in the upper part of the frame
Grass strokesOnly on surfaces facing upSofter, on every foliage colour
Facing up only, cel-only stencilYesNo

Cost

Estimated GPU time at 1080p (grade.Quality), not measured on your hardware: Low about 0.8 ms, Medium 1.1 ms, High 1.5 ms, Epic 2.2 ms, plus about 0.15 ms for the geometry pass in live views with depth. Passes: geometry (live views), palette prep, structure tensor (half resolution), Kuwahara clumps (half resolution from a 5 px brush and always at Low), strokes, glow (quarter resolution, skipped at Glow 0) and compose. Events: GRADE.AnimePaint.*. No history and no persistent GPU memory.

Tips and limits

  • The season remap works on colour: it cannot tell a green shirt from a leaf. Use the hue settings, Facing up only or the cel-only stencil.
  • The sky detection in Image mode relies on bright blues in the upper frame: an overcast or sunset sky is usually left alone (lower Painted sky if it catches something else).
  • Brush strokes are computed per frame in screen space; they follow the image, not the world.
  • For a watercolour, ink or sumi-e illustration, see Painted World.