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

bake the projection into the mesh #68

Closed glyfspace closed 3 months ago

glyfspace commented 3 months ago

hey! great library! I am using it to project stable diffusion outputs onto a 3D model. Any ideas on how to bake the projected texture into the mesh? that way I can keep rotating the mesh and fully texture it!

Thanks!

marcofugaro commented 3 months ago

that way I can keep rotating the mesh and fully texture it!

Check out the multiple projections example, is this what you're looking for?

glyfspace commented 3 months ago

Yes this is super helpful, but how do I bake the results into the mesh? Thank you!

marcofugaro commented 3 months ago

For baking it into a texture, you should look into how to do it with three.js. By default three.js doesn't offer a way to do it out of the box, you would have to code it yourself. This thread is a good starting point: https://github.com/mrdoob/three.js/issues/14055