API ReferenceGE Extensionsflowgraphnodesscenecameraprocedural
Procedural Direct CamPath (Flowgraph Node)
- **Node Name:** `Procedural Direct Campath`
Overview
- Node Name:
Procedural Direct Campath - Category:
once_p_duration - File:
extensions/flowgraph/nodes/scene/camera/procedural/procDirectPath.lua
Creates a cinematic camera path that flies from one position to another with smooth elevation changes, rotation interpolation, and FOV zoom effects. Optionally supports looping back to the start.
Pin Schema
Input Pins
| Pin | Type | Description |
|---|---|---|
from | vec3 | Start position of the path |
to | vec3 | End position of the path |
loop | bool | If the path should loop (hidden, default: false) |
duration | number | Total duration in seconds (hidden, default: 14) |
Output Pins
| Pin | Type | Description |
|---|---|---|
pathName | string | Name of the created camera path |
Behavior
workOnce()- Procedurally builds a multi-keyframe camera path:- Computes a forward direction vector between
fromandto. - Creates 5 keyframes: start (low angle), slightly pulled back, elevated midpoint, zoom-in hold, and final hold.
- Uses quaternion interpolation (
slerp) for smooth rotation transitions. - FOV narrows from 60° → 50° → 30° for a cinematic zoom effect.
- If
loopis true, adds 3 more keyframes to return the camera to the start position. - Registers the path and outputs the name.
- Computes a forward direction vector between
Keyframe Structure
| Keyframe | Time (ratio) | Description |
|---|---|---|
| from | 1/14 | Start position, angled down 45° |
| from2 | 3/14 | Slightly pulled back from start |
| mid2 | 10.5/14 | Elevated midpoint, looking at target, FOV 50 |
| to | 12.5/14 | Hold position, FOV 30 (zoomed) |
| to2 | 14/14 | Final hold, FOV 30 |
Key Dependencies
self.mgr.modules.camera:getUniqueName()- Unique path name generationself.mgr.modules.camera:addCustomPath()- Path registrationquatFromEuler(),quatFromDir()- Quaternion math helpers
How It Works
The node creates an overhead flyover effect: starts at an angled view of the from point, rises to an elevated midpoint, then zooms into the to point. The camera smoothly interpolates rotation using slerp and narrows the FOV for a dramatic reveal. With looping enabled, it reverses back, creating a continuous aerial tour.
Example Usage
-- Create a dramatic reveal between two points of interest
-- Wire two vec3 positions (e.g., from spawn point to destination)
-- Connect pathName to Start Cam Path to play the flyover
-- Use duration input to control pacing (default 14 seconds)See Also
- Procedural Static CamPath (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide