BangTao Posted March 28, 2017 Share Posted March 28, 2017 Hi,guys.i wanna know if there is a way can get part of the mesh's texture data(and use these partial data to apply to another mesh): Here:http://www.babylonjs-playground.com/#UVMN6 Line 17:is a ground with "earth.jpg" texture. and Line24&39 are two triangles,these are part of the first one (with "earth.jpg" texture),and i wanna let these two meshs have the right texture from "the first"(at right range); I know that i can set the UV's proportion to get the right output,but i don't wanna use it. Thank you for your time! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 28, 2017 Share Posted March 28, 2017 Hello you need to provide UV coordinates as well: http://www.babylonjs-playground.com/#UVMN6#1 (and affect the same material) Quote Link to comment Share on other sites More sharing options...
BangTao Posted March 29, 2017 Author Share Posted March 29, 2017 Okay,I think i can get the UV coordinates and get the right texture then. but still a question: Can BJS get a special point at texture and get it's color?Like: 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.