hit2501 Posted October 29, 2015 Share Posted October 29, 2015 Hi everyone! I dont have experience with 2d canvas, thats the reason for my basic question . I have an 2d image in a canvas but I dont know how can I do to put this image over a mesh (imported from blender) as a texture. Can anybody show me an example. Thank you all. Quote Link to comment Share on other sites More sharing options...
RaananW Posted October 29, 2015 Share Posted October 29, 2015 If you already created the canvas and you have access to it (you have, for example, his id) you can use the canvas element's toDataURL() to get a base64 data string. This string can be used as the url variable of a texture.If you want Babylon to create the canvas, use 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.