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

pano project #62

Closed HakunaMatata052 closed 1 year ago

HakunaMatata052 commented 1 year ago

Hello author, I am a beginner at three. js

May I ask how to project the panorama onto the specified model? In fact, currently only one map can be used.

I hope to project a panoramic cube onto the entire model.

marcofugaro commented 1 year ago

Hey, what do you mean as "panoramic cube", could you share an example?

HakunaMatata052 commented 1 year ago
111

For example, I can project the Panorama onto the whole model, so that I can achieve the effect of moving in space like matterport.

marcofugaro commented 1 year ago

What you're trying to do exceeds the scope of this library, you should look into equirectangular projection, an example of projecting it onto a sphere model is here: https://threejs.org/examples/#webgl_panorama_equirectangular

Otherwise check out this discussion about matterport techniques: https://discourse.threejs.org/t/matterport-features-for-threejs/36891