Forum

Upload Image to Canvas Texture

03 November 2015 06:59
Is there a code snippet in the API that can let a user upload their own image to a canvas texture on an object?
I feel like that should be pretty simple but I can't find it in the manual or the forum.

My follow up question would then be, if i wanted the user to be able to transform the image they uploaded specifically in size and x and y coordinates, would the canvas texture even work? or even be able to update in realtime?

Thanks
03 November 2015 10:12
Yes, it is:
link
03 November 2015 10:31

My follow up question would then be, if i wanted the user to be able to transform the image they uploaded specifically in size and x and y coordinates, would the canvas texture even work? or even be able to update in realtime?


This method needs to be called after changing the canvas content:
textures.update_canvas_texture_context()
 
Please register or log in to leave a reply.