react-three-gpu-pathtracer icon indicating copy to clipboard operation
react-three-gpu-pathtracer copied to clipboard

mergeGeometries vs mergeBufferGeometries with Three 0.161.0

Open teddybee opened this issue 1 year ago • 0 comments

When i want to use the path tracer component I always got this error:

import * as BufferGeometryUtils from 'three/addons/utils/BufferGeometryUtils.js';
./node_modules/three-gpu-pathtracer/src/utils/GeometryPreparationUtils.js
Attempted import error: 'mergeBufferGeometries' is not exported from 'three/examples/jsm/utils/BufferGeometryUtils.js' (imported as 'mergeBufferGeometries').

I figured out that three/addons/utils/BufferGeometryUtils.js has no mergeBufferGeometries export just a mergeGeometries.

I used R3F 8.15.16 and Nextjs 14.1,0

Are those two exports identical? How can I eliminate the error?

teddybee avatar Feb 14 '24 22:02 teddybee