← Back to hidekiaono.tech AI
OCTO AGENT GRID
Reference sceneMaterialsRigPipeline
00:00:00 · ISO 30°
Real time 3D standard v2

One rig. Five materials. Every scene.

This scene is built from nothing but the library below. Drag to orbit, solo a material, switch lights off. The hull is physically based, the key light casts real shadows and a generated studio supplies the reflections. What you see is the contract every OCTO centerpiece and future game asset ships against.

01
Material library

Five materials build everything

No ad hoc materials. Every mesh takes one of these, so a robot, a city and a game level share the same light response and the same glow. The four light made materials come from three/materials.js. The hull is the one physical body, built in three/realism.js in four finishes: machined, shell, dark glass and tinted glass.

M1 Hull

The physical body for platforms, buildings and robot shells. Reflects the studio, takes and casts shadows, never glows on its own. Edges are bevelled so they catch a highlight.

Type
MeshPhysical
Color
#13213D trench
Metal / rough
0.9 / 0.42
Clearcoat
0.35
Maps
generated seams and wear

M2 Holo glass

Fresnel rim, scanlines and a travelling band. The signature holographic surface for shields, slabs and screens.

Type
Shader, additive
Fresnel
pow 2.2
Scan
90 lines per unit
Opacity
0.35 to 0.7

M3 Emissive

Unlit HDR color above 1.0 that feeds bloom. Visors, status nodes, chart bars. The only thing allowed to bloom.

Type
MeshBasic, HDR
Intensity
1.6 to 3.6
Colors
cyan, violet, lime
Budget
15% of pixels

M4 Edge line

Sharp additive wire for platform rims and silhouettes. Gives the isometric read at any zoom.

Type
LineBasic, additive
Source
EdgesGeometry 20°
Opacity
0.5 to 0.9
Depth write
off

M5 Beam and floor

Light columns with flowing noise and the hex grid floor with an outward pulse ring. Gives every scene ground and energy.

Type
Shader, additive
Hex scale
1.4 per unit
Pulse
2.2 units per s
Fade
radial to 25%
02
Lighting rig

Cool key, violet fill, cyan rim

Three lights, positioned in world units, over a studio environment generated in code. Call shadowRig(scene) once and set scene.environment = studioEnv(renderer). Toggle each light in the console above to see what it carries.

Rim -2, 5, -9 Key 6, 12, 7 Fill -8, 4, -3 Studio environment at 0.85
LightColorValueJob
Key#D4EBFF2.6Form, top faces and the shadows
Fill#9F8CFF0.7Brand violet in shadows
Rim#3FD8FF1.4Cyan edge from behind
EnvironmentSoft boxes0.85Reflections, never pure black
PracticalEmitter colourPoint, range 12Every beam lights what is near it
Tone mapACES FilmicExposure 1.0
ShadowsKey only, PCF soft2048 map, 1024 on phones
03
Glow and glass

Bloom is earned, glass is additive

The scene renders into a half float target, a bright pass keeps only luminance above the threshold, three blur levels at half, quarter and eighth resolution, then an ACES composite with a film grade: lens falloff, a trace of fringing and fine grain so dark gradients never band. Only M3 Emissive crosses the threshold.

// one call per page
const grade = createGrade(renderer, {
  threshold: 0.7,    // luminance gate
  strength:  0.72,   // bloom gain
  vignette:  0.42,   // lens falloff
  fringe:    0.012,  // colour fringing at the edges
  grain:     0.022   // kills banding in the dark
});
renderer.toneMapping = THREE.ACESFilmicToneMapping;

// holo glass uniforms
holoGlass({ color: PALETTE.cyan, rim: PALETTE.chalk,
            opacity: 0.55, scan: 1.0 });
// fresnel f = pow(1 - |N·V|, 2.2)
// rgb = mix(color * .35, rim, f) * scanline
RuleValue
Bloom threshold0.7 luminance
Bloom passes3 levels, 9 taps
GradeFalloff 0.42, fringe 0.012, grain 0.022
Glass blendingAdditive, depth write off
Glass stackingMax 3 layers on screen
Emissive cap3.6, no NaN, clamp 24
MobilePixel ratio 1.5, same passes
04
World scale

One unit is one meter

Y up, right handed, meters. Hero objects sit on a platform whose top is at y 0.4 so floor glow never clips. Cameras are orthographic for isometric scenes, 34 degree perspective for centerpieces.

Node 0.5 m
Server 1 m
Agent 1.8 m
Platform 4 m
Shield core 3 m
Tower 5 m
Globe r 2.5 m

Isometric camera

Orthographic, yaw 45°, pitch 30° (atan 1/√3). Frustum height 16 units on desktop, 22 on phone.

Grid

Hex floor at 1.4 cells per meter. Platforms snap to 0.5 m. Labels anchor 0.3 m above the top face.

Game ready

Same units import 1 to 1 into Unity, Unreal and Godot. Character capsule 1.8 m by 0.5 m.

05
GLB asset pipeline

From DCC to browser in five checks

Every asset arrives as glTF 2.0 binary. Material slots are named for the library so the loader swaps them for OCTO materials on import.

Model

Blender, meters, Y up on export. Apply transforms. Origin at base center.

Name slots

Material names octo_hull, octo_glass, octo_emit, octo_edge, octo_beam.

Optimize

gltf transform: dedup, weld, Draco or Meshopt, KTX2 textures at 1K max.

Validate

Khronos validator zero errors. Triangle and size budget checked in CI.

Bind

Loader maps slot names to library materials, adds edges, registers bloom.

const MAP = { octo_hull: machined(), octo_glass: holoGlass(), octo_emit: emissive(),
              octo_edge: edgeLine(), octo_beam: beam() };
gltf.scene.traverse(o => { if (o.isMesh && MAP[o.material.name]) o.material = MAP[o.material.name]; });
06
Performance budgets

Fast on a phone, rich on a wall

Measured live in the console above. A scene that breaks a budget does not ship.

BudgetDesktopPhoneGame hero
Frame time p9516.7 ms22 ms16.7 ms
Draw calls15090400
Triangles300 K120 K1.5 M
GLB size2 MB1 MB12 MB
Textures1K KTX2512 KTX22K KTX2
RepeatsInstance anything that appears more than four times