Skip to content

Trails++ example - #150

Open
krispya wants to merge 5 commits into
mainfrom
worktree-v9-7-0-release-demo
Open

Trails++ example#150
krispya wants to merge 5 commits into
mainfrom
worktree-v9-7-0-release-demo

Conversation

@krispya

@krispya krispya commented Jul 31, 2026

Copy link
Copy Markdown
Member

A little trails++ exmaple to promot R3F v9.7.0.

krispya and others added 4 commits July 31, 2026 13:54
Temporary demo advertising @react-three/fiber 9.7.0 (dep bumped to the
real release). The pmndrs logos become a physics swarm of extruded
"9.7.0" blocks (shared centered TextGeometry, helvetiker bold) pulled
toward a point behind an immovable pink hero "9.7.0" they bounce off.

Text3D+Center were dropped after drei's <Center> mis-measured: Box3.
setFromObject(precise) reads the raw position attribute of the <Edges>
fat-line (its Line2 instancing template quad, 2x3 units), inflating the
box and offsetting the word by roughly a quarter width.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The cursor's z velocity now targets the swarm's gather depth (z=-1)
instead of z=0, so it plows through the middle of the clump like the
original demo. Clicking applies a distance-falloff impulse to every
block radiating from the cursor, slightly off-center for tumble; the
center attractor then reels the swarm back in for the next blast.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Detonations now spawn 16 tumbling pmndrs logos (the original demo's
glb, recentered) that fly out from the cursor with a camera-ward bias,
decelerate, and shrink away over 1.5s. Pure useFrame VFX — no physics
bodies — so rapid clicks stay cheap. Palette mixes white with the
accent colors, black fat-line outlines to match the scene.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
demos/trails goes back to its pristine upstream state (including its
fiber 9.6.1 pin). The release demo now lives as its own workspace
package @demo/trails-r3f-9.7.0 with updated pmndrs.json metadata,
page title and README links. Thumbnail is inherited from trails for
now.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@krispya
krispya force-pushed the worktree-v9-7-0-release-demo branch from 0f877bc to e35eebc Compare July 31, 2026 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant