AI inference frame creation: Part 2

In Part 1, you made a start frame from a sketch and two references. In this part, you'll take it further. You'll combine a 3D layout render with your character references to make the inference frame, ask Gemini to review it the way a VFX supervisor would, and then improve the frame one element at a time. Then you'll turn the frame into a shot with Veo3.1, edit the shot with Omni 1.1 Video Editing, and swap in new characters.

You'll work on one element per pass. When you ask for one change at a time, the rest of the frame can stay as it is, and you can redo one pass without touching the others.

docs_tutorial-ai-inference-frame-creation-using-nodey-part-2_00.png

The inference frame this tutorial makes

1. Load the inference frame's images

Create three Load Image nodes, as in step 2 of Part 1, and load these images into them:

  • FROM OKO: a render of the start frame's scene, rebuilt in 3D in OKO. It fixes the camera, the field of view, and where everything sits.

  • PILOT: the pilot reference.

  • DOG: the dog reference.

Then put them in a frame:

  1. Rename each node after its image by double-clicking its title.

  2. Select all three and press G to put them in a frame.

  3. Name the frame Inference Frame.

Loading the inference frame's images, renaming them, and framing them

2. Write the prompt

Create a Text node for the prompt and name it PROMPT. This prompt does more than the one in Part 1. It describes the materials, the lighting, and the lens, and it names the image to take the composition from:

3D animation still, Pixar Disney style, heroic pilot giving a thumbs up, vintage dog companion, WW2 fighter plane in background. Use the input image ["FROM OKO"] as exact reference for composition, camera position, field of view and placement of elements in the scene.

Pilot has slight subsurface scattering on skin, micro-fuzz on clothing. Worn, distressed leather bomber jacket with realistic shearling collar. Matte aluminium airplane with scratched decals and oil streaks. The ground is displaced, with a slightly uneven and weathered concrete ground outside of the hangar. Faint painted lines extend from the front of the hangar, marking the way to the runway on the concrete ground.

The hangar is weathered, but structurally sound, with dimly lit and muted strip lighting hanging from a metal framework hanging from the ceiling. The strip lights are lighting the aircraft and truck inside the hangar. The exterior is made up of corrugated metal sheets, with weathered spars and framing surrounding the open doors.

There is a soft volumetric haze coming from the lights, creating definite cones of light.

The hero pilot is looking directly at the camera. The dog sits in the midground in front of the P-51 looking at the pilot.

Shot on 24mm lens, f/11. Shallow depth of field. Pilot and dog in sharp focus. Background plane and hangar softly blurred with warm bokeh. Subtle lens flare from the left sun glow. Rendered in RenderMan, Octane, 8k resolution. Cinematic golden hour lighting, volumetric dust rays. Highly detailed textures, subsurface scattering on skin, realistic leather and metal materials.

The model only knows which image is which from the names you give it. If you rename an image node or swap its image, update its name in the prompt too.

3. Set the size and aspect ratio

  1. Create two more Text nodes: one that says 16:9 for the aspect ratio, and one that says 2K for the size.

  2. Name them ASPECT RATIO and SIZE.

Steps 7 and 9 of Part 1 list the values each input accepts.

Aspect Ratio and Size (1K, 2K, or 4K) are drop-downs on the node, so you can pick 16:9 and 2K there instead. A connected Text node still works.

Writing the prompt and adding the aspect ratio and size

4. Connect the nodes and add a Save Image node

Add a Gemini Pro3.0 Image node, then make these six connections to it:

  1. FROM OKO to the first Ref Image (optional)

  2. PILOT to the second Ref Image (optional)

  3. DOG to the third Ref Image (optional)

  4. PROMPT to Prompt

  5. ASPECT RATIO to Aspect Ratio

  6. SIZE to Size (1K, 2K, or 4K)

Then add a node to save the result:

  1. Add a Save Image node.

  2. Connect Generated Image to Image to Save.

  3. Name the node INFERENCE FRAME.

We recommend a Save Image node at the end of every generation, so you keep each result and can compare runs side by side.

Connecting the inference frame and adding a Save Image node

5. Run it, save it, and load it back in

  1. Click the green play triangle on the INFERENCE FRAME node.

  2. When the frame is ready, click Save Image and save it to your machine as START FRAME.

  3. Create a new Load Image node and load the file you just saved.

  4. Name the node START FRAME.

Each pass from here starts from this node. Because you named it, your prompts can refer to it as ["START FRAME"].

You could also drag the image out of the Save Image node to make a Load Image node (step 14 of Part 1). Saving and reloading lets you choose the name.

Running the inference frame and loading it back in as START FRAME

6. Ask Gemini to review the frame

Before you change anything, ask Gemini what it would change. Gemini Pro3.1 Text can look at an image and answer questions about it.

  1. Add a Gemini Pro3.1 Text node and name it ANALYSE IMAGE.

  2. Connect your START FRAME node to Ref Image1 (optional).

  3. Create a Text node for the agent instructions, name it VFX SUP, and connect it to Agent Instructions. This tutorial uses: Analyse the image from the perspective of a VFX Supervisor for an animation studio

  4. Create a Text node for the question and connect it to Prompt. This tutorial asks: How can we make this image look more high-end animation studio quality? Provide me with a list of prompts I can use.

  5. Run the node, then scroll through its answer.

The agent instructions give Gemini a role, and the prompt asks it a question. In this tutorial, the answer came back with notes on the skin, the dog's fur, the lighting and haze, and the depth of field, followed by four short prompts.

  1. Take the suggestions you agree with into your prompt from step 2.

  2. Run the frame again.

Asking Gemini to review the frame

7. Improve one element at a time

Now improve the elements that need it, one pass each. This tutorial makes three passes: the P-51 Mustang, the hangar, and the dog. Each pass is its own small chain:

  • a Load Image node with your saved START FRAME, connected to the first Ref Image (optional);

  • a Load Image node with a reference for that one element, named REF, connected to the second Ref Image (optional);

  • a Text node with the edit, connected to Prompt;

  • a 16:9 and a 2K Text node, connected to Aspect Ratio and Size (1K, 2K, or 4K);

  • a Whole Number node set to 1, connected to Seed, so each run starts from the same noise (step 8 of Part 1);

  • a Gemini Pro3.0 Image node and a Save Image node.

You only build the START FRAME, 16:9, 2K, and Whole Number nodes once. One output can feed as many inputs as you like, so the hangar and dog passes reuse the ones from the P-51 pass.

Every edit prompt follows the same pattern: say which image to edit, say what to improve and which reference to use, and then say what must not change. This is the P-51 pass:

Edit the input image ["START FRAME"].

Improve the quality of the details on the P51 Mustang in ["START FRAME"], using the one seen in image input ["REF"] as reference. Be sure to focus on the nose, landing gear struts and general material quality. Keep the P51 scale, angle and position identical to the input image ["START FRAME"]

Keep the position, proportions, scale, and rotation of every element in the scene. The only changes should be to add extra details and match the lighting. Be sure to keep the strip lighting and volumetrics seen in input image ["START FRAME"].

Do not modify anything else in the image. Do not change the position of the aircraft or the vehicles in the scene.

The last paragraph tells the model to leave the rest of the frame alone. Check each result against START FRAME anyway: in this tutorial, the P-51 pass made the plane larger, and the hangar pass moved the plane and the dog. When that happens, tighten the prompt or try another seed, and run the pass again.

Building and running the P-51 pass

docs_tutorial-ai-inference-frame-creation-using-nodey-part-2_07.png

Top: START FRAME and the hangar pass. Bottom: the P-51 pass and the dog pass

8. Turn the frame into a shot

Now give the frame some movement with Veo3.1. Load your improved frame into a Load Image node and name it START IMAGE. This tutorial uses the dog pass.

Add three small nodes: a Text node with the action and the camera move (VIDEO PROMPT), a Text node with what to keep out (NEGATIVE PROMPT), and a Number node set to 8 for the length in seconds (DURATION). This is the video prompt:

Cinematic animation shot. The male pilot lowers his right arm, turns his back to the camera, and walks away towards the corrugated metal hangar. The dog stands up and walks, following closely behind the pilot. The flight goggles remain perfectly fixed on the dog's head.

As they walk, the camera executes a slow, smooth, continuous crane-up and dolly-out movement (pulling back and rising high into the air). The rising camera movement gradually reveals a long, white-striped asphalt taxiway, and a runway behind and to the left of the hangars that stretches out into a vast, empty desert landscape, ending in a high-angle aerial view.

Maintain consistent warm sunset golden hour lighting, long shadows, and a hazy atmospheric glow over the terrain.

CRITICAL CONSTRAINTS: Keep perfect perspective and structural detail on the background airplane, blue truck, background aircraft, vehicles and hangar buildings; absolutely no morphing, distortion, or visual artifacts.

STRICTLY ONLY ONE pilot and ONE dog in the entire scene; do not add any extra people, characters, or animals.

8k resolution, cinematic masterpiece, highly detailed 3D animation.

And the negative prompt:

warping, morphing, distortion

extra people, extra dogs, extra characters, distorted airplane, morphing background, goggles falling off, changing lighting, bad anatomy, clones.

additional aircraft or vehicles in the scene.

  1. Add a Veo3.1 node.

  2. Connect START IMAGE to Start Image (optional), VIDEO PROMPT to Prompt, NEGATIVE PROMPT to Negative Prompt, and DURATION to Duration (secs).

  3. Leave Desired Resolution at 1080p, Model at Standard, and Audio on, as this tutorial does.

  4. Add a Save Video node and name it FINAL VIDEO.

  5. Run the graph from it. In this tutorial, the run took about two and a half minutes.

Making the shot with Veo3.1

9. Edit the shot: add dust

Omni 1.1 Video Editing changes a video you already have. You describe the change in a prompt and can add reference images. The framing and length stay those of the source video.

  1. Load a reference image in a Load Image node and name it DUST.

  2. Write the change in a Text node and name it DUST PROMPT. This tutorial uses: Add a subtle volumetric dust cloud which blows gently across the scene from camera left to right. Do not add any dust kickup as the pilot or the dog walk, it is purely an atmospheric effect.

  3. Add an Omni 1.1 Video Editing node and connect FINAL VIDEO to Video, DUST to Ref Image 1 (optional), and DUST PROMPT to Prompt.

  4. Add a Save Video node (DUST PASS) and run it.

Keep an edit prompt short, and say only what should change. Long descriptions of the whole scene make the edit worse.

Adding dust to the shot with Omni 1.1 Video Editing

10. Change the weather and the light

Make each edit its own pass from FINAL VIDEO, so you can compare them and keep the one you like. This tutorial makes two more:

  • A weather pass, with two reference images of a storm (REF 1 and REF 2). Its prompt starts: Change the weather and sky.

  • A lighting pass with no references. Its prompt starts: Relight the scene to have the sun come in from the right-hand side of the image. Keep the lighting, highlights and shadows consistent from start to finish with no morphing or distortion.

Check each result against the source. In this tutorial, the weather pass changed more than the weather: the camera framing changed and a second plane appeared.

Building and running the weather and lighting passes

docs_tutorial-ai-inference-frame-creation-using-nodey-part-2_13.png

Rows from top: the Veo3.1 shot, then the dust, weather, lighting, and new characters passes, each at 1, 4, and 7.5 seconds

11. Design new characters

To swap the characters, first make a reference for each new one. This tutorial makes two turnarounds (front, side, and back views) with Gemini Pro3.0 Image at 16:9 and 2K:

  • a female pilot, from the pilot's three turnaround views and PILOT. Prompt: Create a turnaround image for a female version of the pilot, inspired by Amelia Earhart. Show the front, side and back views. Keep the same stylised look, but make her look attractive and heroic.

  • A Siamese cat, from DOG. Prompt: Create a turnaround image for a Siamese cat version of the dog. Show the front, side and back view. Keep the same stylised look.

Name each Save Image node after what it holds. This tutorial names them WOMAN and CAT, because the next prompt calls them by those names.

Making the female pilot and Siamese cat turnarounds

docs_tutorial-ai-inference-frame-creation-using-nodey-part-2_14.png

The two turnarounds: the female pilot and the Siamese cat

12. Put the new characters in the shot

  1. Add one more Omni 1.1 Video Editing node.

  2. Connect FINAL VIDEO to Video, WOMAN to Ref Image 1 (optional), CAT to Ref Image 2 (optional), and a Text node with the swap (CHANGE CHARACTERS) to Prompt.

This tutorial's prompt starts:

A seamless, high-quality video featuring a female pilot ["WOMAN"] and a cat ["CAT"] in an aviation hangar. The female pilot ["WOMAN"] flawlessly replaces the original male pilot, maintaining his exact position, movements, and performance throughout the entire video. Beside her, the cat ["CAT"] accurately replaces the original dog, matching its exact position and movements for the entire duration. The scene retains the exact same lighting, camera angles, and visual effects as the original video. The perspective and scale of the aircraft and vehicles remain perfectly intact. The hangar and background elements are consistent and completely undisturbed. No additional people are added to the scene, and no existing background people are removed.

Run it from its Save Video node (NEW CHARACTERS). The nodes before it keep their results, so this run doesn't make the Veo3.1 shot or the turnarounds again.

Swapping in the new characters

For more on Veo3.1's settings, see Tutorial: AI Video Generation Using Veo3.1 in Nodey.