i want to create an app in which you can replace the texture of a WebGL-model by drag’n’drop another texture on the model in the browser window.
Alternatively and as a less nice option, the texture-change can be made by a button in the Website-UI which opens an explorer-window. Then you can search/choose the texture locally on your Workstation.
Also i want to create Web-UI sliders for changing the rotation, position and tiling of the texture.
The upload function for images can be added using <input type="file">element on a web page. It as also possible to make it uploading with drag-n-drop – link.
When the user uploads an image, a server side script puts it in a web server directory and returns its URL.
The URL is then used by the replace texture puzzle to apply the image to the model.
Yes, the sliders can be added to a web page for scaling/rotating/tiling the image. The values generated by these sliders can be passed down to your material using the newly implemented set value puzzle (available in Verge3D 2.9 pre1).
The most close example to what you’re asking for can be seen here. (click Customize button, then click the camera button near the bag surface, finally click Upload a picture button).