splinetool / r3f-spline

Hook to load Spline scenes into react-three-fiber
MIT License
156 stars 9 forks source link

r3f-spline export .splinecode not working #13

Closed Lurtroxx closed 1 year ago

Lurtroxx commented 1 year ago

The code sandbox environment and downloadable package work off of a .spline file in the examples provided, but export from the spline application as .splinecode. The .splinecode file is not able to be interpreted by the "useSpline" function. This is the code in question. const { nodes, materials } = useSpline( "https://prod.spline.design/gvgFxposolpeYZr8/scene.splinecode" );

And this is a link to my codesandbox project that was generated from a r3f export in the Spline App. https://codesandbox.io/s/3-d-text-blue-copy-forked-g0hijd?file=/src/Scene.js:184-297

PS: Fantastic work, I am excited this year to learn more 3d design and development with 3js and r3f, spline is the perfect tool to use, and work with. Thank you!

ffdead commented 1 year ago

Having the same issue. Here's my test export: https://codesandbox.io/s/spline-xr-test-9e67ti