@motion-script/core / track3DResources
Function: track3DResources()
track3DResources(
g3,tracker,width,height):void
Defined in: render3d/tracking.ts:34
Register every asset a 3D scene needs.
width/height are the destination size in pixels, used to pick a decode
resolution the same way a 2D image fill does — a texture on a small node
doesn't need full-resolution pixels.
The texture sweep is forEachTexture3D, shared with the renderer so the two can't disagree about which slots hold a texture. What stays here is the half that isn't a texture: models and environment maps, which need the backend's own loader rather than the image pipeline.
Parameters
g3
tracker
width
number
height
number
Returns
void