pmndrs / drei

🥉 useful helpers for react-three-fiber
https://docs.pmnd.rs/drei
MIT License
8.36k stars 699 forks source link

how to change material attributes for animation while rendering? #1843

Open att1106 opened 8 months ago

att1106 commented 8 months ago

i have a spline application from which I got the nodes and materias via their export code. it useSpline: https://codesandbox.io/p/devbox/branchly-purple-copy-yhrdkq?file=%2Findex.html

the spline app can be found here: https://app.spline.design/file/50d5f3d6-9d8d-470e-af82-0230f9414ba1

when clicking on play it animates by switching states and changing the material of the inside sphere from ""type: ashima, movement: 50" to "type: ashima, movement: 20" in the displace attribute. i want to create this animation via react-three-fiber and drei too, but don't know how to change the materials properties while rendering. the basic export is here: https://codesandbox.io/p/devbox/branchly-purple-copy-yhrdkq?file=%2Findex.html

Can anyone help me please?

Screenshot 2024-02-23 at 21 27 35
github-actions[bot] commented 3 hours ago

Thank you for contributing! We’re marking this issue as stale as a gentle reminder to revisit it and give it the attention it needs to move forward.

Any activity, like adding an update or comment, will automatically remove the stale label so it stays on our radar.

Feel free to reach out on Discord if you need support or feedback from the community. This issue will close automatically soon if there’s no further activity. Thank you for understanding and for being part of the project!