feat: LineNode, PathNode, BillboardNode, TextNode + samples (3.4.0)#675
Merged
ThomasGorisse merged 2 commits intomainfrom Mar 20, 2026
Merged
feat: LineNode, PathNode, BillboardNode, TextNode + samples (3.4.0)#675ThomasGorisse merged 2 commits intomainfrom
ThomasGorisse merged 2 commits intomainfrom
Conversation
6defb34 to
9a1246b
Compare
…p-3.4.0)
- Add `Line` geometry (LINES primitive, 2 vertices, index pair 0→1)
- Add `Path` geometry (LINES primitive, explicit pairs for each segment,
optional closing segment when `closed = true`)
- Add `LineNode` wrapping `Line` geometry with `updateGeometry(start, end)`
- Add `PathNode` wrapping `Path` geometry with `updateGeometry(points, closed)`
- Expose `LineNode {}` and `PathNode {}` composable DSL functions in `SceneScope`
- Add `samples/line-path` sample: 3D axis gizmo (LineNode × 3), spiral
PathNode, and an animated sine-wave PathNode driven by Compose state
- Fix pre-existing `return@let` label error in `BillboardNode.onFrame` lambda
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
TextNode renders a 2D bitmap label in 3D world space via Canvas, delegates camera-facing rotation to BillboardNode. The text-labels sample shows three labelled coloured spheres with orbit camera; tapping a sphere cycles labels. settings.gradle: add :samples:text-labels Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
9a1246b to
5243145
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Linegeometry —PrimitiveType.LINESgeometry: 2 vertices, index pair[0, 1];update()re-uploads vertex buffer without re-creating the node.Pathgeometry — polyline of N points; each consecutive pair becomes a LINE segment; optionalclosedflag adds the closing segment.LineNode—GeometryNodewrappingLine;updateGeometry(start, end)hot-updates the GPU buffer.PathNode—GeometryNodewrappingPath;updateGeometry(points, closed)hot-updates.BillboardNode—ImageNodethat rotates toward the camera every frame viaonFrame+lookAt.TextNode— extendsBillboardNode; renders text to aBitmapwithCanvas(rounded-rect background, centred text); auto-regenerates bitmap on property change.LineNode {},PathNode {},BillboardNode {},TextNode {}composable wrappers.samples/line-path— 3-axis gizmo (LineNode × 3), spiral PathNode, animated sine-wave PathNode driven by Compose state.samples/text-labels— 3 labelled spheres with orbit camera; tap a sphere to cycle its label.Roadmap
Closes 3.4.0 items:
LineNode / PathNode,BillboardNode,TextNode.Test plan
:samples:line-path:assembleDebugand:samples:text-labels:assembleDebug🤖 Generated with Claude Code