-
I am trying to achieve a paper rolling effect in three js. I understand I have to do this in blender and then export it to react fiber. However when I try to export it to the web using react fiber and run the action in the plane. I don't get the "un-rolling paper" animation: I would've liked to add the gltf file but looks like the file is not supported in github. I made the roll effect by adding a Deform/curve modifier in blender. So I understand the issue is that the modifier information is not exported in the gltf file. Is there some way I can achive this effect in react fiber? Either with the modifier or another way that can be exported? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
GLTF doesn't support the Blender modifier stack, so there is no way to simply export what you see in Blender. You can apply modifiers on export, which is great for flattening bevels, bools, and subsurf, but an animation is another thing entirely. A few options, and they're all somewhat complicated.
|
Beta Was this translation helpful? Give feedback.
-
@mwmwmw thank you so much for your help. I made a quick test with the mdd option and so far it looks like a great option. I just need to dig a little deeper to be sure. I have no idea where I would've learned this option so again, thanks for the help |
Beta Was this translation helpful? Give feedback.
GLTF doesn't support the Blender modifier stack, so there is no way to simply export what you see in Blender.
You can apply modifiers on export, which is great for flattening bevels, bools, and subsurf, but an animation is another thing entirely.
A few options, and they're all somewhat complicated.
Recreate the unrolling animation using bones somehow. Skinned meshes can be exported.
Turn your animation into vertex keyframes, export to .MDD, then import the .MDD into blender, then export as GLTF. This will create all of your vertex keyframes as morph targets. Discussed here. R3F/Three can then use those morph targets to play the animation.
Rethink how the unrolling animation works an…