Skip to content
Back to skills

Road

ASecurity

**Use for**: an endless highway, a looping street, a boulevard or viaduct under a stationary car, curved or straight road sections, a vehicle showcase. **Status**: verified in a real Spline file in Play (moved from the standalone road skill). The far skyline card belongs to [horizon](../horizon/SUBSKILL.md); speed cues to [speed-fx](../speed-fx/SUBSKILL.md). <!-- end of sub-skill header: below is synced from the standalone road skill, edit it there --> A fixed pool of road sections moves past...

  • 21 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 1, 2026
ai-agentsnode

Works with

  • cli

Security analysis

A100/100

Pro scans all 17 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add josazar/skill-endless-scene --skill road --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Road?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Road
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/josazar-road/badge)](https://www.skillsdirectory.com/skills/josazar-road)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
<!-- sub-skill of endless-scene: read ../../SKILL.md first (shared rules, build order) -->
# Sub-skill: road (an endless street under a parked vehicle)

**Use for**: an endless highway, a looping street, a boulevard or viaduct under a stationary car, curved or straight
road sections, a vehicle showcase. **Status**: verified in a real Spline file in Play (moved from the standalone
road skill). The far skyline card belongs to [horizon](../horizon/SUBSKILL.md); speed cues to
[speed-fx](../speed-fx/SUBSKILL.md).
<!-- end of sub-skill header: below is synced from the standalone road skill, edit it there -->


A fixed pool of road sections moves past a stationary vehicle mount. The near lane markings, curb lights and street frontage share the same travel distance. Their real distance from the camera supplies the difference in apparent speed. Only distant silhouettes belong to the horizon group. Buildings, bridges and signs with visible street-level contact belong to a moving section.

## Build

1. Choose a fresh Spline 3D file for a new road. The stage recipe owns the world origin, sun, fog and Play camera. Bind every call to the intended file ID. Inspect its object tree and existing HTML before editing. When adding the technique to an existing design, adapt the stage to its lighting, camera and units.
2. Copy [road.json](road.json) to a working config. Set `setting` to `garden-city` for planted terraces, glasshouses and towers, or `road-only` for a three-lane road with sidewalks, lights and bollards. Set `bendAmplitude` in metres. The example uses 14 for alternating bends; zero or an omitted value builds a straight road. Rebuild the section geometry and ride together when changing the bend or pool dimensions. Adjust lane width and scale to the intended vehicle. Geometry measures are in metres, speed is in km/h and colours are hex.
3. From this skill folder, run the following commands with Node.js. Use an empty output directory.

   ```sh
   node scripts/check.mjs road.json
   node scripts/emit.mjs road.json output
   ```

4. Load the Spline bridge's 3D authoring guides, material/texture drawing and animation/HTML guides. Execute the generated numbered `.js` files in ascending order through the Spline 3D code tool. Each call builds native scene objects or materials. Check each call's result. If interrupted, inspect the tree and material assets before resuming from the first missing batch.
5. Apply the generated `ride.html` through Spline's HTML content tool. If a file already has HTML, merge the ride script into that document in its own scope and retain the existing behaviours. Use `Road Camera` for Play. Open a wide preview to judge the final composition.

## Place the vehicle

The road surface is at **Y = 0**. The unanimated **Vehicle Anchor** sits at the origin in the right lane and faces **+X**, with **+Y** up. The example uses **50 Spline units per metre**. Parent the vehicle model to that anchor, point its nose along +X and align the lowest point of its tyres with Y = 0. A 4.5 m body spans 225 units. Retain the model's materials and wheel animation when importing it into the road scene. A request for an empty road leaves the anchor vacant.

## Tune the shot

- **Framing.** Use `camera.eye` and `camera.aim` as world positions in metres. Moving the camera left of the car and aiming across the lane places the road's vanishing point left of centre. Check both the vanishing point and the projected vehicle mount at the requested aspect ratio.
- **Speed.** Set `speedKmh` to control travel. `cameraPush` is the amplitude in metres of a gentle 14-second dolly. Zero gives a locked tracking shot. A speed of zero freezes the road and camera.
- **Curves.** Use one periodic centreline for the whole pool. The scripts use `z(s) = A × (1 − cos(2πs/P))`, where `P = sections × length`. Bake each section relative to its start, keep the asphalt UVs in road coordinates, and subdivide long kerbs, glass sheets and pipes before bending them. In Play the scene turns with the local tangent while the vehicle mount keeps its original heading. Travel speed is measured along the curve.
- **Continuity.** Both edges of adjoining slabs must coincide in world space, including the last-to-first pair. Attach the street furniture, shadow decals and supporting architecture to the same numbered section. At maximum steering, check whether the outer shoulder reveals recycling at the horizon. Increase the pool or bring the fog in if an object appears at the far edge.
- **Art direction.** Edit the shared `Road / …` materials in Spline. Change `seed` for repeatable variation. Use the existing scene and imported image materials when refining a demo. If a needed image is on disk and the bridge cannot import it, give the user the exact filename to import in the editor, then reuse the resulting asset.

## Blend a skyline texture into moving geometry

A fixed panorama works for silhouettes with no visible support. A recognisable tower touching a sidewalk or a greenhouse needs parallax at that depth.

1. Crop the image to the tower face with mesh UVs. Exclude any painted asphalt, bridge ends, adjacent greenhouses or horizon. Use a shallow building with a front and side return so a turn reveals a second face. Check the artwork's orientation from the Play camera.
2. Close both contacts with editable geometry. Extend the base slightly into a plinth behind the sidewalk. At roof level, run a parapet, planted edge or metal joint across the join with the greenhouse. Put the tower, plinth, trim and adjoining greenhouse in the same moving section. Freeze mid-turn and confirm that the two surfaces still meet.
3. Keep the actual far skyline separate. Give it the same heading change as the camera frame and bounded lateral parallax. Fog its lower edge where the moving district hides it. If a texture visibly touches the road, move that part into the street layer before adjusting the fog.

## Verify in Play

Run `node scripts/check.mjs road.json` to get the arc length, cycle duration and maximum world-space gap between neighbouring asphalt edges. The example travels **259.51 m in 12.29 seconds at 76 km/h**. At zero speed the ride stays parked.

Watch one full cycle from the requested Play camera and aspect ratio. Inspect both turns, the crossover and a recycle. Pass directly beneath each bridge and check that its supports clear the outer lanes. Follow a painted dash through a handoff, then follow the tower foot and the rooftop joint as the block passes. Include a view with the façade near the camera and one in the opposite bend. The offline geometry check cannot see texture sliding or a wrong UV crop.

Files in this skill

  • SUBSKILL.md6.5 KB
  • evals/prompts.md1.9 KB
  • road.json664 B
  • scripts/check.mjs7.2 KB
  • scripts/conservatory.js2.4 KB
  • scripts/emit.mjs3.6 KB
  • scripts/geometry.js4 KB
  • scripts/landmarks.js2.3 KB
  • scripts/materials.js1006 B
  • scripts/planting.js3.1 KB
  • scripts/ride.js1.7 KB
  • scripts/section.js5.9 KB
  • scripts/signage.js2.7 KB
  • scripts/stage.js1.4 KB
  • scripts/street-life.js4.1 KB
  • scripts/track.js1.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.