DylanD Posted November 8, 2018 Share Posted November 8, 2018 Hey everyone, hope you are all having a good morning. I am trying to make a finish line block for my game. However when i apply a finish line texture to it and then tile it, it creates an undesired product. Check out this playground i made to illistrate my problem: https://www.babylonjs-playground.com/#20OAV9#370 What works is the front and back face, having a nice tiled finish line look. What doesnt work is the top, bottom and the sides. They become blurred because of my tiling option. Any ideas how I could fix this? I have had this problem before with a shader which i fixed by using normals to find out with side of the box and then apply a slight change to my shader. However I do not know how i could go about fixing this with a texture/material. Edit: I followed this doc for the tiling: https://doc.babylonjs.com/how_to/more_materials Quote Link to comment Share on other sites More sharing options...
bghgary Posted November 8, 2018 Share Posted November 8, 2018 Here is one solution: https://www.babylonjs-playground.com/#20OAV9#374 You have to muck with the UVs for it to work. Edit: Make a couple of corrections. jerome, JohnK and DylanD 3 Quote Link to comment Share on other sites More sharing options...
JohnK Posted November 8, 2018 Share Posted November 8, 2018 @bghgary neat solution. I was going for adding instances. https://www.babylonjs-playground.com/#20OAV9#373 More on faceUV https://doc.babylonjs.com/how_to/createbox_per_face_textures_and_colors#how-to-apply-faceuv-and-facecolors-examples DylanD and bghgary 2 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.