Replacing textures for loaded models #110
Unanswered
m-paunovic-vegait
asked this question in
Q&A
Replies: 2 comments 2 replies
-
|
Hi! |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
You shouldn't use the old |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! What is the proper procedure for loading in a new image to use as a texture for loaded models? I have an already-textured model, and an image, and I would like to replace the current texture with the new image. I am able to get references to the existing textures by name.
I tried using TextureLoader to load the texture (which seems to work) and call setTexture on the model instance to apply it (like I've seen it done with the plane visualizer), but I'm getting an error saying the sampler couldn't be found and the app crashes shortly after.
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions