Change model colors interactively


(Cscartdept) #1

I asked this question before but did not materialize a solution. Does anyone have any ideas? It would be greatly appreciated.
Fore Example - I have a box shape here and I want to enable the viewer's ability to pick colors from a palette or enter a hex color.


#2

Sorry if I missed your previous question. This is possible with the Viewer API. Here are some resources and examples:

https://sketchfab.com/developers/viewer
https://labs.sketchfab.com/experiments/
https://blog.sketchfab.com/how-terma-built-their-interactive-website-with-sketchfab/
https://blog.sketchfab.com/zodiac-built-interactive-boat-configurator-sketchfab/
https://blog.sketchfab.com/viewer-api-part-1-introduction/
https://blog.sketchfab.com/learn-to-code-with-the-sketchfab-viewer-api-part-2-controlling-the-camera/
https://forum.sketchfab.com/t/viewer-api-and-javascript-development/77485

The example from Terma is similar to what you described.


(Cscartdept) #3

Thank you James. It seems you can only change one part color only and I was looking for multiple parts with different colors all in one model.


#4

You can change multiple parts as you like, check out the Apple Watch example: https://labs.sketchfab.com/experiments/watch-configurator/


(Cscartdept) #5

That looks cool...now how the heck did they do that?


#6

It's just the Viewer API. I see you've already posted in the developer forum for help :slight_smile: