Labs · free setup

Custom Flares in Copernicus

Custom flares of any size and form, made in Copernicus

  • Houdini 22+
  • Redshift
Golden sphere with custom flares made in Copernicus
Resultside flares, inside flares, ghosts
01

Drivers

First we need points on the object: each point becomes a flare. Place them yourself, or use the VEX setup here. It generates points on the edges of the object and inside it.

Flares on the edges

Points go on the edges of the object, as the camera sees it.

Angle L/R
slides a flare along the edge
Offset, Toward Cam
push it out
Count, Spread
small points around the main one
Second input
animated object: the points stick to it
Two wrangles below
size of the left and right flares

Flares inside the object

The second branch picks random points that face the camera.

Min Facing, Count, Seed
which points get a flare
stick_points_to_animation
keeps them on the animated object, pushes a bit toward the camera
Add + Ray
a flare at an exact spot
VEXpressionRun Over: Detail
string cam = chs("camera");
matrix m = optransform(cam);
vector camP  = set(getcomp(m,3,0), getcomp(m,3,1), getcomp(m,3,2));
vector right = normalize(set(getcomp(m,0,0), getcomp(m,0,1), getcomp(m,0,2)));
vector up    = normalize(set(getcomp(m,1,0), getcomp(m,1,1), getcomp(m,1,2)));
vector c     = getbbox_center(0);
vector view  = normalize(c - camP);

float  ang[]  = array(chf("angle_l"), chf("angle_r"));
float  side[] = array(-1.0, 1.0);
string grp[]  = array("left", "right");

int src = npoints(1) > 0 ? 1 : 0;   // input 2 connected → stick to the animation

for (int i = 0; i < 2; i++) {
    vector d = qrotate(quaternion(radians(ang[i]), view), right * side[i]);
    vector hitP, uvw;
    int prim = intersect(0, c + d * 100, -d * 200, hitP, uvw);
    if (prim < 0) continue;

    vector surf = primuv(src, "P", prim, uvw);
    vector base = surf + d * chf("offset") - view * chf("toward_cam");

    for (int j = 0; j < chi("count"); j++) {
        float s = i * 100 + j + chf("seed");
        vector jitter = right * fit01(rand(s + 1.1), -1, 1) * chf("spread_h")
                      + up    * fit01(rand(s + 2.2), -1, 1) * chf("spread_v");
        int pt = addpoint(0, j == 0 ? base : base + jitter);
        float k  = j == 0 ? 1.0 : fit01(rand(s + 0.37), chf("min_bright"), chf("max_bright"));
        float sz = j == 0 ? 1.0 : fit01(rand(s + 0.71), 0.1, 0.3);
        setpointattrib(0, "pscale", pt, chf("size") * sz);
        setpointattrib(0, "bright", pt, k);
        setpointgroup(0, grp[i], pt, 1);
    }
}

// remove the object itself, keep only the points
for (int p = 0; p < nprimitives(0); p++) removeprim(0, p, 1);
Side flares
Side flaressetup
Inside flares
Inside flaressetup
generate_driver_points_sidesAngle L
02

Render

Now render the points on their own. In the ROP, put only the driver object into Force Objects, so nothing else gets into the frame.

If you use several types of flares, give each its own color with a Color node inside the Geo (red, green, blue). The material picks the color up automatically.

Save as EXR, half float, zip. The file is tiny.

Want to build it yourself instead of opening the .hip? These are the settings used here:

Material
Emission Luminance 1000
Emission Color
Cd point attribute
Points
rendered as particles
pscale
0.001 – 0.004
Object
sphere, radius 1
Global Scale Multiplier
1
FLARE_ROPRedshift
03

Drivers in COPs

Bring the EXR into Copernicus with a File node and prep it a little.

If you use several types of flares, split them by color with Channel Extract.

Then Blur and Bright: they control how sharp and how big the flares will be.

Channel Extract
Channel Extractsplit by color
Blur + Bright
Blur + Brightprep
Blursharpness
Brightsize
04

Shape

Feed the drivers into Star Glow. This node makes the shape of the flare.

The settings are simple: Streaks 2 for a clean flare, Streak Length for length, Brightness for brightness and size, Angle for rotation.

The same node can add chromatic aberration and break up the shape a bit with Glimmer.

Here the flare is made of three Star Glows: a short vertical streak, a short thick horizontal one and a long thin horizontal one, joined with Add.

Star Glow
Star Glowsetup
Streak LengthStar Glow
AberrationStar Glow
GlimmerStar Glow
05

Glow & Distort

You can also add bloom: just a Glow node. Set the size in its parameters and mix it in with Add.

To break up the flares or the bloom, use Distort with Fractal Noise.

Glow + Distort
Glow + Distortsetup
Addbloom
DistortFractal Noise
06

Ghosts

A ghost is a soft reflection inside the lens, a blurred copy of the flare a bit away from it.

Take the same drivers, Blur them a lot, make them bigger with Bright and shift them a little with Transform.

A touch of Chromatic Aberration at the end makes it look real.

Blurghost size
Addghost amount
07

Composite

Join the bloom and the flares with Add, then put them over your render with one more Add.

Bright controls the overall intensity.

Addflares over the render
08

Download

The .hip with the sphere example, the driver EXR and the render. Free, use it anywhere.

Download .hip ZIP · 8 MB · Houdini 22+ · Redshift