'Setting textures on a model (Maya or Blender) via Java?

My task is: after selecting the user settings in the web application, this application must create a 3D model according to its settings (this building model with some elements). Based on the settings, I need to install certain textures on the model. I use java and facelets to create a web application, and javascript and webGL to display the model in the browser. I wanted to ask - is there a mechanism for setting different textures on a model via webGL ? And if yes, how to do it. Thanks for answers.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source