Quadear Posted February 16, 2017 Share Posted February 16, 2017 Hello, I'm trying to do something simple on paper : I want a mesh with it's to face textured, but the rest of the mesh intact. On paper, i would only need to put some UV coordinates on the top face's points, and uvs that invalidates the texture on other faces. But when I do that, the original color of every other face is still altered. http://www.babylonjs-playground.com/#OTFI8#1 I thought setting uv(0,0) would be enough, but it's not. Does someone know how to do that please ? Quote Link to comment Share on other sites More sharing options...
jerome Posted February 16, 2017 Share Posted February 16, 2017 not sure to understand what you try to achieve ... here's a box textured on a single face : http://www.babylonjs-playground.com/#OTFI8#2 (not sure your texture can be downloaded in the PG also) The same with different colors and textures per face : http://www.babylonjs-playground.com/#OTFI8#3 The vertex color is mixed to the texture color, so if you want to keep the textured face with its original color, just set this color to white. JohnK 1 Quote Link to comment Share on other sites More sharing options...
Quadear Posted February 16, 2017 Author Share Posted February 16, 2017 yeah, i was trying to do exactly that, not sure why I wasn't able to do it myself. TY Quote Link to comment Share on other sites More sharing options...
Quadear Posted February 17, 2017 Author Share Posted February 17, 2017 Hey, new question why here: http://www.babylonjs-playground.com/#OTFI8#4 the red is red-er than here http://www.babylonjs-playground.com/#OTFI8#6 ? Just applying the texture changes the color on all non affected faces any way. Quote Link to comment Share on other sites More sharing options...
jerome Posted February 17, 2017 Share Posted February 17, 2017 yep, actually it applies the texture also on all the other faces, but with an uv of (0,0,0,0) so the material shader computes the color differently. Maybe this is tweakable by some material property here's an extra emissive color : http://www.babylonjs-playground.com/#OTFI8#7 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.