Is it possible to map an image/canvas as a texture over a gltfjsx model? #1295
-
https://codesandbox.io/s/hardcore-minsky-okh24 I am successfully creating a canvas as a texture, and I can successfully apply it to my model. However, when I drag the red circle across the bottom of my canvas in the left hand corner, the circle appears super stretched out on my model. I'm assuming this has something to do with the UV mapping? or perhaps the material I am being given from the GLTFJSX? Any help would be greatly appreciated! I've also tried just scrapping the canvas and straight up applying an image as a texture, and the same thing happens, it just appears very distorted, pixelated and stretched! Thank you in advance!!!! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Just a few moments ago realized what one of my problems was! The models I was using like the one above, (excuse me if this is not the proper terminology), didn't have a proper unwrapped UV's, at least I think. I loaded in a new model with unwrapped UV's and now it's behaving as I expect it to! Which rules! If anyone wants a codesandbox of the solution I can spin one up! |
Beta Was this translation helpful? Give feedback.
Just a few moments ago realized what one of my problems was! The models I was using like the one above, (excuse me if this is not the proper terminology), didn't have a proper unwrapped UV's, at least I think. I loaded in a new model with unwrapped UV's and now it's behaving as I expect it to! Which rules! If anyone wants a codesandbox of the solution I can spin one up!