Hello,
I am looking for a solution to add(/delete) Materials, which will most likely contain only a diffuse texture image and the same parameters, on a running application.
So I can setup the application and when it is running on the web, I somehow upload/delete image files which will be available for material change of an object.(I guess it can also be just a texture replacement).
Basic use case:
I have a cushion in my scene. It has around 100 different options for the fabric. A new fabric is released. So I upload the diffuse texture with the name according to the id of the fabric (e.g. 254794.jpg). My interface will add a new button, give it the id of the .jpg and when I click this button the material will be assigned to the cushion.
The other way around should be simplier, as I will just delete the .jpg and so there is not button to assign it anymore.
How could this be done?
Any help appreciated. Thank You in advance!