seb75 Posted May 3, 2018 Share Posted May 3, 2018 Given a satellite view of a building, I want to project it on a modelized roof which is a non-flat mesh. When simply adding the image as diffuse texture to the mesh, the picture does'nt appear as a whole on the building, but seems to be repeated several times accross each triangle of the non-flat mesh. How could I do a vertical projection of an image on a custom non flat mesh ? Quote Link to comment Share on other sites More sharing options...
JohnK Posted May 3, 2018 Share Posted May 3, 2018 Hi again @seb75. Sounds like you have not calculated the uv values for each vertex of your custom mesh correctly. Here's a PG that calculates uvs based on x,z position of each vertex https://www.babylonjs-playground.com/#I092BE Wingnut and seb75 2 Quote Link to comment Share on other sites More sharing options...
seb75 Posted May 5, 2018 Author Share Posted May 5, 2018 thanks, that solved the issue when correctly setting the UVs ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.