Is there a demo to show How to pathtrace user model (By using three-mesh-bvh)?

you know, I just want to use gpu pathtracing.

by chance, I find the three-mesh-bvh, and his demo “gpuPathTracing”. BUT some error raise from “mergeGeometries”.about “.attributes”. I cant solve this.

This could be the cause (just a guess), try to follow the steps on this old post to see if it match your case. Then use the function I mentioned (deinterleaveAttribute) to obtain correct geometry attributes to process your merge. This post was about Ammo physics engine, but the issue is similar to classic BVH model preparation.