t0ltec Posted June 17, 2015 Share Posted June 17, 2015 Hello! I just registered but I have been a silent user of babylon.js for a little more than a year now, reading everything there is about this awesome engine and soaking up knowledge like a sponge. But there's one detail that I can't find any info about, maybe I just missed it... but it's been driving me crazy the last couple of days! I think I have visited every single page on the interwebs mentioning anything about materials and textures in babylon.js by now. Is it possible to apply two, or more, texture images on the same faces of a mesh? Let me give you an example:I have a large piece of cloth and the base diffuseColor is made up of a small cotton texture that is tiled into oblivion.On top of this I need to add stitches at specific places, using a larger texture image as an alpha and a regular diffuseColor for the color of the stitches. The point is to be able to change the color of the stitches just by changing the diffuseColor. Right now I can accomplish this by adding another mesh slightly above the cloth and texturing the stitches to that, but that makes the babylon file bigger with all the extra meshes and faces, on top of managing the model in Blender much more complicated. Just to give you an idea of what I want to do I'm attaching a screenshot of a test i made using the extra mesh. Wingnut 1 Quote Link to comment Share on other sites More sharing options...
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.