You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
<R3F>: an object with scale={0} is drawn at full size (as scale 1); in three it draws nothing #164
Inside <R3F>, an object with scale={0} (or [0, 0, 0]) is drawn at full size, as if its scale were 1. In three it draws nothing. Any small non-zero scale works as expected.
scale on the group
green pixels in a 400 x 400 frame
0
45,796 (the whole cube, as at scale 1)
[0, 0, 0]
45,796
0.0001
0
0.5
8,836
The same happens with scale={0} on a <mesh>.
Expected
Scale 0 draws nothing, as in three and in a browser.
Why it matters
"Pop in from scale 0" is the usual entrance: scale={interpolate(t, [at, at + 0.35], [0, 1], {extrapolateLeft: "clamp", extrapolateRight: "clamp"})}. Before the entrance, the object should be invisible. In raea it shows at full size for those frames, then snaps to small and grows. Our 3D character pops in this way, so its first frames show a large character where the browser render shows none.
Repro (raea 0.1.5, three 0.185.0, @react-three/fiber 9.8.2; macOS 26.5 arm64)
Activity
#164: an <R3F> object scaled to 0 draws nothing, as three draws it.