pichou Posted March 27, 2018 Share Posted March 27, 2018 Hello everybody, Long time I haven't post anything here as my life with babylonjs is going smooth and well. But unfortunetly I am now stuck! I am looking for a way to adapt an advanced texture size depending on the mesh size so that the text on it will keep the same font and shape. I have made a playground to make my request more clear : https://playground.babylonjs.com/#RICIF8 Thanks a lot! Pichou Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted March 27, 2018 Share Posted March 27, 2018 tried avoidance? If there were 2 planes, then the one with the texture does not need to change. Quote Link to comment Share on other sites More sharing options...
Guest Posted March 27, 2018 Share Posted March 27, 2018 This should work by playing with uvOffset and scale (But need to find the right formula ;)) Quote Link to comment Share on other sites More sharing options...
pichou Posted March 27, 2018 Author Share Posted March 27, 2018 Okay playing with uvScale was my first idea (you can see it in the playground ), but it makes weird stuff. Guess I will keep searching for the right fomula as you suggest @Deltakosh Otherwise I thought to recreate the texture and its content once the plane stop moving but this is a shame! Quote Link to comment Share on other sites More sharing options...
Guest Posted March 28, 2018 Share Posted March 28, 2018 It should work Get back here if you start becoming mad 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.