Flomotion Posted September 3, 2018 Share Posted September 3, 2018 Hey all, I'm adding a dynamic texture to my imported model so I can have multiple layers in the diffuseTexture. This works good on a plane that I create in BJS. But when I apply the dynamic texture to the imported model it looks strange. As if only the top row of pixels is used or something.. (see attached image) When I place the same image texture on both models, everything looks as it should. I tried to recreate this issue in a playground. But since I can't load my own model in there I used the rabbit model. http://www.babylonjs-playground.com/#38BSEG But.. this seems to be working correctly. Is there a way to import my model into a playground? Or does anyone have an idea what's happening with my imported model? thanks Floris Quote Link to comment Share on other sites More sharing options...
Sebavan Posted September 3, 2018 Share Posted September 3, 2018 This looks like a UV issue on the model you import. You should ensure the UVs are matching with the one of dynamically created planes in Babylon. Quote Link to comment Share on other sites More sharing options...
Flomotion Posted September 3, 2018 Author Share Posted September 3, 2018 Hi, thanks for your reply. The UV on my model is correct however. That's why I added the other image on the right where I placed and image in the diffuseTexture channel. It looks good there. And when I change the image to the dynamic texture, it looks wrong. Or is there a way to rotate the uv channel with code? Quote Link to comment Share on other sites More sharing options...
Guest Posted September 4, 2018 Share Posted September 4, 2018 Well this could be a wrapping issue. make sure that texture.wrapU and texture.wrapV are the same on both dynamic and non dynamic textures 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.