Sketchfab Forum

Dynamically load Text on Texture/Model


(Hakkun) #1

Hi together,

is it possible to load a text from a textbox (input form) dynamically onto a texture or the model itself?
Maybe somekind of HTML Canvas .fillText function.

Thanks for your answers!


#2

Not at the moment, but you can use the Viewer API to apply textures "on the fly" from an image URL: https://sketchfab.com/developers/viewer


(Hakkun) #3

Thanks for your answer.

So perhabs it's a proper solution to paint onto the desired texture image with a HTML Canvas element on a CORS enabeld server, then load it dynamically with the viewer API.


#4

Yep, loading a CORS enabled image is the best solution for now.