WebBowser Posted November 25, 2018 Share Posted November 25, 2018 Why would a Dynamic Texture in Babylon wrap only a single pixel (the lower-left pixel of the texture) all the way around a mesh? For example: https://www.babylonjs-playground.com/#JUKXQD#76 ...which creates a dynamic texture with a red square on a yellow background - but only the lower-left yellow pixel is used on the entire mesh. If you remove the comments from the code that draws a single blue pixel in the lower left corner, you will see the mesh turn all blue. Thanks in advance for any insight! Quote Link to comment Share on other sites More sharing options...
Sebavan Posted November 26, 2018 Share Posted November 26, 2018 Cause all the UVs are defined as 1,1 fetching then all the time the same pixel from the texture. The mesh was probably not designed with UVs. Quote Link to comment Share on other sites More sharing options...
Sebavan Posted November 26, 2018 Share Posted November 26, 2018 And welcome to the Forum by the way ? 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.