marcofugaro / three-projected-material

📽 Three.js Material which lets you do Texture Projection on a 3d Model
https://marcofugaro.github.io/three-projected-material/
MIT License
671 stars 57 forks source link

Export model with materials? #21

Closed liunuozhi closed 3 years ago

liunuozhi commented 3 years ago

Hi there! Thank you very much for this very useful implementation.

I would like to export as gltf with materials by GLTFExporter. However, it turns out the materials cannot be shown in output. Is there any way to export the material? Or can be done by any other 3d model format?

marcofugaro commented 3 years ago

Hey, unfortunately this is a dynamic material and cannot be exported in a .gltf file as is. You would need to bake it into a texture, however three.js does not currently include a baking workflow (you would need to code it by yourself).

Alternatively, you can look into recreating the scene in Blender, it allows you to bake a lot more stuff and export it as .gltf. 🙂

liunuozhi commented 3 years ago

@marcofugaro Thanks for your fast response. It's a pity that it is not available, but still thank you so much for suggestions. I might look at them. Still, thank you so much!

marcofugaro commented 3 years ago

No problem!