hit2501 Posted November 26, 2015 Share Posted November 26, 2015 Hi everyone! I can change the texture of a model (imported from Blender) with an input type="file" and changing the parameter imgsource to a base64 image, it works fine using:texture = new BABYLON.Texture('data:my_image_name3', scene, true, true, BABYLON.Texture.BILINEAR_SAMPLINGMODE, null, null, imgsource, true);but when I try to change the parameter imgsource with: imgsource = canvas2.toDataURL();The model only go black, I can´t understand because when I put the new imgsource on console.log it gives me the right base64 string. Can you help me. Thanks. Quote Link to comment Share on other sites More sharing options...
RaananW Posted November 26, 2015 Share Posted November 26, 2015 Hi, try this - http://www.babylonjs-playground.com/#29ZGRT 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.