Skip to content

Intermact API Reference / @intermact/render-r3f / SceneView3D

Function: SceneView3D()

SceneView3D(__namedParameters): Element

Defined in: render-r3f/src/SceneView3D.tsx:22

In-canvas R3F component for 3D scenes (design.md §10, §15). Hosts a framework-free ThreeSceneView, advances the Player via useFrame, and drives the camera. Both perspective and orthographic (camera.projection) cameras are supported; orthographic honors camera.zoom and the wheel adjusts zoom rather than distance. With interactive the user can orbit/dolly the camera; otherwise the camera follows the scene's registered camera node (timeline-driven moveTo/lookAt/orbit).

Parameters

__namedParameters

autoplay?

boolean = false

camera

RegisteredCamera3D

interactive?

boolean = true

onFrame?

(snapshot) => void

player

Player

Returns

Element

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)